From 167c0f13173d85e2c3d0326f1521503fd064b867 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 10 May 2011 10:00:54 -0400 Subject: [PATCH 1/2] jsvn: remove unnecessary global variable --- jsvn | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jsvn b/jsvn index 8b0a962..dd8de0f 100755 --- a/jsvn +++ b/jsvn @@ -42,10 +42,9 @@ import re import time from subprocess import * -PATH = os.environ['PATH'].split(os.pathsep) - def findInPath(cmd): - for p in PATH: + path_entries = os.environ['PATH'].split(os.pathsep) + for p in path_entries: full_path = os.path.join(p, cmd) if os.path.exists(full_path): return full_path From bed28d653da9761f87ec9d1d0e1b3b11b84c4706 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Fri, 13 May 2011 14:59:48 -0400 Subject: [PATCH 2/2] inputrc: add F2 alias, comments --- inputrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100755 => 100644 inputrc diff --git a/inputrc b/inputrc old mode 100755 new mode 100644 index ea4c4a3..6865c5b --- a/inputrc +++ b/inputrc @@ -9,7 +9,9 @@ $include /etc/inputrc # F1 -> clear screen "\eOP": "clear\n" -# F4 +# F2 -> take a quick note +"\eOQ": "cat >/dev/null\n" +# F4 -> c++ source file extensions "\eOS": "{h,cc}" # Fragment from Ubuntus default inputrc: