update
This commit is contained in:
parent
2f9e15b016
commit
43046edb90
1 changed files with 2 additions and 2 deletions
2
.zshrc
2
.zshrc
|
|
@ -22,7 +22,7 @@ compinit
|
||||||
#
|
#
|
||||||
|
|
||||||
nvr_git () {
|
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
|
if [ -n "$repo_path" ]; then
|
||||||
local servername=/tmp/nvr$(echo $repo_path | tr "/" "_")
|
local servername=/tmp/nvr$(echo $repo_path | tr "/" "_")
|
||||||
nvr -s --servername $servername "$@"
|
nvr -s --servername $servername "$@"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue