Re: [MacPorts] #37462: git-core: Actual bash_completion dir implies in bug on hub and git-flow bash completion
#37462: git-core: Actual bash_completion dir implies in bug on hub and git-flow bash completion ------------------------------+------------------------- Reporter: robsonpeixoto@… | Owner: ciserlohn@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: haspatch Port: git-core | ------------------------------+------------------------- Comment (by bernicecarisa@…): Installation for Bash To achieve git-flow completion nirvana: 1. Install git-completion. 2. Install git-flow-completion.bash. Either: (i). Place it in your bash_completion.d folder, usually something like /etc/bash_completion.d, /usr/local/etc/bash_completion.d or ~/bash_completion.d. (ii). copy it somewhere (e.g. ~/git-flow-completion.bash) and put the following line in the .profile or .bashrc file in your home directory: {{{ source ~/git-flow-completion.bash }}} 3. If you are using Git < 1.7.1, you will need to edit git completion (usually /etc/bash_completion.d/git or git-completion.sh) and add the following line to the $command case in _git: {{{ git () { [...] case "$command" in [...] flow) _git_flow ;; *) COMPREPLY=() ;; esac } }}} '''Installation for Zsh''' 1. Update your zsh's git-completion module to the newest version. 2. Install git-flow-completion.zsh. Either: i. Place it in your .zshrc. ii. Or, copy it somewhere (e.g. ~/.git-flow-completion.zsh) and put the following line in your .zshrc: {{{ source ~/.git-flow-completion.zsh }}} B. Turn the plugin on by updating your zsh configuration file, ~/.zshrc a.{{{ open ~/.zshrc }}} b. Find the plugins section. It'll look like this: {{{ # Which plugins would you like to load? (plugins can be found in ~/.oh-my- zsh/plugins/*) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) plugins=(<some-plugin> <another-plugin> <third-plugin>) }}} C- Add git-flow-completion to the list of plugins within the parentheses. D- Save Installation for fish [http://qwikfix.co.uk/apple-contact-number/ -] To achieve git-flow completion nirvana: {{{ 1- Install git.fish in your ~/.config/fish/completions folder. }}} -- Ticket URL: <https://trac.macports.org/ticket/37462#comment:12> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts