mirror of
https://github.com/FAUSheppy/config
synced 2025-12-06 23:21:34 +01:00
Fixed SSH-Agent startup and keyaddding
This commit is contained in:
@@ -14,12 +14,17 @@ xsetroot -solid '#5A8E3A'
|
|||||||
hc keyunbind --all
|
hc keyunbind --all
|
||||||
pkill dunst
|
pkill dunst
|
||||||
pkill xautolock
|
pkill xautolock
|
||||||
pkill -s 15 hl_pracct #send SIGTERM for correct termination during write
|
pkill -s 15 hl_pracct #send SIGTERM for correct termination during write
|
||||||
|
pkill ssh-agent #correctly terminate the current agent
|
||||||
|
|
||||||
#variables
|
#variables
|
||||||
Mod=Mod4 # Use the super key as the main modifier
|
Mod=Mod4 # Use the super key as the main modifier
|
||||||
|
|
||||||
######### MACHINE SPECIFIC SETUP #########
|
######### MACHINE SPECIFIC SETUP #########
|
||||||
|
### All Machines ####
|
||||||
|
if [ -f $HOME/.config/agent_socket ]; then
|
||||||
|
eval `ssh-agent -a /tmp/ssh-$(cat $HOME/.config/agent_socket)`
|
||||||
|
fi
|
||||||
### Atlantis PC-specific setup ###
|
### Atlantis PC-specific setup ###
|
||||||
if [[ "$HOST" == "atlantispc" ]]; then
|
if [[ "$HOST" == "atlantispc" ]]; then
|
||||||
hc detect_monitors
|
hc detect_monitors
|
||||||
|
|||||||
12
zshrc
12
zshrc
@@ -48,6 +48,11 @@ bindkey '^R' history-incremental-pattern-search-backward
|
|||||||
zmodload zsh/complist #bessere listen
|
zmodload zsh/complist #bessere listen
|
||||||
autoload -Uz compinit; compinit #completioni
|
autoload -Uz compinit; compinit #completioni
|
||||||
|
|
||||||
|
### SSH-AGENT ###
|
||||||
|
if [ -f $HOME/.config/agent_socket ]; then
|
||||||
|
export SSH_AUTH_SOCK=/tmp/ssh-$(cat $HOME/.config/agent_socket)
|
||||||
|
fi
|
||||||
|
|
||||||
### UMASK ###
|
### UMASK ###
|
||||||
umask 077
|
umask 077
|
||||||
|
|
||||||
@@ -195,12 +200,7 @@ alias l="ls -lh --color=auto"
|
|||||||
|
|
||||||
## SSH-KEYS ##
|
## SSH-KEYS ##
|
||||||
gitssh=~/.ssh/gitrsa
|
gitssh=~/.ssh/gitrsa
|
||||||
function key(){
|
ssh-add $gitssh
|
||||||
if [[ -z $SSH_AUTH_SOCK ]]; then
|
|
||||||
eval `ssh-agent`
|
|
||||||
fi
|
|
||||||
ssh-add $gitssh
|
|
||||||
}
|
|
||||||
|
|
||||||
## ROOT ##
|
## ROOT ##
|
||||||
alias udev_reload="udevadm control --reload-rules && udevadm trigger" #reload all udevrules on the fly
|
alias udev_reload="udevadm control --reload-rules && udevadm trigger" #reload all udevrules on the fly
|
||||||
|
|||||||
Reference in New Issue
Block a user