Merge remote-tracking branch 'origin/nixos' into nixos
commit
9ba2c04abc
|
@ -48,7 +48,6 @@ with lib; {
|
|||
pavucontrol
|
||||
stable.libreoffice # HACK to fix build error
|
||||
stable.signal-desktop
|
||||
synology-drive-client
|
||||
texlive.combined.scheme-full
|
||||
thunderbird
|
||||
vlc
|
||||
|
|
|
@ -57,4 +57,8 @@ with lib;
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
synology-drive-client
|
||||
];
|
||||
}
|
||||
|
|
|
@ -10,10 +10,14 @@ let
|
|||
text = ''
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [[ $# -eq 1 ]]; then
|
||||
selected=$1
|
||||
options=$(fd -HIg '.git' ~/ --min-depth 1 --max-depth 5 --type d --prune --exec dirname {} | fzf --filter "''$*")
|
||||
|
||||
if [[ -z $options ]]; then
|
||||
exit 1
|
||||
elif [[ $(wc -l <<< "$options") -eq 1 ]]; then
|
||||
selected="$options"
|
||||
else
|
||||
selected=$(fd -gH '.git' ~/ --min-depth 1 --max-depth 5 --type d --prune --exec dirname {} | fzf)
|
||||
selected=$(echo "$options" | fzf --query="$*")
|
||||
fi
|
||||
|
||||
if [[ -z $selected ]]; then
|
||||
|
|
Loading…
Reference in New Issue