.bashrc 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. export EDITOR="nano"
  7. if [[ $- != *i* ]]
  8. then
  9. # We are being invoked from a non-interactive shell. If this
  10. # is an SSH session (as in "ssh host command"), source
  11. # /etc/profile so we get PATH and other essential variables.
  12. [[ -n "$SSH_CLIENT" ]] && source /etc/profile
  13. # Don't do anything else.
  14. return
  15. fi
  16. # Source the system-wide file.
  17. source /etc/bashrc
  18. # Adjust the prompt depending on whether we're in 'guix environment'.
  19. if [ -n "$GUIX_ENVIRONMENT" ]
  20. then
  21. PS1='\u@\h \w [env]\$ '
  22. else
  23. PS1='\u@\h \w\$ '
  24. fi
  25. alias ls='ls -p --color=auto'
  26. alias ll='ls -l'
  27. alias grep='grep --color=auto'
  28. alias reconfigure='sudo guix system reconfigure ~/prog/gnu/guix/guix-config/sway.scm'
  29. # maybe someday I can get gtk font rendering to work and I can use wayland firefox
  30. # flatpak run --user --env=MOZ_ENABLE_WAYLAND=1 org.mozilla.firefox
  31. alias firefox='flatpak run --user --filesystem=home --socket=x11 --env=GDK_BACKEND=x11 org.mozilla.firefox'