mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 06:46:59 +08:00
zshrc: use gnu ls on mac
This commit is contained in:
parent
fe938f113b
commit
e57ec2dc5d
5
.zshrc2
5
.zshrc2
|
@ -108,10 +108,7 @@ alias "p666"='ping6 2001:da8::666'
|
||||||
alias "cbd"='curl http://www.baidu.com'
|
alias "cbd"='curl http://www.baidu.com'
|
||||||
alias "cbds"='curl https://www.baidu.com'
|
alias "cbds"='curl https://www.baidu.com'
|
||||||
alias "gdebug"='git add -A; git commit --allow-empty -m "bug fix ($(date))"'
|
alias "gdebug"='git add -A; git commit --allow-empty -m "bug fix ($(date))"'
|
||||||
case $(bash "$DOTFILES/tools/common.sh" get_os_type) in
|
alias "l"='ls -lAGh --time-style="+%y-%m-%d %H:%M"'
|
||||||
macos ) alias l='ls -lAGh -D "%y-%m-%d %H:%M"' ;;
|
|
||||||
* ) alias l='ls -lAGh --time-style="+%y-%m-%d %H:%M"' ;;
|
|
||||||
esac
|
|
||||||
if [[ -x $(command -v trash) ]]; then
|
if [[ -x $(command -v trash) ]]; then
|
||||||
alias "rm"="echo use the full path i.e. '/bin/rm'\; consider using trash"
|
alias "rm"="echo use the full path i.e. '/bin/rm'\; consider using trash"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user