Guest User

Untitled

a guest
Nov 23rd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. alias ls=ls_mod
  2.  
  3. ls_mod () {
  4. DIRS_TO_SHOW_HIDDEN=(dir1 dir2 dir3)
  5. for DIR in "$@"; do
  6. for CHECK in "${DIRS_TO_SHOW_HIDDEN[@]}"; do
  7. if [ "$(realpath "$DIR")" == "$CHECK" ]; then
  8. ls -a "$DIR"
  9. else
  10. ls "$DIR"
  11. fi
  12. done
  13. done
  14. }
Add Comment
Please, Sign In to add comment