mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-04-13 09:30:06 +00:00
Fix.
This commit is contained in:
parent
6c53fa777e
commit
9fffc59cf3
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ git_prompt_status() {
|
|||
}
|
||||
function updateprompt () {
|
||||
if havegit ; then
|
||||
local gitdir="$(readlink -m $(git rev-parse --git-dir 2>/dev/null))"
|
||||
local gitdir="$(python -c 'import os,sys;print os.path.realpath(sys.argv[1])' $(git rev-parse --git-dir 2>/dev/null))"
|
||||
local repodir="$(dirname "${gitdir}")"
|
||||
local reponame="$(basename "${repodir}")"
|
||||
local curdir="$(pwd)"
|
||||
|
|
Loading…
Add table
Reference in a new issue