1
0

Start ssh-agent if needed

This commit is contained in:
2026-03-07 15:53:23 +01:00
parent 3ffab5c59b
commit ebfd2d39ac
2 changed files with 21 additions and 2 deletions

View File

@@ -19,9 +19,20 @@ then
PATH="$HOMEBREW_PREFIX/opt/php@8.3/sbin:$PATH" PATH="$HOMEBREW_PREFIX/opt/php@8.3/sbin:$PATH"
else else
PATH="$HOME/Projects/tools/flutter/bin:$PATH" PATH="$HOME/Projects/tools/flutter/bin:$PATH"
export SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
fi fi
# Start an SSH agent.
if [ -z "$SSH_AUTH_SOCK" ]
then
if [ ! -S ~/.ssh/ssh_auth_sock ]
then
eval $(ssh-agent)
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
fi
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
fi
# Set up Android development environment.
if [ -d "$HOME/Projects/tools/android" ] if [ -d "$HOME/Projects/tools/android" ]
then then
export ANDROID_HOME="$HOME/Projects/tools/android" export ANDROID_HOME="$HOME/Projects/tools/android"

View File

@@ -1,9 +1,18 @@
# Remap the prefix.
unbind-key C-b
set-option -g prefix C-Space
bind-key C-Space send-prefix
set -s escape-time 0 set -s escape-time 0
set -g mouse on set -g mouse on
set -g status-keys vi set -g status-keys vi
set -g mode-keys vi set -g mode-keys vi
# Status bar.
set -g status-style bg=default
set -g status-right ''
# Reset bindings without the repeat time # Reset bindings without the repeat time
bind-key Left select-pane -L bind-key Left select-pane -L
bind-key Right select-pane -R bind-key Right select-pane -R
@@ -13,6 +22,5 @@ bind-key Down select-pane -D
# List of plugins # List of plugins
set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin "arcticicestudio/nord-tmux"
run '~/.tmux/plugins/tpm/tpm' run '~/.tmux/plugins/tpm/tpm'