As stated in the comments above,
complete -o default -o nospace -F _git_checkout gco
will no longer work. However, there’s a __git_complete
function in git-completion.bash which can be used to set up completion for aliases like so:
__git_complete gco _git_checkout
More Related Contents:
- How to specify the private SSH-key to use when executing shell command on Git?
- Check if pull needed in Git
- How to programmatically determine the current checked out Git branch [duplicate]
- Add line break to ‘git commit -m’ from the command line
- How to embed bash script directly inside a git alias
- Force “git status” to output color on the terminal (inside a script)
- How can I check if a directory exists in a Bash shell script?
- Which characters need to be escaped when using Bash?
- “~/Desktop/test.txt: No such file or directory”
- Aborting a shell script if any command returns a non-zero value
- Git Bash is extremely slow on Windows 7 x64
- What is the difference between using `sh` and `source`?
- Setting environment variables in Linux using Bash
- “Invalid Arithmetic Operator” when doing floating-point math in bash
- Checking for a dirty index or untracked files with Git
- Does “argument list too long” restriction apply to shell builtins?
- Given two directory trees, how can I find out which files differ by content? [closed]
- Using the passwd command from within a shell script
- How do I pause my shell script for a second before continuing?
- Why doesn’t my bash prompt update?
- Is there a way to make bash job control quiet?
- Bash regex =~ operator
- Linux/Unix command to determine if process is running?
- Convert Unix timestamp to a date string
- Using Bash to display a progress indicator (spinner) [duplicate]
- Extract version number from a string
- Calling ‘git pull’ from a git post-update hook
- Need to remove the count from the output when using “uniq -c” command
- How do you run a script on login in *nix?
- How do I write a batch file which opens the GitBash shell and runs a command in the shell?