Guest User

zshrc

a guest
Apr 27th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. su () {
  2. checksu=0
  3. for flags in $*; do
  4. if [[ $flags == "-" ]]; then
  5. checksu=1
  6. fi
  7. done
  8. if [[ $checksu == 0 ]]; then
  9. echo "Use 'su -', Luke"
  10. /usr/bin/su - $*
  11. else
  12. /usr/bin/su $*
  13. fi
  14. }
Advertisement
Add Comment
Please, Sign In to add comment