diff --git a/.profile b/.profile index 9ace7e6..2e22caa 100755 --- a/.profile +++ b/.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" diff --git a/.tmux.conf b/.tmux.conf index b50be17..7602758 100644 --- a/.tmux.conf +++ b/.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'