mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-26 05:04:34 +00:00
Update directory aliases
This commit is contained in:
parent
6d85a4bc40
commit
9166b4c051
|
@ -8,6 +8,14 @@ alias souce='source'
|
||||||
alias suod='sudo '
|
alias suod='sudo '
|
||||||
alias sduo='sudo '
|
alias sduo='sudo '
|
||||||
|
|
||||||
|
# Replacements (adding flags)
|
||||||
|
alias cp='cp -iv' # Ask before overwriting, verbose
|
||||||
|
alias mv='mv -iv' # Ask before overwriting, verbose
|
||||||
|
alias rm='trash-put' # Use trash-cli instead of true removal
|
||||||
|
alias rmr='\rm -v' # True rm, verbose (asking here is too annoying)
|
||||||
|
alias wget='wget -c' # Resume wget by default
|
||||||
|
alias df='df -H' # Show sizes as powers of 1000
|
||||||
|
|
||||||
# Directory changing
|
# Directory changing
|
||||||
alias ..='cd ..'
|
alias ..='cd ..'
|
||||||
alias ...='cd ../../'
|
alias ...='cd ../../'
|
||||||
|
@ -17,29 +25,16 @@ alias .2='cd ../../'
|
||||||
alias .3='cd ../../../'
|
alias .3='cd ../../../'
|
||||||
alias .4='cd ../../../../'
|
alias .4='cd ../../../../'
|
||||||
alias .5='cd ../../../../../'
|
alias .5='cd ../../../../../'
|
||||||
# z.lua script
|
|
||||||
alias j='z' # for the sake of autojump old habits
|
|
||||||
alias zz='z -c' # restrict matches to subdirs of $PWD
|
|
||||||
alias zb='z -b' # restrict matches to parent directories
|
|
||||||
alias zi='z -I' # cd with interactive fzf selection
|
|
||||||
alias zbi='z -b -I' # pick parent directory to cd into with fzf
|
|
||||||
|
|
||||||
# Files/Directories utilities
|
# Files/Directories utilities
|
||||||
alias mkdir='mkdir -p'
|
alias mkdir='mkdir -p'
|
||||||
alias md='mkdir'
|
alias md='mkdir'
|
||||||
alias fhere='find . -name'
|
alias fhere='find . -name'
|
||||||
alias rr='rm -r'
|
alias rr='rmr -r'
|
||||||
alias rf='rm -f'
|
alias rf='rmr -f'
|
||||||
alias rrf='rm -rf'
|
alias rrf='rmr -rf'
|
||||||
alias vimdiff='nvim -d'
|
alias vimdiff='nvim -d'
|
||||||
|
|
||||||
# Replacements (adding flags)
|
|
||||||
alias cp='cp -iv' # Ask before overwriting, verbose
|
|
||||||
alias mv='mv -iv' # Ask before overwriting, verbose
|
|
||||||
alias rm='rm -v' # Verbose (asking here is too annoying)
|
|
||||||
alias wget='wget -c' # Resume wget by default
|
|
||||||
alias df='df -H' # Show sizes as powers of 1000
|
|
||||||
|
|
||||||
# Directory listing aliases, defaults to exa, if aviable
|
# Directory listing aliases, defaults to exa, if aviable
|
||||||
if command -v exa > /dev/null; then
|
if command -v exa > /dev/null; then
|
||||||
alias ls='exa'
|
alias ls='exa'
|
||||||
|
@ -75,6 +70,13 @@ alias cfxmonad='vim ~/.config/xmonad/xmonad.hs && xmonad --recompile && xmonad -
|
||||||
alias cfxmobar='vim ~/.config/xmobar/xmobarrc.hs && ~/.config/xmobar/multi_mon.sh 2'
|
alias cfxmobar='vim ~/.config/xmobar/xmobarrc.hs && ~/.config/xmobar/multi_mon.sh 2'
|
||||||
alias cftodo='vim ~/Personal/vimwiki/todo.md'
|
alias cftodo='vim ~/Personal/vimwiki/todo.md'
|
||||||
|
|
||||||
|
# z.lua shortcuts
|
||||||
|
alias j='z' # for the sake of autojump old habits
|
||||||
|
alias zz='z -c' # restrict matches to subdirs of $PWD
|
||||||
|
alias zb='z -b' # restrict matches to parent directories
|
||||||
|
alias zi='z -I' # cd with interactive fzf selection
|
||||||
|
alias zbi='z -b -I' # pick parent directory to cd into with fzf
|
||||||
|
|
||||||
# Python
|
# Python
|
||||||
alias py3='python3'
|
alias py3='python3'
|
||||||
alias py2='python2'
|
alias py2='python2'
|
||||||
|
|
Loading…
Reference in a new issue