daily pastebin goal
22%
SHARE
TWEET

Untitled

a guest May 19th, 2017 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Detect which `ls` flavor is in use (Mac or Linux)
  2. if ls --color > /dev/null 2>&1; then
  3.     ls_color_flag="--color" # GNU/Linux
  4. else
  5.     ls_color_flag="-G" # BSD/macOS
  6. fi
  7.  
  8. # Always show color when interactive
  9. alias ls="ls ${ls_color_flag}"
RAW Paste Data
Top