diff --git a/xonsh/rc.xsh b/xonsh/rc.xsh index 49db4cb..ddb0029 100644 --- a/xonsh/rc.xsh +++ b/xonsh/rc.xsh @@ -62,7 +62,8 @@ if ON_DARWIN: if ON_LINUX: aliases["pulsefix"] = "pulseaudio --kill; pulseaudio --start" -def find_venv(): +def _vv(): + """Finds the nearest venv going upward in the directory hierarchy and activates it.""" d = Path.cwd() while True: @@ -77,7 +78,7 @@ def find_venv(): d = d.parent -aliases["vv"] = find_venv +aliases["vv"] = _vv # # Hybrid Vi Mode # set -g fish_key_bindings hybrid_bindings