Skip to content

Commit 00c30b0

Browse files
committed
fix(functions): update save_session path
1 parent c628919 commit 00c30b0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dotfiles/.functions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,13 +544,13 @@ urldecode_json() {
544544
#----------------
545545

546546
save_session() {
547-
echo "$PWD" "$@" >>"$HOME/Desktop/sessions.txt"
547+
echo "$PWD" "$@" >>"$HOME/Desktop/txt/sessions.txt"
548548
}
549549

550550
restore_session() {
551551
local dir="$PWD"
552552
local command
553-
command=$(command grep "^$dir " "$HOME/Desktop/sessions.txt" | sed "s|^$dir ||")
553+
command=$(command grep "^$dir " "$HOME/Desktop/txt/sessions.txt" | sed "s|^$dir ||")
554554

555555
if [[ -z "$command" ]]; then
556556
echo "no session found for $dir"

0 commit comments

Comments
 (0)