Merge remote-tracking branch 'origin/nixos' into nixos
This commit is contained in:
commit
e8c252484d
3 changed files with 12 additions and 5 deletions
|
@ -48,7 +48,6 @@ with lib; {
|
||||||
pavucontrol
|
pavucontrol
|
||||||
stable.libreoffice # HACK to fix build error
|
stable.libreoffice # HACK to fix build error
|
||||||
stable.signal-desktop
|
stable.signal-desktop
|
||||||
synology-drive-client
|
|
||||||
texlive.combined.scheme-full
|
texlive.combined.scheme-full
|
||||||
thunderbird
|
thunderbird
|
||||||
vlc
|
vlc
|
||||||
|
|
|
@ -57,4 +57,8 @@ with lib;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
synology-drive-client
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,15 +9,19 @@ let
|
||||||
runtimeInputs = with pkgs; [ tmux findutils coreutils procps fd ];
|
runtimeInputs = with pkgs; [ tmux findutils coreutils procps fd ];
|
||||||
text = ''
|
text = ''
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
options=$(fd -HIg '.git' ~/ --min-depth 1 --max-depth 5 --type d --prune --exec dirname {} | fzf --filter "''$*")
|
||||||
|
|
||||||
if [[ $# -eq 1 ]]; then
|
if [[ -z $options ]]; then
|
||||||
selected=$1
|
exit 1
|
||||||
|
elif [[ $(wc -l <<< "$options") -eq 1 ]]; then
|
||||||
|
selected="$options"
|
||||||
else
|
else
|
||||||
selected=$(fd -gH '.git' ~/ --min-depth 1 --max-depth 5 --type d --prune --exec dirname {} | fzf)
|
selected=$(echo "$options" | fzf --query="$*")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $selected ]]; then
|
if [[ -z $selected ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
selected_name=$(basename "$selected" | tr . _)
|
selected_name=$(basename "$selected" | tr . _)
|
||||||
|
|
Loading…
Reference in a new issue