dotfiles/aliases

28 lines
562 B
Plaintext
Raw Normal View History

2020-09-08 21:03:57 -04:00
export PATH="$HOME/.local/bin:$PATH"
2020-09-08 15:25:32 -04:00
#ls
alias ls="ls --color=auto"
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
2020-10-19 20:40:02 -04:00
export EDITOR="/usr/bin/vim"
2020-09-08 15:25:32 -04:00
# trash bin
alias trash='mkdir -p "$HOME/.trash" && mv -b -t "$HOME/.trash"'
alias cleartrash='rm -fv "$HOME/.trash/*"'
# weather forecast
alias forecast="curl -s wttr.in | head -n -1"
# improved reset and clear
alias reset="tput reset"
alias clear="tput reset"
# get ip alias
alias getip="curl -s https://ipecho.net/plain | xargs echo"
# better du
alias du="du -h"