-
Notifications
You must be signed in to change notification settings - Fork 8
/
.zsh_aliases
35 lines (26 loc) · 838 Bytes
/
.zsh_aliases
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
# additional git aliases
alias gfcu='git fetch upstream && git checkout upstream/main'
alias gfru='git fetch upstream && git rebase -i upstream/main'
alias gfc='git fetch origin && git checkout origin/main'
alias gfr='git fetch origin && git rebase -i origin/main'
# Install Ruby based on current Ruby version
alias air='asdf install ruby "`cat .ruby-version`"'
# easy copy pasta
alias copy='xclip -selection c'
alias paste='xclip -out -selection c'
# easy grepsedawk things
getcol() {
num=$(expr $1 + 0)
awk "{ print \$$num }"
}
alias firstcol="getcol 1"
# Easy disk over use identification
alias diskusage="du -h -d1 2> /dev/null | sort -h"
# mux for easier tmuxinator
alias mux=tmuxinator
if type nvim > /dev/null 2>&1; then
alias vim='nvim'
fi
alias emacs='emacs -nw'
alias a="alias | fzf"
eval $(thefuck --alias qwer)