exercism/shell
Anthony Cicchetti fbb2d0d15f /shrug
2020-03-05 17:38:46 -05:00
..
exercism_completion.bash /shrug 2020-03-05 17:38:46 -05:00
exercism_completion.zsh /shrug 2020-03-05 17:38:46 -05:00
README.md /shrug 2020-03-05 17:38:46 -05:00

Executable

Unpack the archive relevant to your machine and place in $PATH

Shell Completion Scripts

Bash

mkdir -p ~/.config/exercism
mv ../shell/exercism_completion.bash ~/.config/exercism/exercism_completion.bash

Load the completion in your .bashrc, .bash_profile or .profile by adding the following snippet:

if [ -f ~/.config/exercism/exercism_completion.bash ]; then
  source ~/.config/exercism/exercism_completion.bash
fi

Zsh

mkdir -p ~/.config/exercism
mv ../shell/exercism_completion.zsh ~/.config/exercism/exercism_completion.zsh

Load up the completion in your .zshrc, .zsh_profile or .profile by adding the following snippet

if [ -f ~/.config/exercism/exercism_completion.zsh ]; then
  source ~/.config/exercism/exercism_completion.zsh
fi

Oh my Zsh

If you are using the popular oh-my-zsh framework to manage your zsh plugins, move the file exercism_completion.zsh into ~/.oh-my-zsh/custom.