dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit e49d008f226c09886dad200519f605206536d1c6
parent e12baab2c67b9628ae6f876c85ec8715ec16c671
Author: Alex Balgavy <alexander.balgavy@spaceapplications.com>
Date:   Mon, 15 Jan 2024 13:49:38 +0100

functions: bugfix hardcoded path

Diffstat:
Mshell/functions | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/shell/functions b/shell/functions @@ -103,7 +103,7 @@ if command -v fzf >/dev/null 2>&1; then # script find sf() { local f - IFS=$'\n' f=($(command find "$(readlink ~/.scripts)" -type f -not -ipath "*/.git/*" | fzf +m --prompt="find> " --height=40 --reverse --cycle)) + IFS=$'\n' f=($(command find "$DOTFILES"/scripts -type f -not -ipath "*/.git/*" | fzf +m --prompt="find> " --height=40 --reverse --cycle)) [[ -n "$f" ]] && printf "$f" } @@ -169,7 +169,7 @@ if command -v lf >/dev/null 2>&1; then if [ -f "$tmp" ]; then dir="$(cat "$tmp")" rm "$tmp" - [ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir" + [ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir" || return fi } fi