This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

tools.zsh: only cd to workspace dir when shell starts in HOME

+7 -3
+7 -3
tools/zsh/flake-module.nix
··· 329 329 tmux set -g mouse on 2>/dev/null || true 330 330 fi 331 331 332 - # Workspace manager integration: cd to workspace directory on new terminal 333 - _ws_dir=$(${self.packages.${pkgs.system}.workspace-manager}/bin/workspace-manager dir 2>/dev/null) 334 - [[ -n "$_ws_dir" && -d "$_ws_dir" ]] && cd "$_ws_dir" 332 + # Workspace manager integration: cd to workspace directory on new terminal. 333 + # Only for shells that start in $HOME: a pane spawned with an explicit 334 + # directory (herdr, tmux split in cwd) must keep it. 335 + if [[ "$PWD" == "$HOME" ]]; then 336 + _ws_dir=$(${self.packages.${pkgs.system}.workspace-manager}/bin/workspace-manager dir 2>/dev/null) 337 + [[ -n "$_ws_dir" && -d "$_ws_dir" ]] && cd "$_ws_dir" 338 + fi 335 339 336 340 # Disable some features to support TRAMP. 337 341 if [ "$TERM" = dumb ]; then