source: dotfiles/guix/.bashrc@ c53d99e

Last change on this file since c53d99e was 8bf0e33, checked in by Mikhail Kirillov <w96k@…>, on Mar 25, 2022 at 6:33:47 PM

Add firefox alias

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