|
@@ -24,10 +24,22 @@ $PROMPT = ''.join([
|
|
|
])
|
|
|
$RIGHT_PROMPT = '{gitstatus}{env_name: {}}'
|
|
|
|
|
|
-import re as re
|
|
|
+import os
|
|
|
+import re
|
|
|
|
|
|
+$EDITOR = 'vim'
|
|
|
# required by pinentry-tty when using gpg command:
|
|
|
-$GPG_TTY=$(tty)
|
|
|
+$GPG_TTY = $(tty)
|
|
|
+# wrapper for termite required when launching termite from ranger:
|
|
|
+$TERMCMD = os.path.join(os.path.dirname(__file__), 'ranger-termite-termcmd')
|
|
|
+
|
|
|
+def locate(*patterns, match_all=True, ignore_case=True):
|
|
|
+ params = []
|
|
|
+ if match_all:
|
|
|
+ params.insert(0, '--all')
|
|
|
+ if ignore_case:
|
|
|
+ params.insert(0, '--ignore-case')
|
|
|
+ return $(locate @(params) -- @(patterns)).split('\n')[:-1]
|
|
|
|
|
|
aliases['ll'] = ['ls', '-l', '--all', '--indicator-style=slash', '--human-readable', '--time-style=long-iso', '--color=auto']
|
|
|
|