Sanchayan Maity
0d0480a6b2
Using alias inside ~/.config/fish/config.fish can slow down shell start as each alias/function will be eagerly loaded. alias is slow because it involves eval. functions support lazy/auto loading. https://fishshell.com/docs/current/tutorial.html#autoloading-functions
6 lines
398 B
Fish
6 lines
398 B
Fish
# Open modified files
|
|
# ACMRU = Added || Copied || Modified || Renamed || Unmerged
|
|
# Edit all uncommitted files that have changes since the last commit (be they staged or unstaged)
|
|
function vd --wraps='nvim (git diff HEAD --name-only --diff-filter=ACMR)' --description 'alias vd=nvim (git diff HEAD --name-only --diff-filter=ACMR)'
|
|
nvim (git diff HEAD --name-only --diff-filter=ACMR) $argv;
|
|
end
|