aliases 594 B

123456789101112
  1. alias check_login_ips="last | grep -P -o '((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)(\.(?!$)|\b)){4}' - | grep -v '192.168.0' | grep -v '24.166.27.22' | sort | uniq"
  2. alias insignia="clear; cat ~/.insignia; echo;"
  3. # General utility
  4. alias simple_serve="python3 -m http.server 12080"
  5. # git commands
  6. alias status="clear; git status"
  7. alias git_home="git checkout master"
  8. alias git_root="cd $(git rev-parse --show-toplevel)"
  9. alias fetch_pull="git fetch && git pull"
  10. # Checks that the terminal windows is 72 chars wide
  11. # Useful for VS Code terminals
  12. alias check_width="printf '=%.0s' {1..72}; echo"