Rev | Line | |
---|
[c39b1a4] | 1 | export SHELL
|
---|
| 2 |
|
---|
[152284a] | 3 | # Source the system-wide file.
|
---|
| 4 | source /etc/bashrc
|
---|
[c39b1a4] | 5 |
|
---|
| 6 | # Adjust the prompt depending on whether we're in 'guix environment'.
|
---|
[7b427be] | 7 | if [ -n "$GUIX_ENVIRONMENT" ]
|
---|
| 8 | then
|
---|
[cc8263e] | 9 | export PS1="\w [env]\$ "
|
---|
[7b427be] | 10 | else
|
---|
[29c978d] | 11 | export PS1="\[$(tput bold; tput setaf 4;)\]\w \$ \[$(tput sgr0)\]"
|
---|
[fcd469c] | 12 | # Direnv
|
---|
| 13 | eval "$(direnv hook bash)"
|
---|
[7b427be] | 14 | fi
|
---|
| 15 | alias ls='ls -p --color=auto'
|
---|
| 16 | alias ll='ls -l'
|
---|
| 17 | alias grep='grep --color=auto'
|
---|
[0d64484] | 18 |
|
---|
[1acf9a9] | 19 | # set a fancy prompt (non-color, unless we know we "want" color)
|
---|
| 20 | case "$TERM" in
|
---|
| 21 | xterm-color|*-256color) color_prompt=yes;;
|
---|
| 22 | esac
|
---|
| 23 |
|
---|
| 24 | # colored GCC warnings and errors
|
---|
| 25 | export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
---|
| 26 |
|
---|
[e38dbb9] | 27 | export PYTHONSTARTUP="${HOME}/.pythonrc"
|
---|
[1acf9a9] | 28 | export PYTHONIOENCODING="UTF-8"
|
---|
| 29 |
|
---|
| 30 | if [ "$DISTRO" == "Debian" ]; then
|
---|
| 31 | if [ -f ~/.bash_aliases ]; then
|
---|
| 32 | . ~/.bash_aliases
|
---|
| 33 | fi
|
---|
| 34 |
|
---|
| 35 | if ! shopt -oq posix; then
|
---|
| 36 | if [ -f /usr/share/bash-completion/bash_completion ]; then
|
---|
| 37 | . /usr/share/bash-completion/bash_completion
|
---|
| 38 | elif [ -f /etc/bash_completion ]; then
|
---|
| 39 | . /etc/bash_completion
|
---|
| 40 | fi
|
---|
| 41 | fi
|
---|
| 42 | fi
|
---|
| 43 |
|
---|
[8bf0e33] | 44 | if [ -f ~/.bash_profile ]; then
|
---|
| 45 | . ~/.bash_profile
|
---|
| 46 | fi
|
---|
| 47 |
|
---|
[0d64484] | 48 | # Welcome message
|
---|
| 49 | printf "Welcome to bash shell\n\n"
|
---|
[1acf9a9] | 50 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.