Compare commits

..

3 Commits

Author SHA1 Message Date
Jan Jastrow
65122c9d2e some additional git aliases 2024-08-11 20:36:10 +02:00
Jan Jastrow
da308fa019 Add more eza options 2024-08-11 20:35:52 +02:00
Jan Jastrow
eba6582e9e Change order, so PATH comes first 2024-08-11 20:28:18 +02:00
2 changed files with 26 additions and 24 deletions

View File

@ -11,7 +11,7 @@
[alias]
a = add
br = branch
c = commit
c = commit -m
ca = c -a
co = checkout
conflict = diff --name-only --diff-filter=U
@ -19,7 +19,8 @@
hash = !git rev-parse HEAD | cut -c 1-8
l = log --all --color --graph --pretty=format:'%Cred%h%Creset %G?%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit # Colorful and easy to read log
last = log -1 HEAD --stat
p = pull
pl = pull
pu = push
rv = remote -v
se = !git rev-list --all | xargs git grep -F
st = status -sb

45
zsh/env
View File

@ -11,28 +11,6 @@ export LC_TYPE=en_US.UTF-8
# set default editor
export EDITOR="nano"
# set `ll` alias
# eza > lsd > bls
alias ll=bls
if [[ -x $(which lsd) ]]; then
alias ll=lsd
alias lsd='pwd; lsd -laF --group-dirs=first --icon=never'
fi
if [[ -x $(which eza) ]]; then
alias ll=eza
alias eza='pwd; eza --long --all --all --group-directories-first --git --group'
fi
## Better LS
if [[ $platform == 'Linux' ]]; then
alias bls='pwd; ls -lahp --color=auto --group-directories-first'
elif [[ $platform == 'macOS' && -x $(which gls) ]]; then
alias bls='pwd; gls -lahpG --group-directories-first'
elif [[ $platform == 'macOS' ]]; then
alias bls='pwd; /bin/ls -lahGp'
fi
#
# Path additions
#
@ -108,3 +86,26 @@ if command -v thefuck >/dev/null 2>&1; then
eval "$(thefuck --alias)" && fuck
}
fi
#
# `ll` Setup
# eza > lsd > bls
alias ll=bls
if [[ -x $(which lsd) ]]; then
alias ll=lsd
alias lsd='pwd; lsd -laF --group-dirs=first --icon=never'
fi
if [[ -x $(which eza) ]]; then
alias ll=eza
alias eza='pwd; eza --long --all --all --group-directories-first --git --group'
fi
## Better LS
if [[ $platform == 'Linux' ]]; then
alias bls='pwd; ls -lahp --color=auto --group-directories-first'
elif [[ $platform == 'macOS' && -x $(which gls) ]]; then
alias bls='pwd; gls -lahpG --group-directories-first --color-scale --time-style=long-iso'
elif [[ $platform == 'macOS' ]]; then
alias bls='pwd; /bin/ls -lahGp'
fi