-
Notifications
You must be signed in to change notification settings - Fork 17
/
aliases.fish
59 lines (53 loc) · 1.31 KB
/
aliases.fish
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
# Basic
alias .. "cd .."
alias ... "cd ../.."
alias la "ls -Gla"
alias ld 'ls -l | grep "^d"'
alias ll 'ls -ahlF'
if type -q exa
alias l exa
alias la 'exa --long --all --group --header --binary --links --inode --blocks'
alias ld 'exa --long --all --group --header --list-dirs'
alias ll 'exa --long --all --group --header --git'
alias lt='exa --long --all --group --header --tree --level'
end
if type -q bat
alias cat 'bat --paging=never'
end
# kitty
if test "$TERM" = xterm-kitty
alias icat="kitty +kitten icat"
alias diff="kitty +kitten diff"
alias ssh="kitty +kitten ssh"
end
# editor
alias v nvim
alias vi nvim
alias vim nvim
alias e emacsclient
alias ec "emacsclient -c"
# git
alias g git
alias ga "git add"
alias gb "git branch"
alias gba "git branch -a"
alias gbd "git branch -D"
alias gca "git commit -a -m"
alias gcm "git commit -m"
alias gco "git checkout"
alias gcob "git checkout -b"
alias gcp "git cherry-pick"
alias gd "git diff"
alias gdc "git diff --cached"
alias gl "git lg"
alias gm "git merge --no-ff"
alias gp "git push"
alias gpom "git pull origin master"
alias gpt "git push --tags"
alias grh "git reset --hard"
alias grs "git reset --soft"
alias gst "git status -sb --ignore-submodules"
alias undopush "git push -f origin HEAD^:master"
# docker / k8s
alias d docker
alias k kubectl