This commit is contained in:
Jaroslaw Konik 2024-05-29 18:17:22 +02:00
parent 2f9e15b016
commit 43046edb90

4
.zshrc
View file

@ -22,11 +22,11 @@ compinit
#
nvr_git () {
local repo_path=$(git rev-parse --show-toplevel 2>/dev/null)
local repo_path=$(git rev-parse --show-superproject-working-tree 2>/dev/null)
if [ -n "$repo_path" ]; then
local servername=/tmp/nvr$(echo $repo_path | tr "/" "_")
nvr -s --servername $servername "$@"
else
else
/usr/bin/nvim "$@"
fi
}