dotfiles/.config/zsh/32-aliases-base

23 lines
682 B
Text
Raw Normal View History

# Prettify ls commands
2019-02-04 02:32:45 +00:00
if [[ "$(uname -s)" == "Linux" ]]; then
# we're on linux
alias l-d="ls -lFad"
alias l="ls -lAhF" # Overwritten for k in -aliasing-k
2019-02-04 02:32:45 +00:00
alias ll="ls -lFa | TERM=vt100 less"
alias ls='ls --color=auto'
fi
# Show the top 5 commands used in recent history
2019-02-04 02:32:45 +00:00
alias historysummary="history | awk '{a[\$2]++} END{for(i in a){printf \"%5d\t%s\n\",a[i],i}}' | sort -rn | head"
# Display timestamped recent command history
2019-02-04 02:32:45 +00:00
alias zh="fc -l -d -D"
# Display your current ip address
alias myip="curl -s icanhazip.com"
# move around faster for often used cd commands
alias ..="cd .." # overwritten by enhancd config in .zshrc.d/
2019-02-04 02:32:45 +00:00
alias ...="cd ../.."
2019-02-04 10:55:00 +00:00
alias ~="cd ~"
2019-02-04 02:32:45 +00:00