stMind

about Tech, Computer vision and Machine learning

bash

bash_completion拡張中

よく使うコマンドはどしどしbash_completionに追加していく派です。 今日はpm-uninstallを追加。 have pm-uninstall && { _short_opts() { local cur opts COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" opts="-v -f -c -n -q -h -V -l -L" COMPREPLY=( $(c…

cygwinで.bash_profileに「期待してないtoken」のシンタックスエラーが出る時

cygwinを使っていて、.bash_profileに if [ -f ~/.bashrc ]; then source ~/.bashrc fi と記述して、cygwinのコンソールを起動すると、「期待してないtoken `fi'」のあたりにシンタックスエラーというエラーが表示されることがあります。このときは、.bash_p…