when mac install coreutils, alias gshuf to shuf

This commit is contained in:
Bryan Jenks 2020-05-07 13:59:20 -07:00
parent e239411053
commit 15e8648e4b
1 changed files with 1 additions and 1 deletions

2
flash
View File

@ -52,7 +52,7 @@
# Prefer XDG Configuration before hard coded file paths
OS="$(uname)"
case "$OS" in
"Darwin") DIR="${XDG_DATA_HOME:-$HOME/Library/Application Support}/flash" ;;
"Darwin") DIR="${XDG_DATA_HOME:-$HOME/Library/Application Support}/flash" && alias shuf=gshuf ;;
"Linux") DIR="${XDG_DATA_HOME:-$HOME/.local/share}/flash" ;;
*) DIR="${XDG_DATA_HOME:-$HOME/.local/share}/flash" ;;
esac