Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .aliases
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,11 @@ alias glv="vim -c ':DiffviewFileHistory'"

# Start the SSH agent, prompting for your passphrase.
alias s="start_agent"

# If you connect to remote host with key forwarding, start a tmux session, then
# disconnect and reconnect, the SSH_AUTH_SOCK file is recreated in a different
# path but the still-running tmux session is still using the old path. So it
# behaves like keys are not forwarded. Run this fix to update the path so that
# the key is forwarded again.
alias st='[ -n "$TMUX" ] && eval $(tmux show-environment -s SSH_AUTH_SOCK)'

2 changes: 1 addition & 1 deletion .config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require("config.options")
-- Colorscheme.
-- Add your favorite colorscheme to lua/plugins/colorscheme.lua (which will be
-- loaded with `config.lazy` above), and then use it here.
vim.cmd("colorscheme zenburn")
vim.cmd("colorscheme zenfade")

-- Uncomment these lines if you use a terminal that does not support true color:
-- vim.cmd("colorscheme onedark")
Expand Down
1 change: 1 addition & 0 deletions .config/nvim/lua/plugins/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ return {
"bash",
"css",
"dockerfile",
"hcl",
"html",
"json",
"lua",
Expand Down
6 changes: 6 additions & 0 deletions docs/bash.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ for the commands set for each alias.
* - ``s``
- Runs the start_agent function (see :file:`.functions` below)

* - ``st``
- If you connect to a host with SSH key fowarding, start a tmux session,
and then disconnect and reconnect to the remote tmux session, the
``SSH_AUTH_SOCKET`` path used by tmux is stale, preventing key fowarding.
This refreshes the path so that key forwarding works.

* - ``git-clean-branches-master``
- Deletes any git branches that have been merged into the master branch

Expand Down
12 changes: 12 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
Changelog
=========

2025-10-27
----------

**vim**

- Use `zenfade <https://github.com/daler/zenfade/>`__ as the default colorscheme

**bash**

- New alias, ``st``, for refreshing the SSH_AUTH_SOCKET when reconnecting to
a tmux session where you're forwarding SSH keys to the remote host.

2025-08-14
----------

Expand Down