Line | |
---|
1 | export SHELL
|
---|
2 |
|
---|
3 | # Source the system-wide file.
|
---|
4 | source /etc/bashrc
|
---|
5 |
|
---|
6 | # Adjust the prompt depending on whether we're in 'guix environment'.
|
---|
7 | if [ -n "$GUIX_ENVIRONMENT" ]
|
---|
8 | then
|
---|
9 | export PS1="\w [env]\$ "
|
---|
10 | else
|
---|
11 | export PS1="\[$(tput bold; tput setaf 4;)\]\w \$ \[$(tput sgr0)\]"
|
---|
12 | # Direnv
|
---|
13 | eval "$(direnv hook bash)"
|
---|
14 | fi
|
---|
15 | alias ls='ls -p --color=auto'
|
---|
16 | alias ll='ls -l'
|
---|
17 | alias grep='grep --color=auto'
|
---|
18 |
|
---|
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 |
|
---|
27 | export PYTHONSTARTUP="${HOME}/.pythonrc"
|
---|
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 |
|
---|
44 | if [ -f ~/.bash_profile ]; then
|
---|
45 | . ~/.bash_profile
|
---|
46 | fi
|
---|
47 |
|
---|
48 | # Welcome message
|
---|
49 | printf "Welcome to bash shell\n\n"
|
---|
50 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.