From 15e8648e4bd2c49f941302ae402619a115e4c6d4 Mon Sep 17 00:00:00 2001 From: Bryan Jenks Date: Thu, 7 May 2020 13:59:20 -0700 Subject: [PATCH] when mac install coreutils, alias gshuf to shuf --- flash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flash b/flash index e7a6c5e..f6d937a 100755 --- a/flash +++ b/flash @@ -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