Markort

personal additions to .bashrc file

Feb 13th, 2025 (edited)
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.62 KB | Source Code | 0 0
  1. # ll alias to show only unhidden files
  2. alias ll='ls -lF'
  3. # ll alias for show hidden files
  4. # alias ll='ls -laF'
  5.  
  6. # upgrading packages via apt-get
  7. read -p "=== Want to update and upgrade apt-get ([y],n)?" choice
  8. choice=${choice:-y}
  9. if [ $choice == 'y' ]; then
  10.     echo ==== Updating
  11.     sudo apt-get update
  12.     echo ==== Upgrading
  13.     sudo apt-get upgrade
  14.     echo ==== Autoremoving
  15.     sudo apt-get autoremove
  16.     echo ==== Autocleaning
  17.     sudo apt-get autoclean
  18.     echo == Packages upgraded
  19.     echo
  20. fi
  21.  
  22. # SSH AGENT for GitHub
  23. echo == Starting the SSH Agent
  24. eval $(ssh-agent -s)
  25. ssh-add ~/.ssh/id_ed25519
  26. echo == Agent started
  27. echo
  28.  
  29.  
  30.  
Tags: BASH bashrc
Advertisement
Add Comment
Please, Sign In to add comment