dotfiles/home/.aliases

24 lines
738 B
Plaintext
Raw Normal View History

2016-06-14 19:12:53 +00:00
# Common Aliases
# These will be sourced into the main *sh config that's loaded
2017-06-21 19:00:30 +00:00
alias ls='ls --color=auto'
2016-06-14 19:12:53 +00:00
alias ll='ls -l'
2017-06-21 19:00:30 +00:00
alias la='ls -Alh'
alias l='ls -C'
2016-06-14 19:12:53 +00:00
alias ld='ls -ld'
2017-06-21 19:00:30 +00:00
alias lo='ls -lh | sed -e 's/--x/1/g' -e 's/-w-/2/g' -e 's/-wx/3/g' -e 's/r--/4/g' -e 's/r-x/5/g' -e 's/rw-/6/g' -e 's/rwx/7/g' -e 's/---/0/g''
2016-06-14 19:12:53 +00:00
alias back='cd $OLDPWD'
alias clkear='clear'
alias ckear='clear'
alias reload='source ~/.zshrc'
alias webshare='python -c "import SimpleHTTPServer;SimpleHTTPServer.test()"'
alias ipa='ip addr|grep inet'
2017-06-21 19:00:30 +00:00
alias cls='clear;ls'
alias rvi='sudo -E vim'
alias ta='tmux attach -t C0DE || tmux new -s C0DE'
2019-09-24 16:31:12 +00:00
alias open='xdg-open'
2017-06-21 19:00:30 +00:00
2018-05-16 21:18:53 +00:00
# Use `shred` if it exists, or just `rm -P`
type "$shred" > /dev/null || alias shred='rm -P'