Start Refactoring to composable zsh config modules
This commit is contained in:
parent
764de81461
commit
71a7ca83c6
24 changed files with 643 additions and 296 deletions
22
.zsh.d/32-aliases-base
Normal file
22
.zsh.d/32-aliases-base
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# Prettify ls commands
|
||||
if [[ "$(uname -s)" == "Linux" ]]; then
|
||||
# we're on linux
|
||||
alias l-d="ls -lFad"
|
||||
alias l="ls -lAhF" # Overwritten for k in -aliasing-k
|
||||
alias ll="ls -lFa | TERM=vt100 less"
|
||||
alias ls='ls --color=auto'
|
||||
fi
|
||||
|
||||
# Show the top 5 commands used in recent history
|
||||
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
|
||||
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/
|
||||
alias ...="cd ../.."
|
||||
alias ~="cd ~"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue