dotfiles/.zsh_aliases
Marty Oehme e1a780997a Enable new l using k, create enhancd config
Using l will use k for ls instead, displaying hidden dirs and
colod-coding. See https://github.com/rimraf/k for info.
'..' will switch to parent directory. 'cd ..' will invoke the
normal enhancd .. switcher. Enhancd is configured with
fzy, fzf if it is not found.
2019-02-04 11:01:08 +01:00

27 lines
727 B
Text

if [[ "$(uname -s)" == "Linux" ]]; then
# we're on linux
alias l-d="ls -lFad"
# alias l="ls -lAhF" # Overwritten by using k in .zsh.d/004-k-alias
alias ll="ls -lFa | TERM=vt100 less"
alias ls='ls --color=auto'
fi
# enables git management through dotfiles command
alias dotfiles='/usr/bin/git --git-dir=/home/marty/.dotfiles/ --work-tree=/home/marty'
alias n='nnn'
alias m='micro'
alias zshconf='m ~/.zshrc'
alias historysummary="history | awk '{a[\$2]++} END{for(i in a){printf \"%5d\t%s\n\",a[i],i}}' | sort -rn | head"
alias myip="curl -s icanhazip.com"
alias reattach="screen -r"
alias zh="fc -l -d -D"
# alias ..="cd .." # overwritten by enhancd config in .zshrc.d/
alias ...="cd ../.."
alias ~="cd $HOME"