Last active
April 29, 2017 12:04
-
-
Save shikajiro/37cbe95581051141a9e13af1c34f22ce to your computer and use it in GitHub Desktop.
bashでディレクトリ移動した時に `.start.sh` が存在したらそれを実行する。.bashrcに追加する
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
autoshell(){ | |
[[ -n $AUTOLS_DIR ]] && [[ $AUTOLS_DIR != $PWD ]] && [ -e ./.start.sh ] && ./.start.sh | |
AUTOLS_DIR="${PWD}" | |
} | |
PROMPT_COMMAND="autoshell" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks
https://twitter.com/papiron
https://twitter.com/vikke