Skip to content

Commit

Permalink
Slight update to why we use pushd/popd to open zellij
Browse files Browse the repository at this point in the history
  • Loading branch information
josephschmitt committed Feb 12, 2025
1 parent 789c594 commit 3326108
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/zide
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ if [ -n "$ZELLIJ" ]; then
zellij action new-tab --cwd $cwd --layout "$layout_path"
zide-rename
else
# No way to specify the working dir to the zellij CLI, so we change the working dir before opening
# zellij, and change it back once we exit
# There's a bug when using zellij options --default-cwd where the CWD isn't working for floating
# panes defined in the layout, so instead we'll use pushd to change the working dir before
# starting zellij, and change it back when we exit
pushd $cwd > /dev/null
zellij --layout "${layout_path}"
popd > /dev/null
Expand Down

0 comments on commit 3326108

Please sign in to comment.