Start ssh-agent if needed
This commit is contained in:
13
.profile
13
.profile
@@ -19,9 +19,20 @@ then
|
||||
PATH="$HOMEBREW_PREFIX/opt/php@8.3/sbin:$PATH"
|
||||
else
|
||||
PATH="$HOME/Projects/tools/flutter/bin:$PATH"
|
||||
export SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
|
||||
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" ]
|
||||
then
|
||||
export ANDROID_HOME="$HOME/Projects/tools/android"
|
||||
|
||||
10
.tmux.conf
10
.tmux.conf
@@ -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 -g mouse on
|
||||
|
||||
set -g status-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
|
||||
bind-key Left select-pane -L
|
||||
bind-key Right select-pane -R
|
||||
@@ -13,6 +22,5 @@ bind-key Down select-pane -D
|
||||
# List of plugins
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
set -g @plugin "arcticicestudio/nord-tmux"
|
||||
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
||||
|
||||
Reference in New Issue
Block a user