Last active
April 8, 2019 07:47
-
-
Save heygema/3e46d0a591535afcbaa3b960dd696b28 to your computer and use it in GitHub Desktop.
fish config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fish Config | |
# Mon Apr 8 14:44:12 2019 | |
source $HOME/.config/fish/dev_vars.fish | |
set -gx NVM_DIR (brew --prefix nvm) | |
#function nvm | |
# bass source ~/.nvm/nvm.sh --no-use ';' nvm $argv | |
#end | |
# nvm use default --silent | |
# Install last stable node.js | |
# ⋊> ~ nvm install stable | |
# Set stable version to default | |
# ⋊> ~ nvm alias default stable | |
if status is-interactive | |
and not set -q TMUX | |
exec tmux | |
end | |
function npmRoot | |
npm root -g | |
end | |
set PATH $HOME/.cargo/bin $PATH | |
set ANDROID_HOME $HOME/Library/Android/sdk | |
set PATH $PATH:$ANDROID_HOME/tools | |
set PATH $PATH:$ANDROID_HOME/platform_tools | |
set PATH $PATH:$ANDROID_HOME/emulator | |
set PATH $HOME/Library/Frameworks/Python.framework/Versions/3.6/bin:$PATH | |
function resource | |
source ~/.config/fish/config.fish | |
end | |
function convig | |
if test $argv[1] = "vim" | |
vim $HOME/.vimrc | |
end | |
if test $argv[1] = "alacritty" | |
vim $HOME/.config/alacritty/alacritty.yml | |
end | |
if test $argv[1] = "dev_vars" | |
vim $HOME/.config/fish/dev_vars.fish | |
end | |
if test $argv[1] = "fish" | |
vim $HOME/.config/fish/config.fish | |
end | |
if test $argv[1] = "tmux" | |
vim $HOME/.tmux.conf | |
else | |
echo "No Config file set" | |
end | |
end | |
function gt | |
cd $HOME/projects/$argv[1] | |
end | |
alias bn "babel-node" | |
alias nv "nvim" | |
function mcd | |
mkdir -p $argv[1] && cd $argv[1] | |
end | |
# allow locally installed npm binaries to be executed; | |
# added by `npm i -g add-local-binaries-to-path` | |
set -gx PATH $PATH ./node_modules/.bin | |
# tabtab source for serverless package | |
# uninstall by removing these lines or running `tabtab uninstall serverless` | |
[ -f /usr/local/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.fish ]; and . /usr/local/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.fish | |
# tabtab source for sls package | |
# uninstall by removing these lines or running `tabtab uninstall sls` | |
[ -f /usr/local/lib/node_modules/serverless/node_modules/tabtab/.completions/sls.fish ]; and . /usr/local/lib/node_modules/serverless/node_modules/tabtab/.completions/sls.fish |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# any development variables. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment