Skip to content

Instantly share code, notes, and snippets.

@kazu634
Created November 26, 2011 12:36
Show Gist options
  • Save kazu634/1395586 to your computer and use it in GitHub Desktop.
Save kazu634/1395586 to your computer and use it in GitHub Desktop.
シェルスクリプトがあるディレクトリ配下の.filesをホームディレクトリにコピー
#!/bin/bash
# finding out the shell script directory
CURDIR=`dirname $0`
# copying the .files as a soft link
find $CURDIR -type f -name ".*" -maxdepth 1 -print0 | xargs -0 -J % ln -s % $HOME 2>/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment