fish-shell
fish shell stuff
set fish as your default shell
chsh -s 'which fish'
append to the fish user path ($fish_user_paths)
set -U fish_user_paths /path/to/add $fish_user_paths
set env variables
- vim ~/.config/fish/config.fish
- then set -x MY_VAR my_var
- echo MY_VAR -> my_var
example:
set -x NODE_HOME /home/skrymer/coding/node/node-v8.11.3-linux-x64
set -x JAVA_HOME /home/skrymer/coding/java/jdk1.8.0_172
set -x GRADLE_HOME /home/skrymer/coding/gradle/gradle-4.8-rc-3
set -x MAVEN_HOME /home/skrymer/coding/maven/apache-maven-3.5.4
Install sdkman
- curl -s "https://get.sdkman.io" | bash
- install fisher if not done already: curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish
- fisher add reitzig/sdkman-for-fish
Install NVM
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
- nvm install --lts
- install fisher if not done already: curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish
- fisher add FabioAntunes/fish-nvm
- fisher add edc/bass
Install Oh My Fish
- see https://github.com/oh-my-fish/oh-my-fish
- curl -L https://get.oh-my.fish | fish
Fish config file - ~/.config/fish/config.fish
# GIT abbreviations
abbr gclb git checkout
abbr gcrb git checkout -b
abbr gf git fetch
abbr gc git commit
abbr gp git pull
abbr gmm git merge origin/master