chore(lib): remove use of eval

This commit is contained in:
2024-02-18 01:36:28 +00:00
parent 895dace853
commit 6cd89beb5e
2 changed files with 9 additions and 1 deletions

View File

@@ -363,7 +363,9 @@ finalize_and_go_to_session() {
# /Users/jimeh/Projects
#
__expand_path() {
echo $(eval echo "$@")
local path="$1"
path="${path/#\~/$HOME}"
echo "$path"
}
__get_first_window_index() {