fish: switch to zoxide
This commit is contained in:
parent
30abab885f
commit
867446d761
@ -8,14 +8,6 @@ set -gx EDITOR nvim
|
||||
set -gx LANG en_US.UTF-8
|
||||
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
|
||||
# Disable the default shell greeting
|
||||
set fish_greeting
|
||||
@ -23,6 +15,13 @@ if status --is-interactive
|
||||
# Disable the abbreviated directory format
|
||||
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
|
||||
set -g __fish_git_prompt_showdirtystate 1
|
||||
set -g __fish_git_prompt_showstashstate 1
|
||||
|
@ -1,4 +1,3 @@
|
||||
jethrokuan/z
|
||||
jorgebucaran/fisher
|
||||
jorgebucaran/replay.fish
|
||||
lilyball/nix-env.fish
|
||||
|
@ -16,7 +16,8 @@ brew install \
|
||||
less \
|
||||
neovim \
|
||||
ripgrep \
|
||||
tree
|
||||
tree \
|
||||
zoxide
|
||||
|
||||
# Install optional tools (prompted by fzf)
|
||||
"$ROOTDIR/install/install-brew-extra.fish"
|
||||
|
@ -15,4 +15,5 @@ with import <nixpkgs> {}; [
|
||||
nix
|
||||
ripgrep
|
||||
tree
|
||||
zoxide
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user