Last active
July 26, 2019 15:57
-
-
Save shaybensasson/decf58dbd8ba6e1d024c07e1d60265ea to your computer and use it in GitHub Desktop.
My terminal .bashrc suffix addition
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
| #Trim terminal command prefix | |
| #ORIGINAL: | |
| #export PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ " | |
| export PS1="\[\033[01;34m\]\w\[\033[00m\]\$ " #path only | |
| # --------------------------------------------------------------------- | |
| # DL cuda stuff | |
| # --------------------------------------------------------------------- | |
| source /home/shay/DL_cuda_stuff.sh | |
| # Virtual Environment Wrapper | |
| export VIRTUALENVWRAPPER_PYTHON=$(which python3) | |
| source /usr/local/bin/virtualenvwrapper.sh | |
| #pet: By adding the following config to .bashrc, you can search snippets and output on the shell. | |
| # https://github.com/knqyf263/pet | |
| function pet-select() { | |
| BUFFER=$(pet search --query "$READLINE_LINE") | |
| READLINE_LINE=$BUFFER | |
| READLINE_POINT=${#BUFFER} | |
| } | |
| bind -x '"\C-x\C-r": pet-select' | |
| #required for pet and also gives very nice history when running ctrl+r | |
| [ -f ~/.fzf.bash ] && source ~/.fzf.bash | |
| #allows setting terminal title | |
| termtitle() { printf "\033]0;$*\007"; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment