.bashrc
| 1 | # Bash initialization for interactive non-login shells and |
| 2 | # for remote shells (info "(bash) Bash Startup Files"). |
| 3 | |
| 4 | # Export 'SHELL' to child processes. Programs such as 'screen' |
| 5 | # honor it and otherwise use /bin/sh. |
| 6 | export SHELL |
| 7 | |
| 8 | if [[ $- != *i* ]] |
| 9 | then |
| 10 | # We are being invoked from a non-interactive shell. If this |
| 11 | # is an SSH session (as in "ssh host command"), source |
| 12 | # /etc/profile so we get PATH and other essential variables. |
| 13 | [[ -n "$SSH_CLIENT" ]] && source /etc/profile |
| 14 | |
| 15 | # Don't do anything else. |
| 16 | return |
| 17 | fi |
| 18 | |
| 19 | # Source the system-wide file. |
| 20 | if [[ -e /etc/bashrc ]]; then |
| 21 | source /etc/bashrc |
| 22 | fi |
| 23 | |
| 24 | # Adjust the prompt depending on whether we're in 'guix environment'. |
| 25 | if [ -n "$GUIX_ENVIRONMENT" ] |
| 26 | then |
| 27 | PS1='\u@\h \w [env]\$ ' |
| 28 | else |
| 29 | PS1='\u@\h \w\$ ' |
| 30 | fi |
| 31 | alias ls='ls -p --color=auto' |
| 32 | alias ll='ls -l' |
| 33 | alias grep='grep --color=auto' |
| 34 | alias vim=nvim |
| 35 | alias info="info --vi-keys" |
| 36 |