.bashrc 834 B

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