Merge remote-tracking branch 'origin/nixos' into nixos

This commit is contained in:
Moritz Böhme 2023-04-26 14:30:27 +02:00
commit 9ba2c04abc
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
3 changed files with 12 additions and 5 deletions

View file

@ -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

View file

@ -57,4 +57,8 @@ with lib;
}; };
}; };
}; };
environment.systemPackages = with pkgs; [
synology-drive-client
];
} }

View file

@ -10,10 +10,14 @@ let
text = '' text = ''
#!/usr/bin/env bash #!/usr/bin/env bash
if [[ $# -eq 1 ]]; then options=$(fd -HIg '.git' ~/ --min-depth 1 --max-depth 5 --type d --prune --exec dirname {} | fzf --filter "''$*")
selected=$1
if [[ -z $options ]]; then
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