Created
March 29, 2021 18:40
-
-
Save bsyouness/11e3d7e6ca2c0357a0e38ca376c3e8a4 to your computer and use it in GitHub Desktop.
This file contains 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
# Git branch in prompt | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
# export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " | |
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ " | |
alias ls='ls -G' | |
export CLICOLOR=1 | |
export LSCOLORS=Gxfxcxdxbxegedabagacad | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
test -f ~/.git-completion.bash && . $_ | |
. $HOME/miniconda3/etc/profile.d/conda.sh | |
conda activate | |
. $HOME/proxyconfig/env_setup | |
#Aliases | |
# directories | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias ....="cd ../../.." | |
alias ~="cd ~" | |
alias cd="cd " | |
cd() { builtin cd "$@" && ls; } | |
cd() { builtin cd "$@"; } | |
#History | |
HISTSIZE=5000 #nb of lines in history | |
HISTFILESIZE=100000 #max filesize stored in .bash_history | |
# export PROMPT_COMMAND="history -a; history -c; history -r;" # multi-shell friendly | |
export HISTCONTROL=ignoredups:erasedups | |
export BIPY_WORKING_DIR="$HOME/Desktop/code/jlabremix" | |
export BIPY_BQPLATFORM_DIR="$HOME/miniconda3/envs/jlab" | |
alias updatebqleditor="cd ~/Desktop/code/jlabremix && source ~/Desktop/code/bqnt-docs/jlabremix/update_bql_editor.sh && cd -" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment