dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit d8c52ee3b7742e9d628edb12ae3bd6e06c31671b
parent 1995383bdfdfc741148f953d813972b3238da976
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Tue,  8 May 2018 00:28:42 +0200

Added an if statement to check and add trailing slash

Diffstat:
M.commonprofile | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/.commonprofile b/.commonprofile @@ -165,6 +165,9 @@ unalias() { done } linkdir() { + if [[ "$1" != */ ]]; then + 1=$(echo "$1" | sed "s/$/\//") + fi for i in $1*; do ln -s "$i" "`echo $i | rev | cut -d/ -f1 | rev`" echo "'$i' -> './`echo $i | rev | cut -d/ -f1 | rev`'"