Fish Shell config update
This commit is contained in:
parent
10039467cc
commit
18aab67ac4
3 changed files with 41 additions and 4 deletions
|
@ -19,6 +19,7 @@ Plugin 'kien/ctrlp.vim'
|
||||||
Plugin 'tpope/vim-vinegar'
|
Plugin 'tpope/vim-vinegar'
|
||||||
Plugin 'flazz/vim-colorschemes'
|
Plugin 'flazz/vim-colorschemes'
|
||||||
Plugin 'airblade/vim-gitgutter'
|
Plugin 'airblade/vim-gitgutter'
|
||||||
|
Plugin 'khaveesh/vim-fish-syntax'
|
||||||
|
|
||||||
call vundle#end()
|
call vundle#end()
|
||||||
filetype plugin indent on " required!
|
filetype plugin indent on " required!
|
||||||
|
|
|
@ -5,7 +5,20 @@
|
||||||
|
|
||||||
set -gx EDITOR vim
|
set -gx EDITOR vim
|
||||||
|
|
||||||
# FZF
|
# nix
|
||||||
|
if test -e $HOME/.nix-profile/etc/profile.d/nix.sh
|
||||||
|
fenv source $HOME/.nix-profile/etc/profile.d/nix.sh
|
||||||
|
abbr -a nix-update "nix-channel --update && nix-env -u"
|
||||||
|
function nix-search
|
||||||
|
nix-env -qa --description ".*$argv.*"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if test -d "$HOME/.local/bin"
|
||||||
|
fish_add_path "$HOME/.local/bin"
|
||||||
|
end
|
||||||
|
|
||||||
|
# fzf
|
||||||
if type -q fzf
|
if type -q fzf
|
||||||
function p --description "cd project"
|
function p --description "cd project"
|
||||||
cd {{ .projectdir }} && _fzf_search_directory
|
cd {{ .projectdir }} && _fzf_search_directory
|
||||||
|
@ -14,9 +27,30 @@ if type -q fzf
|
||||||
fzf_configure_bindings --directory=\cf --git_log=\cg
|
fzf_configure_bindings --directory=\cf --git_log=\cg
|
||||||
end
|
end
|
||||||
|
|
||||||
# NIX
|
|
||||||
if test -e ~/.nix-profile/etc/profile.d/nix.sh
|
# maven
|
||||||
fenv source ~/.nix-profile/etc/profile.d/nix.sh
|
if type -q mvn
|
||||||
|
abbr -a m mvn
|
||||||
|
abbr -a mvnp mvn -Dmaven.test.skip -Dmaven.javadoc.skip=true -DskipMunitTests clean package
|
||||||
|
abbr -a mvni mvn -Dmaven.test.skip -Dmaven.javadoc.skip=true clean install
|
||||||
|
abbr -a mvnd mvn -Dmaven.test.skip -Dmaven.javadoc.skip=true deploy -P profile-nexus
|
||||||
|
abbr -a mbump mvn versions:set -DnewVersion=$1 -DgenerateBackupPoms=false
|
||||||
|
abbr -a d python3 ~/.local/bin/deploy.py
|
||||||
|
end
|
||||||
|
|
||||||
|
# node
|
||||||
|
if test -e "{{ .extra_ca_cert }}"
|
||||||
|
set -x NODE_EXTRA_CA_CERTS {{ .extra_ca_cert }}
|
||||||
|
set -x NODE_BUILD_CURL_OPTS --insecure
|
||||||
|
end
|
||||||
|
if test -d "$HOME/.nodenv"
|
||||||
|
#set -Ux fish_user_paths $HOME/.nodenv/bin $fish_user_paths
|
||||||
|
fish_add_path "$HOME/.nodenv/bin"
|
||||||
|
end
|
||||||
|
|
||||||
|
# python
|
||||||
|
if test -e "{{ .extra_ca_cert }}"
|
||||||
|
set -x REQUESTS_CA_BUNDLE {{ .extra_ca_cert }}
|
||||||
end
|
end
|
||||||
|
|
||||||
if status is-interactive
|
if status is-interactive
|
||||||
|
|
|
@ -2,3 +2,5 @@ patrickf1/fzf.fish
|
||||||
ilancosman/tide@v5
|
ilancosman/tide@v5
|
||||||
gazorby/fish-abbreviation-tips
|
gazorby/fish-abbreviation-tips
|
||||||
oh-my-fish/plugin-foreign-env
|
oh-my-fish/plugin-foreign-env
|
||||||
|
reitzig/sdkman-for-fish@v1.4.0
|
||||||
|
oh-my-fish/plugin-pyenv
|
||||||
|
|
Loading…
Add table
Reference in a new issue