i use arch btw
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add custom fish_remove_list command

+16
+16
fish/.config/fish/functions/fish_remove_list.fish
··· 1 + function fish_remove_list --description 'Remove an item from a list' 2 + set list_name $argv[1] 3 + set list $$list_name 4 + 5 + set target (printf %s\n $list | fzf -1 -q "$argv[2]") 6 + test -n $target || return 1 7 + 8 + if not set -l index (contains -i "$target" $fish_user_paths) 9 + echo "'$target' was not found in $list_name" 10 + return 1 11 + end 12 + 13 + if confirm "Remove '$target' from $list_name?" 14 + set -e $list_name[1][$index] && echo -e "\033[2KRemoved '$target' from \$fish_user_paths" 15 + end 16 + end