pull/297/merge
DelphyM 2023-03-28 07:43:05 +02:00 committed by GitHub
commit 572aed8a0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

View File

@ -1,6 +1,16 @@
#!/usr/bin/env bash
# Absolute path to this script, e.g. /home/user/.tmux/plugins/tmux-resurrect/scripts/save.sh
SCRIPT=$(readlink -f "$0")
# Absolute path this script is in, thus /home/user/.tmux/plugins/tmux-resurrect/scripts
SCRIPT_PATH=$(dirname "$SCRIPT")
echo "SCRIPT_PATH -> $SCRIPT_PATH"
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "CURRENT_DIR -> $CURRENT_DIR"
# $CURRENT_DIR seems is expected to be an absolut path this script is located in
CURRENT_DIR="$SCRIPT_PATH"
source "$CURRENT_DIR/variables.sh"
source "$CURRENT_DIR/helpers.sh"

View File

@ -1,6 +1,16 @@
#!/usr/bin/env bash
# Absolute path to this script, e.g. /home/user/.tmux/plugins/tmux-resurrect/scripts/save.sh
SCRIPT=$(readlink -f "$0")
# Absolute path this script is in, thus /home/user/.tmux/plugins/tmux-resurrect/scripts
SCRIPT_PATH=$(dirname "$SCRIPT")
echo "SCRIPT_PATH -> $SCRIPT_PATH"
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "CURRENT_DIR -> $CURRENT_DIR"
# $CURRENT_DIR seems is expected to be an absolut path this script is located in
CURRENT_DIR="$SCRIPT_PATH"
source "$CURRENT_DIR/variables.sh"
source "$CURRENT_DIR/helpers.sh"