diff options
| author | Ryan Schanzenbacher <ryan@rschanz.org> | 2023-04-18 01:02:27 -0400 | 
|---|---|---|
| committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2023-04-18 01:02:27 -0400 | 
| commit | 6288091b7fea9bb2df667612fe7a4461a6311b0b (patch) | |
| tree | 2d69764e52a64f278a8479e222cde6c09c786d08 /home-config/.bashrc | |
Initial commit, more to come!
Diffstat (limited to 'home-config/.bashrc')
| -rw-r--r-- | home-config/.bashrc | 41 | 
1 files changed, 41 insertions, 0 deletions
diff --git a/home-config/.bashrc b/home-config/.bashrc new file mode 100644 index 0000000..76bfbec --- /dev/null +++ b/home-config/.bashrc  | |||
| @@ -0,0 +1,41 @@ | |||
| 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 | source /etc/bashrc | ||
| 21 | |||
| 22 | # Adjust the prompt depending on whether we're in 'guix environment'. | ||
| 23 | if [ -n "$GUIX_ENVIRONMENT" ] | ||
| 24 | then | ||
| 25 | PS1='\u@\h \w [env]\$ ' | ||
| 26 | else | ||
| 27 | PS1='\u@\h \w\$ ' | ||
| 28 | fi | ||
| 29 | alias ls='ls -p --color=auto' | ||
| 30 | alias ll='ls -l' | ||
| 31 | alias grep='grep --color=auto' | ||
| 32 | |||
| 33 | # Ryan's custom stuff | ||
| 34 | alias quit='exit' | ||
| 35 | export EDITOR=nvim | ||
| 36 | alias cat='bat --paging=never' | ||
| 37 | |||
| 38 | # GPG SETUP FOR SSH | ||
| 39 | export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) | ||
| 40 | gpgconf --launch gpg-agent | ||
| 41 | export GPG_TTY=$(tty) | ||
