Compare commits

...

2 Commits

Author SHA1 Message Date
96be2560c3 fzf: highlight selected line 2024-10-02 13:05:37 -05:00
db95163d60 fish: bump nvm.fish to 2.2.16 2024-10-02 13:03:52 -05:00
3 changed files with 8 additions and 3 deletions

View File

@ -16,6 +16,7 @@ function __fzf_files
--ansi \
--info=inline-right \
--scheme=path \
--highlight-line \
--preview='bat --style=numbers --color=always {}' \
--preview-window='right,70%,wrap,hidden,<100(bottom,50%,hidden)' \
--bind='?:toggle-preview' \
@ -47,6 +48,7 @@ function __fzf_git_log
--ansi \
--info=inline-right \
--scheme=history \
--highlight-line \
--preview="git show {2} $argv | delta" \
--preview-window='right,70%,wrap,hidden,<100(bottom,50%,hidden)' \
--bind='?:toggle-preview' \
@ -69,6 +71,7 @@ function __fzf_history
--read0 \
--info=inline-right \
--scheme=history \
--highlight-line \
--query=(commandline) \
--preview='echo {3..}' \
--preview-window='down,10,wrap,hidden' \

View File

@ -1,8 +1,10 @@
function _nvm_list
set --local versions (string replace --all -- $nvm_data/ "" $nvm_data/*)
set --local versions $nvm_data/*
set --query versions[1] &&
string match --entire --regex -- (string match --regex -- "v\d.+" $versions |
string match --entire --regex -- (
string replace --all -- $nvm_data/ "" $versions |
string match --regex -- "v\d.+" |
string escape --style=regex |
string join "|"
) <$nvm_data/.index

View File

@ -29,7 +29,7 @@ function nvm --description "Node version manager"
switch "$cmd"
case -v --version
echo "nvm, version 2.2.15"
echo "nvm, version 2.2.16"
case "" -h --help
echo "Usage: nvm install <version> Download and activate the specified Node version"
echo " nvm install Install the version specified in the nearest .nvmrc file"