dotfiles/home/.aliases

26 lines
913 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'
2021-02-23 17:00:17 +00:00
alias webshare='python -m http.server'
2016-06-14 19:12:53 +00:00
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'
2021-03-11 16:32:24 +00:00
alias dmesg='dmesg --color=always | grep -v UFW --color=always'
alias sudo='sudo ' # So we can use my aliases in sudo - https://askubuntu.com/a/22043
alias gp='java -jar ~/bin/gp.jar -r "ACR1252 Dual Reader PICC"'
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'