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