update
This commit is contained in:
parent
2f9e15b016
commit
43046edb90
1 changed files with 2 additions and 2 deletions
4
.zshrc
4
.zshrc
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue