From 4af38786461240771db88d24f080103552d6393b Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 4 Aug 2016 15:10:24 -0700 Subject: [PATCH] Add a which_readlink function --- dotfiles/lib/shellenv/functions.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dotfiles/lib/shellenv/functions.sh b/dotfiles/lib/shellenv/functions.sh index a3debf2c..de430703 100644 --- a/dotfiles/lib/shellenv/functions.sh +++ b/dotfiles/lib/shellenv/functions.sh @@ -437,3 +437,7 @@ function edit_script { function in_git_directory { [ -d .git ] } + +function which_readlink { + readlink -f $(which $1) +}