(MacOSX10.8, Emacs24.2)
emacs-bash-completion
init.el
(require 'bash-completion) (bash-completion-setup) ;; (setq bash-completion-initial-timeout 60) (setq bash-completion-process-timeout 7) (setq bash-completion-prog "/opt/local/bin/bash")
MacPorts ã§ã³ãã³ãã§è£å®ä½¿ããããã«ã¤ã³ã¹ãã¼ã«
$ sudo port install bash $ sudo port install bash_completion $ sudo port install git-core +bash_completion $ sudo port install mercurial +bash_completion
åé¡çºç
ãªããè£å®ãterminal.appä¸ã§ã§ããã®ã«ãshell-modeã§åºæ¥ãªãã
ãããä¸é¨ã³ãã³ãã¯è£å®ã§ããä¸é¨ã§ããªãã
git ã¯ã§ãããhg ã¯åºæ¥ãã
ä»ã«ã¤ã³ã¹ãã¼ã«ããã¦ãããã®ã§portã¯ã§ãããrbenvã¯åºæ¥ãã
rbenv
bashrc
eval "$(rbenv init - source opt/local/etc/bash_completion.d/rbenv)"
解決
completions ã«å ¥ã£ã¦ãããã¡ã¤ã«ã§ä½¿ããã¤ã®ãã¼ããã·ã§ã³ãå¤æ´ãã¦ãbashrc ã«è¨å®æ¸ãã
- cd /opt/local/share/bash-completion/completions
- sudo chmod 755 port
- sudo chmod 755 git
source /opt/local/share/bash-completion/completions/git source /opt/local/share/bash-completion/completions/port
shell-modeã§ãè£å®ã§ããããã«ãªã£ãã
mercurialãè£å®ã§ããªãã¨ãã¯
source /opt/local/share/bash-completion/completions/mercurial