mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fa28de8b94 | |||
| 0e2cfa2327 | |||
| 04c9309668 | |||
| 455d8660f4 | |||
|
|
00e5c98da0 |
@@ -187,9 +187,6 @@ initialize_session() {
|
||||
local first_window_index=$(__get_first_window_index)
|
||||
tmux move-window -s "$session:$first_window_index" -t "$session:999"
|
||||
|
||||
# Ensure correct pane splitting.
|
||||
__go_to_session
|
||||
|
||||
# Session created, return ok exit status.
|
||||
return 0
|
||||
fi
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
set -e
|
||||
[ -n "$TMUXIFIER_DEBUG" ] && set -x
|
||||
|
||||
list=$(find "$TMUXIFIER_LAYOUT_PATH" -name "*.session.sh")
|
||||
list=$(find -L "$TMUXIFIER_LAYOUT_PATH" -name "*.session.sh")
|
||||
for file in $list; do
|
||||
file=${file/$TMUXIFIER_LAYOUT_PATH\//}
|
||||
echo " ${file/.session.sh/}"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
set -e
|
||||
[ -n "$TMUXIFIER_DEBUG" ] && set -x
|
||||
|
||||
list=$(find "$TMUXIFIER_LAYOUT_PATH" -name "*.window.sh")
|
||||
list=$(find -L "$TMUXIFIER_LAYOUT_PATH" -name "*.window.sh")
|
||||
for file in $list; do
|
||||
file=${file/$TMUXIFIER_LAYOUT_PATH\//}
|
||||
echo " ${file/.window.sh/}"
|
||||
|
||||
@@ -18,9 +18,5 @@ fi
|
||||
# Load runtime functions.
|
||||
source "$TMUXIFIER/runtime.sh"
|
||||
|
||||
if [ ! -z $TMUX ]; then
|
||||
load_session "$1"
|
||||
else
|
||||
echo "tmuxifier: 'load-session' command can only be used from within Tmux."
|
||||
exit 1
|
||||
fi
|
||||
# Load session file.
|
||||
load_session "$1"
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
set -e
|
||||
[ -n "$TMUXIFIER_DEBUG" ] && set -x
|
||||
|
||||
echo "0.4.0"
|
||||
echo "0.5.0"
|
||||
|
||||
Reference in New Issue
Block a user