source: dotfiles/guix/.bashrc@ c39b1a4

Last change on this file since c39b1a4 was c39b1a4, checked in by Mikhail Kirillov <w96k.ru@…>, on Aug 30, 2019 at 1:47:39 AM

Add gnu stow categories

  • Property mode set to 100644
File size: 834 bytes
Line 
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.
6export SHELL
7
8if [[ $- != *i* ]]
9then
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
17fi
18
19# Source the system-wide file.
20source /etc/bashrc
21
22# Adjust the prompt depending on whether we're in 'guix environment'.
23if [ -n "$GUIX_ENVIRONMENT" ]
24then
25 PS1='\u@\h \w [env]\$ '
26else
27 PS1='\u@\h \w\$ '
28fi
29alias ls='ls -p --color=auto'
30alias ll='ls -l'
31alias grep='grep --color=auto'
Note: See TracBrowser for help on using the repository browser.