Compare commits
No commits in common. "20f17a22472013ab91a652ad19f027674f34aa97" and "2a2b2e13735fa68b3be5174604a9d9415018cb9a" have entirely different histories.
20f17a2247
...
2a2b2e1373
1 changed files with 2 additions and 1 deletions
|
@ -27,6 +27,7 @@ in
|
||||||
tmux = "${pkgs.tmux}/bin/tmux";
|
tmux = "${pkgs.tmux}/bin/tmux";
|
||||||
pgrep = "${pkgs.procps}/bin/pgrep";
|
pgrep = "${pkgs.procps}/bin/pgrep";
|
||||||
basename = "${pkgs.coreutils}/bin/basename";
|
basename = "${pkgs.coreutils}/bin/basename";
|
||||||
|
readlink = "${pkgs.coreutils}/bin/readlink";
|
||||||
tr = "${pkgs.coreutils}/bin/tr";
|
tr = "${pkgs.coreutils}/bin/tr";
|
||||||
fzf = "${pkgs.fzf}/bin/fzf";
|
fzf = "${pkgs.fzf}/bin/fzf";
|
||||||
find = "${pkgs.findutils}/bin/find";
|
find = "${pkgs.findutils}/bin/find";
|
||||||
|
@ -35,7 +36,7 @@ in
|
||||||
if [[ $# -eq 1 ]]; then
|
if [[ $# -eq 1 ]]; then
|
||||||
selected=$1
|
selected=$1
|
||||||
else
|
else
|
||||||
selected=$(${find} -L ~/projects ~/ ~/.config ~/src -mindepth 1 -maxdepth 1 -type d | ${fzf})
|
selected=$(${find} "$(${readlink} -f ~/projects)" ~/ ~/.config ~/.suckless/ -mindepth 1 -maxdepth 1 -type d | ${fzf})
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $selected ]]; then
|
if [[ -z $selected ]]; then
|
||||||
|
|
Loading…
Reference in a new issue