Last active
February 9, 2022 23:25
-
-
Save kirankotari/7e650fe38f9b8c6b4e033afe46d44ced to your computer and use it in GitHub Desktop.
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
# Path to Oh My Fish install. | |
set -q XDG_DATA_HOME | |
and set -x OMF_PATH "$XDG_DATA_HOME/omf" | |
or set -x OMF_PATH "$HOME/.local/share/omf" | |
# Load Oh My Fish configuration. | |
source $OMF_PATH/init.fish | |
# ssh key | |
set PUBLIC_KEY $HOME/.ssh/<key>.pub | |
# set UTF-8 | |
# export LC_ALL=en_US.UTF-8 | |
set LC_ALL en_US.UTF-8 | |
# set rust | |
set RUST_PATH $HOME/.cargo/bin | |
set -x PATH $RUST_PATH $PATH | |
# set pyenv | |
set PYENV_ROOT $HOME/.pyenv | |
set -x PATH $PYENV_ROOT/shims $PYENV_ROOT/bin $PATH | |
pyenv rehash | |
status --is-interactive; and . (pyenv init -|psub) | |
# status --is-interactive; and . (pyenv virtualenv-init -|psub) | |
# set python path | |
# set -x PYTHONPATH <project-specific> $PYTHONPATH | |
# set openssl | |
set -x LDFLAGS "-L/usr/local/opt/[email protected]/lib" | |
set -x CPPFLAGS "-I/usr/local/opt/[email protected]/include" | |
set -x PKG_CONFIG_PATH "/usr/local/opt/[email protected]/lib/pkgconfig" | |
set -x PATH "/usr/local/opt/[email protected]/bin:$PATH" | |
# set java | |
set -x JAVA_HOME "/Library/Java/JavaVirtualMachines/openjdk-11.jdk/Contents/Home" | |
set -x CPPFLAGS "-I/usr/local/opt/openjdk@11/include" | |
# set JENV_ROOT $HOME/.jenv | |
# set -x PATH $JENV_ROOT/bin "$PATH" | |
# status --is-interactive; and . (jenv init -|psub) | |
# set grep gnu | |
set -x PATH "/usr/local/opt/grep/libexec/gnubin:$PATH" | |
# set zlib | |
set -x LDFLAGS "-L/usr/local/opt/zlib/lib" | |
set -x CPPFLAGS "-I/usr/local/opt/zlib/include" | |
set -x PKG_CONFIG_PATH "/usr/local/opt/zlib/lib/pkgconfig" | |
# set terminal color | |
set -x LSCOLORS "gxfxcxdxbxegedabagacad" | |
set pipenv_fish_fancy yes | |
set -U fish_user_paths ~/.pyenv/shims $fish_user_paths | |
# # gettext issue: solution | |
# set GIT_INTERNAL_GETTEXT_TEST_FALLBACKS 1 | |
# set -gx PATH /usr/local/opt/gettext/bin "$PATH" | |
# # linux | |
alias l='ls' | |
alias ll='ls -lart' | |
alias cls='clear' | |
alias c='clear' | |
alias h='history | nl' | |
alias sed='gsed' | |
alias grep='ggrep' | |
# # cisco lab | |
alias cd.='cd ..' | |
alias cd..='cd ../..' | |
alias cd...='cd ../../..' | |
alias cd....='cd ../../../..' | |
# # git | |
alias g='git' | |
alias gst='git status' | |
alias gdiff='git diff' | |
alias gp='git push' | |
alias gpl='git pull' | |
alias grm='git rm --cached -r' | |
# # nso | |
alias y2tree='pyang -f tree' | |
# alias nc='ncs_cli -Cu admin' | |
alias nj='ncs_cli -Ju admin' | |
alias m='make' | |
alias mc='make clean' | |
alias mca='make clean all' | |
# # nso project specific | |
alias cdp 'cd /var/opt/ncs/packages/' | |
alias cdy 'cd ./src/yang' | |
alias cdpy 'cd ./python/*/' | |
# # set tunnels | |
# alias tunnel 'ssh -L <localport>:localhost:22 <jump-server-hostname>' | |
# # set ssh alias | |
# alias <name> "ssh <user>@<ip> -I $PUBLIC_KEY" | |
set -x VIRTUAL_ENV_DISABLE_PROMPT 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment