X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/6698a8a0d2da74a08c95a2c5289e9e2e771efdee..ad7c4bae9781483a15c2a11c9db247edf7c3c365:/.zsh/func/vcsh diff --git a/.zsh/func/vcsh b/.zsh/func/vcsh index ca26a9e..0a08b5e 100755 --- a/.zsh/func/vcsh +++ b/.zsh/func/vcsh @@ -10,7 +10,7 @@ # Source repository: http://git.madduck.net/v/etc/zsh.git # -FGIT_BASE="$HOME/.fgits" +local FGIT_BASE="$HOME/.fgits" if [ "${1:---help}" = '--help' ] || [ $# -gt 1 ]; then echo "usage: ${0%/*} reponame" >&2 @@ -32,7 +32,7 @@ if [ ! -d "$FGIT_BASE/${1}.git" ]; then fi export GIT_DIR="$FGIT_BASE/${1}.git" -_WORKTREE="$(git config --get core.worktree)" +local _WORKTREE="$(git config --get core.worktree)" export GIT_WORK_TREE="$(readlink -f $GIT_DIR/$_WORKTREE)" unset _WORKTREE