summaryrefslogtreecommitdiff
path: root/home-config/bashrc
diff options
context:
space:
mode:
authorRyan Schanzenbacher <ryan@rschanz.org>2023-04-20 18:13:50 -0400
committerRyan Schanzenbacher <ryan@rschanz.org>2023-04-20 18:13:50 -0400
commite7cf19865c2d191a8bd5f10b5d3c17075740e385 (patch)
tree62a3a4fea357fd312c48e0b43275a64f532bfe35 /home-config/bashrc
parenta88af515815576871d6a4b01ac5c448172ee50e2 (diff)
renamed files to not be hidden
Diffstat (limited to 'home-config/bashrc')
-rw-r--r--home-config/bashrc45
1 files changed, 45 insertions, 0 deletions
diff --git a/home-config/bashrc b/home-config/bashrc
new file mode 100644
index 0000000..c8e6503
--- /dev/null
+++ b/home-config/bashrc
@@ -0,0 +1,45 @@
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# Activate vim mode >:)
23set -o vi
24set show-mode-in-prompt on
25
26# Adjust the prompt depending on whether we're in 'guix environment'.
27if [ -n "$GUIX_ENVIRONMENT" ]
28then
29 PS1='\u@\h \w [env]\$ '
30else
31 PS1='\u@\h \w\$ '
32fi
33alias ls='ls -p --color=auto'
34alias ll='ls -l'
35alias grep='grep --color=auto'
36
37# Ryan's custom stuff
38alias quit='exit'
39export EDITOR=nvim
40alias cat='bat --paging=never'
41
42# GPG SETUP FOR SSH
43export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
44gpgconf --launch gpg-agent
45export GPG_TTY=$(tty)