##// END OF EJS Templates
hgrc: search XDG_CONFIG_HOME on mac...
Hraban Luyat -
r52500:a4b3b8de default
parent child Browse files
Show More
@@ -60,8 +60,6 b' def systemrcpath() -> List[bytes]:'
60 def userrcpath() -> List[bytes]:
60 def userrcpath() -> List[bytes]:
61 if pycompat.sysplatform == b'plan9':
61 if pycompat.sysplatform == b'plan9':
62 return [encoding.environ[b'home'] + b'/lib/hgrc']
62 return [encoding.environ[b'home'] + b'/lib/hgrc']
63 elif pycompat.isdarwin:
64 return [os.path.expanduser(b'~/.hgrc')]
65 else:
63 else:
66 confighome = encoding.environ.get(b'XDG_CONFIG_HOME')
64 confighome = encoding.environ.get(b'XDG_CONFIG_HOME')
67 if confighome is None or not os.path.isabs(confighome):
65 if confighome is None or not os.path.isabs(confighome):
@@ -1,4 +1,4 b''
1 #if no-windows no-osx
1 #if no-windows
2
2
3 $ mkdir -p xdgconf/hg
3 $ mkdir -p xdgconf/hg
4 $ echo '[ui]' > xdgconf/hg/hgrc
4 $ echo '[ui]' > xdgconf/hg/hgrc
General Comments 0
You need to be logged in to leave comments. Login now