diff options
Diffstat (limited to 'bashrc')
| -rw-r--r-- | bashrc | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -0,0 +1,18 @@ +# +# ~/.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +# alias ls='ls --color=auto' +# PS1='[\u@\h \W]\$ ' + +source ~/.config/aliases + +if ! pgrep -u "$USER" ssh-agent > /dev/null; then + ssh-agent -t 1h > "$XDG_RUNTIME_DIR/ssh-agent.env" +fi +if [[ ! "$SSH_AUTH_SOCK" ]]; then + source "$XDG_RUNTIME_DIR/ssh-agent.env" >/dev/null +fi |
