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