dotfiles/config/zsh/zshrc.d/aliases.zsh

19 lines
551 B
Bash

# Interactive
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Listing
alias l='ls -lh' #size,show type,human readable
alias la='ls -lAh' #long list,show almost all,show type,human readable
alias lr='ls -tRh' #sorted by date,recursive,show type,human readable
alias lt='ls -lth' #long list,sorted by date,show type,human readable
# The Fuck
TF_ALIAS=fuck alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'
# PClear
clearall () { clear; printf '\033[3J' }
# Make Dir and enter it
mkcd() { mkdir $1 &>/dev/null; [ -e $1 ] && cd $1 }