added readlink wrapper function to make Mac use greadlink

pull/2/head
Hari Sekhon 5 years ago
parent 48a13e8467
commit 50b43a7938

@ -326,9 +326,9 @@ proxy(){
}
paste_clipboard(){
if [ "$(uname)" = Darwin ]; then
if isMac; then
cat | pbcopy
elif [ "$(uname)" = Linux ]; then
elif isLinux; then
cat | xclip
else
echo "ERROR: OS is not Darwin/Linux"
@ -336,6 +336,14 @@ paste_clipboard(){
fi
}
readlink(){
if isMac; then
greadlink "$@"
else
readlink "$@"
fi
}
# see also readlink (beware differs between Linux and Mac)
# this works on imaginary paths
abspath(){

Loading…
Cancel
Save