fish: switch to zoxide

This commit is contained in:
Charles Gould 2022-04-22 00:37:03 -04:00
parent 30abab885f
commit 867446d761
4 changed files with 10 additions and 10 deletions

View File

@ -8,14 +8,6 @@ set -gx EDITOR nvim
set -gx LANG en_US.UTF-8 set -gx LANG en_US.UTF-8
set -gx PAGER 'less --tabs=4 --jump-target=.25 -iRFM' set -gx PAGER 'less --tabs=4 --jump-target=.25 -iRFM'
if command -q diff-so-fancy
set -gx GIT_PAGER "diff-so-fancy | $PAGER"
end
if command -q interactive-rebase-tool
set -gx GIT_SEQUENCE_EDITOR 'interactive-rebase-tool'
end
if status --is-interactive if status --is-interactive
# Disable the default shell greeting # Disable the default shell greeting
set fish_greeting set fish_greeting
@ -23,6 +15,13 @@ if status --is-interactive
# Disable the abbreviated directory format # Disable the abbreviated directory format
set fish_prompt_pwd_dir_length 0 set fish_prompt_pwd_dir_length 0
# If installed, setup git tools
command -q diff-so-fancy; and set -gx GIT_PAGER "diff-so-fancy | $PAGER"
command -q interactive-rebase-tool; and set -gx GIT_SEQUENCE_EDITOR interactive-rebase-tool
# If installed, setup z function
command -q zoxide; and zoxide init fish | source
# Git prompt # Git prompt
set -g __fish_git_prompt_showdirtystate 1 set -g __fish_git_prompt_showdirtystate 1
set -g __fish_git_prompt_showstashstate 1 set -g __fish_git_prompt_showstashstate 1

View File

@ -1,4 +1,3 @@
jethrokuan/z
jorgebucaran/fisher jorgebucaran/fisher
jorgebucaran/replay.fish jorgebucaran/replay.fish
lilyball/nix-env.fish lilyball/nix-env.fish

View File

@ -16,7 +16,8 @@ brew install \
less \ less \
neovim \ neovim \
ripgrep \ ripgrep \
tree tree \
zoxide
# Install optional tools (prompted by fzf) # Install optional tools (prompted by fzf)
"$ROOTDIR/install/install-brew-extra.fish" "$ROOTDIR/install/install-brew-extra.fish"

View File

@ -15,4 +15,5 @@ with import <nixpkgs> {}; [
nix nix
ripgrep ripgrep
tree tree
zoxide
] ]