# =========================================================================== # Fish config # =========================================================================== # requires fisher (https://github.com/jorgebucaran/fisher) set -gx COLORTERM truecolor set -gx EDITOR vim set -gx LANG fr_FR.UTF-8 set -gx LC_ALL fr_FR.UTF-8 set --universal fish_greeting # 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 fish_add_path "$HOME/.local/bin" abbr -a vi vim abbr -a cdd "cd {{ .deploydir }}" set -x cdd {{ .deploydir }} # git abbr -a tiga tig --all # fzf function p --description "cd project" cd {{ .projectdir }} && _fzf_search_directory end # File find: CTRL+F, Git log: CTRL+G fzf_configure_bindings --directory=\cf --git_log=\cg # maven 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 # node if test -e "{{ .extra_ca_cert }}" set -x NODE_EXTRA_CA_CERTS {{ .extra_ca_cert }} set -x NODE_BUILD_CURL_OPTS --insecure end set -Ux fish_user_paths $HOME/.nodenv/bin $fish_user_paths # python if test -e "{{ .extra_ca_cert }}" set -x REQUESTS_CA_BUNDLE {{ .extra_ca_cert }} end if status is-interactive # Commands to run in interactive sessions can go here end