dotfiles

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

commit 987999438a56c7d787c675081d6ce2ff2047541d
parent e4c6e91ae24c555efc881b755b593afd3713fee3
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Sat, 14 Apr 2018 21:36:00 +0200

Added linkdir command

Creates symlinks for everything in given directory in the local directory

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

diff --git a/.commonprofile b/.commonprofile @@ -145,6 +145,12 @@ unalias() { unset p done } +linkdir() { + for i in $1*; do + ln -s "$i" "`echo $i | rev | cut -d/ -f1 | rev`" + echo "'$i' -> './`echo $i | rev | cut -d/ -f1 | rev`'" + done +} ###################### ### PATH CHANGES ###