Skip to content
Snippets Groups Projects
Commit 5bcd3301 authored by Daniel STAN's avatar Daniel STAN
Browse files

default EDITOR

parent 53324fa3
No related branches found
No related tags found
No related merge requests found
...@@ -285,7 +285,7 @@ def editor(texte, annotations=""): ...@@ -285,7 +285,7 @@ def editor(texte, annotations=""):
for l in annotations.split('\n'): for l in annotations.split('\n'):
f.write("# %s\n" % l.encode('utf-8')) f.write("# %s\n" % l.encode('utf-8'))
f.flush() f.flush()
proc = subprocess.Popen(os.getenv('EDITOR') + ' ' + f.name, shell=True) proc = subprocess.Popen([os.getenv('EDITOR', '/usr/bin/editor'), f.name])
os.waitpid(proc.pid, 0) os.waitpid(proc.pid, 0)
f.seek(0) f.seek(0)
ntexte = f.read() ntexte = f.read()
......
# Fonction de notre auto completion # Fonction de notre auto completion
if [[ "$EDITOR" = "" ]]; then
export EDITOR="nano";
fi
_cranspasswords(){ _cranspasswords(){
# declaration des variables locales # declaration des variables locales
local argc first last prev cur cur_first_char opts_short opts role_dir pass_dir server server_list role_list pass_list timeout local argc first last prev cur cur_first_char opts_short opts role_dir pass_dir server server_list role_list pass_list timeout
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment