aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/fish/completions/fisher.fish7
-rw-r--r--config/fish/completions/fzf_configure_bindings.fish8
-rw-r--r--config/fish/config.fish18
-rw-r--r--config/fish/fish_plugins2
-rw-r--r--config/fish/fish_variables4
-rw-r--r--config/fish/functions/fish_prompt.fish34
6 files changed, 39 insertions, 34 deletions
diff --git a/config/fish/completions/fisher.fish b/config/fish/completions/fisher.fish
new file mode 100644
index 0000000..6d23ce4
--- /dev/null
+++ b/config/fish/completions/fisher.fish
@@ -0,0 +1,7 @@
+complete --command fisher --exclusive --long help --description "Print help"
+complete --command fisher --exclusive --long version --description "Print version"
+complete --command fisher --exclusive --condition __fish_use_subcommand --arguments install --description "Install plugins"
+complete --command fisher --exclusive --condition __fish_use_subcommand --arguments update --description "Update installed plugins"
+complete --command fisher --exclusive --condition __fish_use_subcommand --arguments remove --description "Remove installed plugins"
+complete --command fisher --exclusive --condition __fish_use_subcommand --arguments list --description "List installed plugins matching regex"
+complete --command fisher --exclusive --condition "__fish_seen_subcommand_from update remove" --arguments "(fisher list)"
diff --git a/config/fish/completions/fzf_configure_bindings.fish b/config/fish/completions/fzf_configure_bindings.fish
new file mode 100644
index 0000000..b38ef92
--- /dev/null
+++ b/config/fish/completions/fzf_configure_bindings.fish
@@ -0,0 +1,8 @@
+complete fzf_configure_bindings --no-files
+complete fzf_configure_bindings --long help --short h --description "Print help" --condition "not __fish_seen_argument --help -h"
+complete fzf_configure_bindings --long directory --description "Change the key binding for Search Directory" --condition "not __fish_seen_argument --directory"
+complete fzf_configure_bindings --long git_log --description "Change the key binding for Search Git Log" --condition "not __fish_seen_argument --git_log"
+complete fzf_configure_bindings --long git_status --description "Change the key binding for Search Git Status" --condition "not __fish_seen_argument --git_status"
+complete fzf_configure_bindings --long history --description "Change the key binding for Search History" --condition "not __fish_seen_argument --history"
+complete fzf_configure_bindings --long processes --description "Change the key binding for Search Processes" --condition "not __fish_seen_argument --processes"
+complete fzf_configure_bindings --long variables --description "Change the key binding for Search Variables" --condition "not __fish_seen_argument --variables"
diff --git a/config/fish/config.fish b/config/fish/config.fish
index e754556..8223bb0 100644
--- a/config/fish/config.fish
+++ b/config/fish/config.fish
@@ -40,3 +40,21 @@ set --export XBPS_DISTDIR "$HOME/.void-packages"
# gpg
export GPG_TTY=$(tty)
+
+# other
+set -gx EDITOR "nvim"
+
+fzf_configure_bindings --directory=\cf --git_log=\cg --git_status=\cs
+
+# yazi
+function y
+ set tmp (mktemp -t "yazi-cwd.XXXXXX")
+ yazi $argv --cwd-file="$tmp"
+ if read -z cwd < "$tmp"; and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
+ builtin cd -- "$cwd"
+ end
+ rm -f -- "$tmp"
+end
+
+# alias
+alias ll "eza -lha --icons=auto --sort=name --group-directories-first"
diff --git a/config/fish/fish_plugins b/config/fish/fish_plugins
new file mode 100644
index 0000000..4bbe5f2
--- /dev/null
+++ b/config/fish/fish_plugins
@@ -0,0 +1,2 @@
+jorgebucaran/fisher
+patrickf1/fzf.fish
diff --git a/config/fish/fish_variables b/config/fish/fish_variables
index 74b1ee1..6b86bd0 100644
--- a/config/fish/fish_variables
+++ b/config/fish/fish_variables
@@ -1,6 +1,10 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR __fish_initialized:3800
+SETUVAR _fisher_jorgebucaran_2F_fisher_files:\x7e/\x2econfig/fish/functions/fisher\x2efish\x1e\x7e/\x2econfig/fish/completions/fisher\x2efish
+SETUVAR _fisher_patrickf1_2F_fzf_2E_fish_files:\x7e/\x2econfig/fish/functions/_fzf_configure_bindings_help\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_extract_var_info\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_preview_changed_file\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_preview_file\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_report_diff_type\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_report_file_type\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_directory\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_git_log\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_git_status\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_history\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_processes\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_variables\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_wrapper\x2efish\x1e\x7e/\x2econfig/fish/functions/fzf_configure_bindings\x2efish\x1e\x7e/\x2econfig/fish/conf\x2ed/fzf\x2efish\x1e\x7e/\x2econfig/fish/completions/fzf_configure_bindings\x2efish
+SETUVAR _fisher_plugins:jorgebucaran/fisher\x1epatrickf1/fzf\x2efish
+SETUVAR _fisher_upgraded_to_4_4:\x1d
SETUVAR fish_color_autosuggestion:brblack
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:normal
diff --git a/config/fish/functions/fish_prompt.fish b/config/fish/functions/fish_prompt.fish
deleted file mode 100644
index 65b9830..0000000
--- a/config/fish/functions/fish_prompt.fish
+++ /dev/null
@@ -1,34 +0,0 @@
-# name: Default
-# author: Lily Ballard
-
-function fish_prompt --description 'Write out the prompt'
- set -l last_pipestatus $pipestatus
- set -lx __fish_last_status $status # Export for __fish_print_pipestatus.
- set -l normal (set_color normal)
- set -q fish_color_status
- or set -g fish_color_status red
-
- # Color the prompt differently when we're root
- set -l color_cwd "#ffd6ff"
- set -l suffix '>'
- if functions -q fish_is_root_user; and fish_is_root_user
- if set -q fish_color_cwd_root
- set color_cwd $fish_color_cwd_root
- end
- set suffix '#'
- end
-
- # Write pipestatus
- # If the status was carried over (if no command is issued or if `set` leaves the status untouched), don't bold it.
- set -l bold_flag --bold
- set -q __fish_prompt_status_generation; or set -g __fish_prompt_status_generation $status_generation
- if test $__fish_prompt_status_generation = $status_generation
- set bold_flag
- end
- set __fish_prompt_status_generation $status_generation
- set -l status_color (set_color $fish_color_status)
- set -l statusb_color (set_color $bold_flag $fish_color_status)
- set -l prompt_status (__fish_print_pipestatus "[" "]" "|" "$status_color" "$statusb_color" $last_pipestatus)
-
- echo -n -s (prompt_login)' ' (set_color $color_cwd) (prompt_pwd) $normal (fish_vcs_prompt) $normal " "$prompt_status $suffix " "
-end