Skip to content

Commit 5fb7e3e

Browse files
committed
Update
1 parent 2dc1954 commit 5fb7e3e

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
dst="$HOME/Library/Application Support/Sublime Merge/Local/Session.sublime_session"
4+
src="${dst}_clean"
5+
6+
sleep 2
7+
[ -f "$src" ] && cp "$src" "$dst"

.local/bin/_/subl_session_reset.sh renamed to .local/bin/_/subl_text_session_reset.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22

3-
# Restore Sublime Text session (windows) to a clean state.
4-
53
dst="$HOME/Library/Application Support/Sublime Text/Local/Session.sublime_session"
64
src="${dst}_clean"
75

Library/Application Support/Sublime Text/Packages/User/session_reset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77

88
class EventListener(sublime_plugin.EventListener):
99
def on_exit(self):
10-
subprocess.Popen([str(Path.home()) + '/.local/bin/_/subl_session_reset.sh'])
10+
subprocess.Popen([str(Path.home()) + '/.local/bin/_/subl_text_session_reset.sh'])

0 commit comments

Comments
 (0)