Compare commits

..

No commits in common. "65122c9d2eba2f81ce70d7726c4f8a446f189d21" and "37dc883e1ea91bb99d5f5d1ebd171e02e37262c7" have entirely different histories.

2 changed files with 24 additions and 26 deletions

View File

@ -11,7 +11,7 @@
[alias]
a = add
br = branch
c = commit -m
c = commit
ca = c -a
co = checkout
conflict = diff --name-only --diff-filter=U
@ -19,8 +19,7 @@
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
pl = pull
pu = push
p = pull
rv = remote -v
se = !git rev-list --all | xargs git grep -F
st = status -sb

45
zsh/env
View File

@ -11,6 +11,28 @@ 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
#
@ -86,26 +108,3 @@ 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