crashhacker

alias

Sep 22nd, 2018
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.21 KB | None | 0 0
  1. alias cd=git_cd
  2. git_cd() {
  3.     builtin cd "$@" && { [ ! -d .git ] || { git fetch origin; } }
  4. }
  5.  
  6. alias ls='ls --color=auto'
  7. alias weather='curl wttr.in/~muh_sweet_home'
  8. alias reboot='sudo reboot'
  9. alias shutdown='sudo shutdown -h now'
  10. alias sf='screenfetch'
  11. alias l.='ls -d .*'
  12. alias lsq='ls -a | grep'
  13. alias t='tmux'
  14. alias ta='tmux attach'
  15. alias td='tmux detach'
  16. alias folders='du -h --max-depth=1 | sort -hr'
  17. alias youtube-download="youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4'"
  18. alias get_space="sudo du -sh ./*"
  19. alias update="echo password | sudo -S apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get autoclean -y && sudo apt-get autoremove -y"
  20. alias tstart="sudo tlp start"
  21. alias ytv="youtube-dl --add-metadeta -ic"
  22. alias yta="youtube-dl --add-metadata -xic"
  23. alias es="speedometer -r enp11s0"
  24. alias wf="speedometer -r wlp2s0"
  25. alias 4get="wget -nd -r -l 1 -H -D i.4cdn.org -A png,gif,jpg,jpeg,webm,pdf"
  26.  
  27. export TERM=xterm-256color
  28.  
  29. PS1="\n\[\e[0;37m\]┌─[\[\e[1;32m\u\e[0;37m\]]──[\e[1;33m\w\e[0;34m]\[\e[0;34m\]\[\e[1;36m\] $_BRANCH_STR: \$ \[\e[0;37m\]\n|\n\[\e[0;37m\]└────╼ \[\e[1;36m\]>>> \[\e[00;00m\]"
  30.  
  31. source ~/.bash_profile;
Add Comment
Please, Sign In to add comment