home-environments: radio: Make @git-root fish-abbreviation more general
parent
fdfdd898ae
commit
e62b83b75c
|
@ -2,6 +2,11 @@ function code-projects
|
|||
string replace '@' '~/projects/code/' $argv[1]
|
||||
end
|
||||
|
||||
function git-root
|
||||
set -l result (git root 2>/dev/null) && \
|
||||
echo $result || echo ""
|
||||
end
|
||||
|
||||
function bookmarks
|
||||
$EDITOR (string replace ':' '~/resources/bookmarks/' $argv[1])
|
||||
end
|
||||
|
@ -36,7 +41,7 @@ end
|
|||
|
||||
function bang-bang-k
|
||||
set -l k (string replace '!!:' '' $argv[1])
|
||||
set -l arr $history[1]
|
||||
set -l arr (string replace -ra ' ' '\n' $history[1])
|
||||
echo $arr[$k]
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue