mirror of
https://github.com/FAUSheppy/config
synced 2025-12-06 15:11:35 +01:00
Fixed SSH-Agent startup and keyaddding
This commit is contained in:
@@ -15,11 +15,16 @@ hc keyunbind --all
|
||||
pkill dunst
|
||||
pkill xautolock
|
||||
pkill -s 15 hl_pracct #send SIGTERM for correct termination during write
|
||||
pkill ssh-agent #correctly terminate the current agent
|
||||
|
||||
#variables
|
||||
Mod=Mod4 # Use the super key as the main modifier
|
||||
|
||||
######### 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 ###
|
||||
if [[ "$HOST" == "atlantispc" ]]; then
|
||||
hc detect_monitors
|
||||
|
||||
12
zshrc
12
zshrc
@@ -48,6 +48,11 @@ bindkey '^R' history-incremental-pattern-search-backward
|
||||
zmodload zsh/complist #bessere listen
|
||||
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 077
|
||||
|
||||
@@ -195,12 +200,7 @@ alias l="ls -lh --color=auto"
|
||||
|
||||
## SSH-KEYS ##
|
||||
gitssh=~/.ssh/gitrsa
|
||||
function key(){
|
||||
if [[ -z $SSH_AUTH_SOCK ]]; then
|
||||
eval `ssh-agent`
|
||||
fi
|
||||
ssh-add $gitssh
|
||||
}
|
||||
ssh-add $gitssh
|
||||
|
||||
## ROOT ##
|
||||
alias udev_reload="udevadm control --reload-rules && udevadm trigger" #reload all udevrules on the fly
|
||||
|
||||
Reference in New Issue
Block a user