Created
April 3, 2014 18:12
-
-
Save chauncey-garrett/9959708 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
# | |
# Sym-link files to the bin dotfiles directory | |
# | |
local dir_current="$(pwd)" | |
local dir_bin="$HOME/.bin" | |
for file in "$@" | |
do | |
[[ -f $file ]] && ln -s "$dir_current/$file" "$bin/${${file}%.*}" | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment