dotfiles

beau's configuration files
git clone https://git.beauhilton.com/dotfiles.git
Log | Files | Refs | README

.bashrc (1312B)


      1 #!/usr/bin/env bash
      2 stty -ixon # Disable ctrl-s and ctrl-q.
      3 shopt -s autocd #Allows you to cd into directory merely by typing the directory name.
      4 
      5 # Infinite history.
      6 HISTSIZE=
      7 HISTFILESIZE=
      8 
      9 export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]"
     10 
     11 [ -f "$HOME/.config/shortcutrc" ] && source "$HOME/.config/shortcutrc" # Load shortcut aliases
     12 [ -f "$HOME/.config/aliasrc" ] && source "$HOME/.config/aliasrc"
     13 
     14 if [ ! -S ~/.ssh/ssh_auth_sock ]; then
     15   eval `ssh-agent`
     16   ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
     17 fi
     18 export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
     19 ssh-add -l > /dev/null || ssh-add
     20 
     21 # export PASSWORD_STORE_GPG_OPTS="--pinentry-mode loopback --passphrase YOUR_PASSPHRASE"
     22 
     23 # >>> conda initialize >>>
     24 # !! Contents within this block are managed by 'conda init' !!
     25 __conda_setup="$('/home/beau/sci/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
     26 if [ $? -eq 0 ]; then
     27     eval "$__conda_setup"
     28 else
     29     if [ -f "/home/beau/sci/miniconda3/etc/profile.d/conda.sh" ]; then
     30         . "/home/beau/sci/miniconda3/etc/profile.d/conda.sh"
     31     else
     32         export PATH="/home/beau/sci/miniconda3/bin:$PATH"
     33     fi
     34 fi
     35 unset __conda_setup
     36 # <<< conda initialize <<<
     37