git.fiddlerwoaroof.com
Browse code

feat(zsh): use nix for gnu utils

Ed Langley authored on 29/10/2020 22:04:06
Showing 1 changed files
... ...
@@ -1,9 +1,12 @@
1 1
 #:depends-on:utils
2
+#:depends-on:nix
2 3
 export GNU_PREFIX=''
3 4
 platform="$(uname -s)"
4 5
 # interactive_echo the platform is "$platform"
5 6
 if [[ $platform == 'Darwin' ]] && command -v gls 2>&1 >/dev/null; then
6 7
 	GNU_PREFIX='g'
8
+   GREALPATH='grealpath'
7 9
 else
8 10
    echo gnu tools unprefixed
11
+   GREALPATH='realpath'
9 12
 fi