Advertisement
casial

bash_aliases

Apr 8th, 2021
681
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.46 KB | None | 0 0
  1. # Function which adds an alias to the current shell and to
  2. # the ~/.bash_aliases file.
  3. add-alias ()
  4. {
  5.    local name=$1 value="$2"
  6.    echo alias $name=\'$value\' >>~/.bash_aliases
  7.    eval alias $name=\'$value\'
  8.    alias $name
  9. }
  10.  
  11. alias tmu='tmux attach'
  12. alias tmul='tmux list-sessions'
  13. alias ll='ls -lah'
  14. alias l='ls -l'
  15. alias auu='sudo apt-get update && apt-get upgrade'
  16. alias cp='cp -v'
  17. alias rm='rm -v'
  18. alias mkd='mkdir -p'
  19. alias ds='date +%a-%F_%R'
  20.  
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement