aboutsummaryrefslogtreecommitdiffstats
path: root/modules/home/zsh.nix
diff options
context:
space:
mode:
authorSimen A. W. Olsen <hello@simenandre.no>2026-04-06 09:32:23 +0200
committerSimen A. W. Olsen <hello@simenandre.no>2026-04-06 09:32:23 +0200
commitc6ee1e36856f2ce55dd52b8d7b7ca7b8a59d1fdc (patch)
tree9b1de24e398728dfe97388f322ef9fe735d889e9 /modules/home/zsh.nix
parentea354f75e9b2586e194724e28a283ec774d233df (diff)
downloaddotfiles-c6ee1e36856f2ce55dd52b8d7b7ca7b8a59d1fdc.tar.gz
dotfiles-c6ee1e36856f2ce55dd52b8d7b7ca7b8a59d1fdc.zip
feat(terminal): configure ghostty and ssh window titles
Diffstat (limited to 'modules/home/zsh.nix')
-rw-r--r--modules/home/zsh.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/home/zsh.nix b/modules/home/zsh.nix
index c2805a3..142d0b4 100644
--- a/modules/home/zsh.nix
+++ b/modules/home/zsh.nix
@@ -172,6 +172,12 @@ in
--jq 'map({url, createdAt, title, labels: [.labels[].name], assignees: [.assignees[].login], body, number: "#\(.number)", comments: .comments | map({ body: .body, createdAt: .createdAt })})'
}
+ function ssh() {
+ printf '\033]0;ssh %s\033\\' "$*"
+ command ssh "$@"
+ printf '\033]0;%s@%s:%s\033\\' "$USER" "$HOST" "''${PWD/#$HOME/~}"
+ }
+
function g() {
export GOOGLE_CLOUD_PROJECT="sokkel-sandbox"
export GOOGLE_CLOUD_LOCATION="europe-north1"