Compare commits

...

3 commits

Author SHA1 Message Date
c47 24dfbcb366 Start ssh-agent via bash startup
Export SSH_AUTH_SOCK and start ssh-agent using this socket.
2024-02-03 09:47:47 +01:00
c47 a0d247f2bf Add check for `pidof'
Added a check for pidof's existence and just create a 'pidof' named
function to mimic `pidof' if doesn't exist.
2024-02-03 09:45:59 +01:00
c47 da20795969 Add `-b' to 'cal' alias
Added `-b' to 'cal' alias to have traditional cal output and to get back
the ability to print a whole year with -y.
2024-02-03 09:43:04 +01:00
2 changed files with 13 additions and 1 deletions

View file

@ -12,4 +12,4 @@ alias RR='rem -b1 -mclc+6 -iprivate=1'
alias r='rem -b1 -mclc+4'
alias rr='rem -b1 -mclc+4 -iprivate=1'
alias rrm='rem -b1 -imoon=1'
alias ncal='ncal -M'
alias cal='ncal -bM'

View file

@ -117,6 +117,12 @@ export VISUAL=${EDITOR}
export VISUDO=${EDITOR}
umask 0077
if [[ ! $(type -P pidof) ]]; then
function pidof() {
ps -e | grep ${1}
}
fi
if [[ -f ${HOME}/.bash_aliases.local ]]; then
source ${HOME}/.bash_aliases.local
fi
@ -126,3 +132,9 @@ if [[ -f ${HOME}/.bashrc.local ]]; then
fi
export PATH=${HOME}/.local/bin:${HOME}/.nix-profile/bin:${PATH}
export SSH_AUTH_SOCK=~/.ssh/ssh-agent.sock
if [[ ! $(pidof ssh-agent) ]]; then
eval $(ssh-agent -a ${SSH_AUTH_SOCK})
fi