source: dotfiles/guix/.bashrc@ dc74d32

Last change on this file since dc74d32 was dc74d32, checked in by Mikhail Kirillov <w96k@…>, on Jul 3, 2022 at 8:18:15 PM

Update guix config

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