1234567891011121314151617181920212223242526 |
- # Default bashrc file
- DOTFILES=/home/cmte/dotfiles/bash; export DOTFILES
- # Set bash-completion
- if ! shopt -oq posix; then
- if [ -f /usr/share/bash-completion/bash_completion ]; then
- . /usr/share/bash-completion/bash_completion
- elif [ -f /etc/bash_completion ]; then
- . /etc/bash_completion
- fi
- fi
- # Set Bash history
- HISTCONTROL=ignoredups
- HISTSIZE=10000
- HISTFILE_SIZE=20000
- shopt -s checkwinsize
- # Set PS1 variable
- export PS1="[\u@\h \W]\\$ \[$(tput sgr0)\]"
- # Read configurations
- [ -f $DOTFILES/aliases ] && . $DOTFILES/aliases
- [ -f $DOTFILES/paths ] && . $DOTFILES/paths
- [ -f $DOTFILES/environment ] && . $DOTFILES/environment
- source "$HOME/.cargo/env"
|