-
Copy this repo into your favourite scripts directory e.g.
~/scripts
or~/bin
or~/.oh-my-zsh/functions
. It doesn't really matter. -
Open in any text editor you want:
2.1
~/.bashrc
2.2
~/.zshrc
2.3
~/.config/fish/config.fish
-
Go to the bottom and append:
(you can use other name than rainbow, obviously) 3.1
alias rainbow="YOUR_DIRECTORY/column_rainbower/column_rainbower.sh"
3.2
alias rainbow="YOUR_DIRECTORY/column_rainbower/column_rainbower.sh"
3.3
# I recommend using this path. You may need to create folder 'functions' first. function rainbow ~/.config/fish/functions/column_rainbower/column_rainbower.sh end
-
To reload you shell: 4.1
source ~/.bashrc # or ~/.zshrc
4.2
source ~/.zshrc
4.3
source ~/.config/fish/config.fish
-
Done! Now try to execute my script with your alias
rainbower