Skip to content

Instantly share code, notes, and snippets.

@ken1flan
Created August 11, 2014 01:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ken1flan/92c2ac898b4a6307c98e to your computer and use it in GitHub Desktop.
Save ken1flan/92c2ac898b4a6307c98e to your computer and use it in GitHub Desktop.
ワークディレクトリに移動するbash関数
function goto_work () {
work_dir=~/work/`date +%Y%m%d`
if [ ! -d ${work_dir} ]; then
mkdir -p ${work_dir}
fi
cd ${work_dir}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment