Skip to content

Instantly share code, notes, and snippets.

@chauncey-garrett
Created April 3, 2014 18:12
Show Gist options
  • Save chauncey-garrett/9959708 to your computer and use it in GitHub Desktop.
Save chauncey-garrett/9959708 to your computer and use it in GitHub Desktop.
#!/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