aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-11-16 00:28:34 +0800
committerGuangxiong Lin <[email protected]>2023-11-16 00:28:34 +0800
commite6bc9a8fdfe4e49ce96fa31552954a116cb8c07b (patch)
treeaf0832548d6b096d3de20ce58219e3bcd205db44
parent215a66d900ee9aaae32be231dd357e118bf63ce8 (diff)
downloaddotfiles-e6bc9a8fdfe4e49ce96fa31552954a116cb8c07b.tar.gz
dotfiles-e6bc9a8fdfe4e49ce96fa31552954a116cb8c07b.tar.bz2
dotfiles-e6bc9a8fdfe4e49ce96fa31552954a116cb8c07b.zip
Refactor
-rw-r--r--.config/fish/conf.d/init-fzf.fish9
-rw-r--r--.config/fish/config.fish6
-rw-r--r--.config/fish/functions/init_fzf.fish11
3 files changed, 13 insertions, 13 deletions
diff --git a/.config/fish/conf.d/init-fzf.fish b/.config/fish/conf.d/init-fzf.fish
new file mode 100644
index 0000000..d1c2d33
--- /dev/null
+++ b/.config/fish/conf.d/init-fzf.fish
@@ -0,0 +1,9 @@
+command -v fzf > /dev/null || exit 0
+
+if is_mac;
+ source $(brew --prefix fzf)/shell/key-bindings.fish
+end
+
+function fish_user_key_bindings
+ fzf_key_bindings
+end
diff --git a/.config/fish/config.fish b/.config/fish/config.fish
index 14c8150..6a16e19 100644
--- a/.config/fish/config.fish
+++ b/.config/fish/config.fish
@@ -1,8 +1,10 @@
if status is-interactive
- set -U fish_greeting
+ set -g fish_greeting
+ set -g __fish_git_prompt_showdirtystate 1
+ set -g __fish_git_prompt_showuntrackedfiles 1
+ set -g __fish_git_prompt_showcolorhints 1
command -v zoxide > /dev/null && zoxide init --cmd j fish | source
command -v navi > /dev/null && eval "$(navi widget fish)"
- init_fzf
if command -v nnn > /dev/null;
set -l function_file "$HOME/.config/fish/functions/n.fish"
diff --git a/.config/fish/functions/init_fzf.fish b/.config/fish/functions/init_fzf.fish
deleted file mode 100644
index b1fab2a..0000000
--- a/.config/fish/functions/init_fzf.fish
+++ /dev/null
@@ -1,11 +0,0 @@
-function init_fzf
- command -v fzf > /dev/null || exit 0
-
- if is_mac;
- source $(brew --prefix fzf)/shell/key-bindings.fish
- end
-
- function fish_user_key_bindings
- fzf_key_bindings
- end
-end