Fix config alias for windows
This commit is contained in:
parent
b0a65ad848
commit
c5f7ea8e56
|
@ -81,7 +81,6 @@ def load_aliases():
|
||||||
aliases.update({
|
aliases.update({
|
||||||
'bwg': _bwc,
|
'bwg': _bwc,
|
||||||
'colortest': _colortest,
|
'colortest': _colortest,
|
||||||
'config': '/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME',
|
|
||||||
'debug': _debug,
|
'debug': _debug,
|
||||||
'ls': 'ls -alhs --color=auto',
|
'ls': 'ls -alhs --color=auto',
|
||||||
'mc': _mcrcon,
|
'mc': _mcrcon,
|
||||||
|
@ -100,5 +99,11 @@ def load_aliases():
|
||||||
# Windows specific aliases
|
# Windows specific aliases
|
||||||
if in_win():
|
if in_win():
|
||||||
aliases.update({
|
aliases.update({
|
||||||
|
'config': 'git.exe --git-dir=$USERPROFILE/.cfg/ --work-tree=$USERPROFILE',
|
||||||
'ls': $('dir') # get past namespace conflict with python's dir() function.
|
'ls': $('dir') # get past namespace conflict with python's dir() function.
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if not in_win():
|
||||||
|
aliases.update({
|
||||||
|
'config': '/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME',
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in New Issue