mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
Prevent $session and $window from leaking out of layout files
This commit is contained in:
@@ -20,6 +20,7 @@ load_window() {
|
||||
if [ -f "$file" ]; then
|
||||
window="$1"
|
||||
source "$file"
|
||||
window=""
|
||||
|
||||
# Reset `$window_root`.
|
||||
if [[ "$window_root" != "$session_root" ]]; then
|
||||
@@ -36,6 +37,7 @@ load_session() {
|
||||
if [ -f "$file" ]; then
|
||||
session="$1"
|
||||
source "$file"
|
||||
session=
|
||||
|
||||
# Reset `$session_root`.
|
||||
if [[ "$session_root" != "$HOME" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user