This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliasrc
98 lines (83 loc) · 2.07 KB
/
.aliasrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/usr/bin/zsh
## Bat is a better cat with syntax highlighting
## @Requires bat
alias cat="bat"
## @Requires bat-extras
alias man="batman"
## Exa is a better ls
## @Requires exa
alias ls='exa -h --icons --color=always'
alias l='ls -al'
alias ll='ls -l'
alias la="l"
alias dir="ls"
## Just some clear aliases
## Did you know CTRL+L clears the screen?
## @Requires ncurses
alias cls="clear"
alias c="clear"
## Ripgrep is a fast tool to search for strings in files recursively
## @Requires ripgrep
alias findstr="rg"
#alias findstr="grep -RHIni"
## Aliases for cd ..
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
## Useful stuff
alias mkdir="mkdir -p"
alias cp="cp -r"
alias rrf="rm -rf"
alias du="du -h"
## Python aliases
## @Requires python
alias py="python3"
## @Requires ipython
alias ipy="ipython"
## @Requires python-pip
alias pip="python3 -m pip"
alias pipi="python3 -m pip install"
## Sudo aliases
## @Requires sudo
alias sudo="sudo " ## Make sudo expand aliases
alias s="sudo"
alias sudoe="sudoedit"
## Termbin, as the name suggests, is a terminal pastebin
## @Requires gnu-netcat
alias tb="nc termbin.com 9999"
## Just git stuff
## @Requires git
alias g="git"
alias gs="git status"
alias gc="git commit -a"
alias gps="git push"
alias ga="git add"
alias gpu="git pull"
## Git bare repo for dotfiles
alias confgit='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
## Editor aliases
## Change your editor in ~/.zshrc
alias edit="$EDITOR"
alias vi="$EDITOR"
alias nano="$EDITOR"
alias vim="$EDITOR"
alias v="$EDITOR"
alias emacs="$EDITOR"
## Paru is a better AUR helper
## @Requires aur:paru
alias yay="paru"
alias upd="paru -Syu"
alias ins="paru -S --needed"
## Quickly search for packages using fzf
## @Requires aur:paruz
alias yaz="paruz"
## I never remember how to copy files using xclip
## @Requires xclip
alias x-copy="xclip -in -selection clipboard"
alias x-paste="xclip -out -selection clipboard"
## Kitty-specific aliases
if [ "$TERM" = "xterm-kitty" ]; then
alias ssh="kitty +kitten ssh"
alias icat="kitty +kitten icat"
fi