Skip to content

Instantly share code, notes, and snippets.

@doituikhovai
Last active March 15, 2022 04:34
Show Gist options
  • Save doituikhovai/b8bbd04c6854c6442603c16a8cef55cd to your computer and use it in GitHub Desktop.
Save doituikhovai/b8bbd04c6854c6442603c16a8cef55cd to your computer and use it in GitHub Desktop.
## Install execution script to PC
mkdir ~/.scripts
mkdir ~/bin
vim ~/.scripts/ws
# Copy execution script gist to this file
install ~/.scripts/ws ~/bin/ws
## Add completion
vim ~/.scrtipts/ws.bash
# Copy completion gist to ws.bash
# Add command to .bashrc
`source ~/.scripts/ws.bash`
source ~/.bashrc
# If source fail with err 's/\r//'
sed -i 's/\r//' ~/.scripts/ws
# If using zsh include these codes before add `source ws.bash` line
autoload bashcompinit
bashcompinit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment