fish: prefer delta to diff-so-fancy, rename dsf to diff
This commit is contained in:
parent
504926534f
commit
219f8b561e
@ -12,6 +12,7 @@ if status --is-interactive
|
|||||||
|
|
||||||
# If installed, setup git tools
|
# If installed, setup git tools
|
||||||
command -q diff-so-fancy; and set -gx GIT_PAGER "diff-so-fancy | $PAGER"
|
command -q diff-so-fancy; and set -gx GIT_PAGER "diff-so-fancy | $PAGER"
|
||||||
|
command -q delta; and set -gx GIT_PAGER 'delta --diff-so-fancy'
|
||||||
command -q interactive-rebase-tool; and set -gx GIT_SEQUENCE_EDITOR interactive-rebase-tool
|
command -q interactive-rebase-tool; and set -gx GIT_SEQUENCE_EDITOR interactive-rebase-tool
|
||||||
|
|
||||||
# If installed, setup z function
|
# If installed, setup z function
|
||||||
|
9
fish/functions/diff.fish
Normal file
9
fish/functions/diff.fish
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
function diff
|
||||||
|
if command -q delta
|
||||||
|
command diff -u $argv[1] $argv[2] | delta --diff-so-fancy
|
||||||
|
else if command -q diff-so-fancy
|
||||||
|
command diff -u $argv[1] $argv[2] | diff-so-fancy
|
||||||
|
else
|
||||||
|
command diff -u $argv[1] $argv[2]
|
||||||
|
end
|
||||||
|
end
|
@ -1,3 +0,0 @@
|
|||||||
function dsf
|
|
||||||
command diff -u $argv[1] $argv[2] | diff-so-fancy
|
|
||||||
end
|
|
@ -3,7 +3,6 @@
|
|||||||
useConfigOnly = true
|
useConfigOnly = true
|
||||||
[core]
|
[core]
|
||||||
autocrlf = input
|
autocrlf = input
|
||||||
editor = nvim
|
|
||||||
[alias]
|
[alias]
|
||||||
aliases = config --get-regexp alias
|
aliases = config --get-regexp alias
|
||||||
branchsort = branch --sort='-committerdate' --format='%(HEAD) %(color:blue)%(committerdate:short)%(color:reset) %(if)%(worktreepath)%(then)%(color:reverse yellow)%(refname:short)%(color:reset)%(else)%(color:yellow)%(refname:short)%(color:reset)%(end) %(color:green)%(upstream:short)%(color:reset)'
|
branchsort = branch --sort='-committerdate' --format='%(HEAD) %(color:blue)%(committerdate:short)%(color:reset) %(if)%(worktreepath)%(then)%(color:reverse yellow)%(refname:short)%(color:reset)%(else)%(color:yellow)%(refname:short)%(color:reset)%(end) %(color:green)%(upstream:short)%(color:reset)'
|
||||||
@ -12,8 +11,6 @@
|
|||||||
logsearch = log --color=always --format=tformat:'%C(blue)%cs%C(reset) %C(yellow)%h%C(reset) %C(normal)%s%C(reset)'
|
logsearch = log --color=always --format=tformat:'%C(blue)%cs%C(reset) %C(yellow)%h%C(reset) %C(normal)%s%C(reset)'
|
||||||
rbi = rebase --interactive
|
rbi = rebase --interactive
|
||||||
wipe = restore --staged --worktree
|
wipe = restore --staged --worktree
|
||||||
[color]
|
|
||||||
ui = auto
|
|
||||||
[color "branch"]
|
[color "branch"]
|
||||||
current = yellow reverse
|
current = yellow reverse
|
||||||
local = yellow
|
local = yellow
|
||||||
|
@ -12,6 +12,7 @@ brew install \
|
|||||||
fish \
|
fish \
|
||||||
fzf \
|
fzf \
|
||||||
git \
|
git \
|
||||||
|
git-delta \
|
||||||
git-interactive-rebase-tool \
|
git-interactive-rebase-tool \
|
||||||
less \
|
less \
|
||||||
macchina \
|
macchina \
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
with import <nixpkgs> {}; [
|
with import <nixpkgs> {}; [
|
||||||
bat
|
bat
|
||||||
diff-so-fancy
|
diff-so-fancy
|
||||||
|
delta
|
||||||
fd
|
fd
|
||||||
fish
|
fish
|
||||||
fzf
|
fzf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user