Add LS_COLORS and move ssh-agent.sock to /tmp

Added my LS_COLORS config to bashrc

Decided to move ssh-agent.sock to a fixed location in /tmp because
removal on shutdown in ~ needs a bunch of configuration for something
already existing in /tmp.
This commit is contained in:
c47 2024-02-17 09:24:45 +01:00
parent 24dfbcb366
commit 76b83497a2

View file

@ -117,6 +117,8 @@ export VISUAL=${EDITOR}
export VISUDO=${EDITOR}
umask 0077
export LS_COLORS='di=1;32:fi=36:ln=33;44:pi=0:so=0:bd=0:cd=0:or=31:mi=0:ex=33:*.rpm=90'
if [[ ! $(type -P pidof) ]]; then
function pidof() {
ps -e | grep ${1}
@ -133,7 +135,11 @@ fi
export PATH=${HOME}/.local/bin:${HOME}/.nix-profile/bin:${PATH}
export SSH_AUTH_SOCK=~/.ssh/ssh-agent.sock
if [[ ! -d /tmp/ssh-1000 ]]; then
mkdir -m 0700 /tmp/ssh-1000
fi
export SSH_AUTH_SOCK=/tmp/ssh-1000/ssh-agent.sock
if [[ ! $(pidof ssh-agent) ]]; then
eval $(ssh-agent -a ${SSH_AUTH_SOCK})