Minor fixes
This commit is contained in:
@@ -1,17 +1,29 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
declare -A aliases=(
|
||||
[prism]="nvidia-offload prismlauncher"
|
||||
[editor]="kitty -e fish -c editor"
|
||||
[yazi]="kitty -e fish -c yazi"
|
||||
[btop]="kitty -e fish -c btop"
|
||||
)
|
||||
|
||||
choice=$(
|
||||
(
|
||||
printf "%s\n" prism
|
||||
{
|
||||
printf '%s\n' "${!aliases[@]}"
|
||||
compgen -c
|
||||
) |
|
||||
grep -v -E '^(if|fi|case|esac|for|done|while|until|select|function|return|continue|break|time|exec|source|alias|builtin|read|export|unset|local|set|declare|typeset|:|\.|\[|coproc|l|ll|ls|then|else|elif|do|in|\{|\}|!|\[\[|\]\]|_.*|compgen)$' |
|
||||
sort |
|
||||
} |
|
||||
grep -v -E '^(\..*|if|fi|case|esac|for|done|while|until|select|function|return|continue|break|time|exec|source|alias|builtin|read|export|unset|local|set|declare|typeset|:|\.|\[|coproc|l|ll|ls|then|else|elif|do|in|\{|\}|!|\[\[|\]\]|_.*|compgen)$' |
|
||||
sort -u |
|
||||
dmenu -i -p "Enter command " \
|
||||
-nf '#4abaaf' -nb '#1f2335' -sb '#7aa2f7' -sf '#102030' -fn 'AgaveNerdFont-16'
|
||||
)
|
||||
|
||||
[ -z "$choice" ] && exit 0
|
||||
|
||||
fish -c "$choice" >/dev/null 2>&1 &
|
||||
if [[ -v "aliases[$choice]" ]]; then
|
||||
eval "${aliases[$choice]}" >/dev/null 2>&1 &
|
||||
else
|
||||
"$choice" >/dev/null 2>&1 &
|
||||
fi
|
||||
|
||||
disown
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
vimAlias = true;
|
||||
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
nvim-notify
|
||||
gitsigns-nvim
|
||||
mini-pairs
|
||||
mini-surround
|
||||
rainbow-delimiters-nvim
|
||||
neo-tree-nvim
|
||||
lualine-nvim
|
||||
|
||||
@@ -1,12 +1,16 @@
|
||||
-- Plugins
|
||||
require("picvim").setup({})
|
||||
|
||||
require("notify").setup({})
|
||||
|
||||
require("gitsigns").setup({})
|
||||
|
||||
require("mini.pairs").setup({})
|
||||
|
||||
require("mini.surround").setup({
|
||||
mappings = {
|
||||
add = "s",
|
||||
},
|
||||
})
|
||||
|
||||
require("rainbow-delimiters.setup").setup({})
|
||||
|
||||
require("neo-tree").setup({
|
||||
|
||||
@@ -27,6 +27,9 @@
|
||||
'';
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 22 80 443 ];
|
||||
networking.firewall.allowedUDPPorts = [];
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 22 80 443 ];
|
||||
allowedUDPPorts = [];
|
||||
allowPing = true;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user