Update agent sock location
This commit is contained in:
@@ -10,7 +10,6 @@ DIR="\[\033[1;94m\]\w\[\033[m\]"
|
|||||||
export PS1="${HOST} ${DIR}${GIT} ${ICON} "
|
export PS1="${HOST} ${DIR}${GIT} ${ICON} "
|
||||||
|
|
||||||
# ============================== Aliases
|
# ============================== Aliases
|
||||||
alias emacsnw="TERM=xterm-direct emacs -nw"
|
|
||||||
alias c='clear'
|
alias c='clear'
|
||||||
|
|
||||||
alias l='ls -lh' #size,show type,human readable
|
alias l='ls -lh' #size,show type,human readable
|
||||||
@@ -23,9 +22,9 @@ alias mv='mv -i' # ask before removal
|
|||||||
|
|
||||||
# ============================== SSH-Agent
|
# ============================== SSH-Agent
|
||||||
agent() {
|
agent() {
|
||||||
if ! [ -S /tmp/mthomas-agent.sock ]; then
|
if ! [ -S $HOME/.ssh/mthomas-agent.sock ]; then
|
||||||
echo "Starting ssh-agent"
|
echo "Starting ssh-agent"
|
||||||
ssh-agent -a /tmp/mthomas-agent.sock
|
ssh-agent -a $HOME/.ssh/mthomas-agent.sock
|
||||||
ssh-add
|
ssh-add
|
||||||
else
|
else
|
||||||
echo "Agent already running"
|
echo "Agent already running"
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
#
|
#
|
||||||
# If this option is set to mouse or keyboard, the monitor option
|
# If this option is set to mouse or keyboard, the monitor option
|
||||||
# will be ignored.
|
# will be ignored.
|
||||||
follow = no
|
follow = keyboard
|
||||||
|
|
||||||
# The geometry of the window:
|
# The geometry of the window:
|
||||||
# [{width}]x{height}[+/-{x}+/-{y}]
|
# [{width}]x{height}[+/-{x}+/-{y}]
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ xmodmap -e "keycode 66 = grave asciitilde"
|
|||||||
export PATH=$PATH:$HOME/scripts:$HOME/.cargo/bin:$HOME/.cabal/bin:$HOME/.ghcup/bin:$HOME/.local/bin
|
export PATH=$PATH:$HOME/scripts:$HOME/.cargo/bin:$HOME/.cabal/bin:$HOME/.ghcup/bin:$HOME/.local/bin
|
||||||
|
|
||||||
# ssh
|
# ssh
|
||||||
export SSH_AUTH_SOCK=/tmp/mthomas-agent.sock
|
export SSH_AUTH_SOCK=$HOME/.ssh/mthomas-agent.sock
|
||||||
|
|
||||||
# editor
|
# editor
|
||||||
export EDITOR="vim"
|
export EDITOR="vim"
|
||||||
|
|||||||
@@ -87,9 +87,9 @@ export HISTFILE="$HOME/.zsh_history"
|
|||||||
export SAVEHIST=5000
|
export SAVEHIST=5000
|
||||||
|
|
||||||
# ============================== ssh-agent
|
# ============================== ssh-agent
|
||||||
if ! [ -S /tmp/mthomas-agent.sock ]; then
|
if ! [ -S $HOME/.ssh/mthomas-agent.sock ]; then
|
||||||
echo "Starting ssh-agent"
|
echo "Starting ssh-agent"
|
||||||
ssh-agent -a /tmp/mthomas-agent.sock
|
ssh-agent -a $HOME/.ssh/mthomas-agent.sock
|
||||||
ssh-add
|
ssh-add
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user