From 0f926110eabb0799d976ab11fdccb78bc896b44c Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Thu, 24 Jun 2021 16:35:54 -0700 Subject: [PATCH] Follow alias function naming conventions --- xonsh/rc.xsh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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