Compare commits
2 Commits
d9db8f62ff
...
96be2560c3
Author | SHA1 | Date | |
---|---|---|---|
96be2560c3 | |||
db95163d60 |
@ -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' \
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user