Merge 7e0e42a52a
into cff343cf9e
commit
572aed8a0c
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue