mirror of
https://github.com/FAUSheppy/config
synced 2025-12-07 23:41:34 +01:00
ssh agent now only started if it is not running already
This commit is contained in:
@@ -58,6 +58,8 @@ if [[ $HOST =~ atlantis* ]]; then
|
|||||||
hc keybind $Mod-l spawn i3lock -i ~/.config/i3lock/bg.png -t
|
hc keybind $Mod-l spawn i3lock -i ~/.config/i3lock/bg.png -t
|
||||||
else
|
else
|
||||||
hc keybind $Mod-l spawn xlock
|
hc keybind $Mod-l spawn xlock
|
||||||
|
hc keybind $Mod-Shift-x spawn xlock -mode blank -geometry 1x1
|
||||||
|
hc keybind $Mod-x spawn xlock -mode blank -geometry 1x1
|
||||||
fi
|
fi
|
||||||
hc keybind $Mod-p spawn pavucontrol
|
hc keybind $Mod-p spawn pavucontrol
|
||||||
hc keybind $Mod-Shift-l spawn libreoffice
|
hc keybind $Mod-Shift-l spawn libreoffice
|
||||||
|
|||||||
11
zshrc
11
zshrc
@@ -68,6 +68,13 @@ alias ..='cd ..'
|
|||||||
## Anti-LD-Preload Chromium Wrapper ##
|
## Anti-LD-Preload Chromium Wrapper ##
|
||||||
alias chromium="export TMP_PRELD=$LD_PRELOAD && /bin/bash -c 'unset LD_PRELOAD && chromium' && export LD_PRELOAD=$TMP_PRELD"
|
alias chromium="export TMP_PRELD=$LD_PRELOAD && /bin/bash -c 'unset LD_PRELOAD && chromium' && export LD_PRELOAD=$TMP_PRELD"
|
||||||
|
|
||||||
|
## GIT ##
|
||||||
|
alias gstat="git status"
|
||||||
|
alias gpull="git pull"
|
||||||
|
alias gpush="git push"
|
||||||
|
alias gcom="git commit -a"
|
||||||
|
alias gadd="git add"
|
||||||
|
|
||||||
## LOCKS ##
|
## LOCKS ##
|
||||||
if [[ $HOST =~ atlantis* ]]; then
|
if [[ $HOST =~ atlantis* ]]; then
|
||||||
alias i3lock="i3lock --image=/home/ik15ydit/.config/i3lock/bg.png"
|
alias i3lock="i3lock --image=/home/ik15ydit/.config/i3lock/bg.png"
|
||||||
@@ -188,7 +195,9 @@ alias l="ls -lh --color=auto"
|
|||||||
## SSH-KEYS ##
|
## SSH-KEYS ##
|
||||||
gitssh=~/.ssh/gitrsa
|
gitssh=~/.ssh/gitrsa
|
||||||
function key(){
|
function key(){
|
||||||
eval `ssh-agent`
|
if [[ -z $SSH_AUTH_SOCK ]]; then
|
||||||
|
eval `ssh-agent`
|
||||||
|
fi
|
||||||
ssh-add $gitssh
|
ssh-add $gitssh
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user