default EDITOR
This commit is contained in:
parent
53324fa30e
commit
5bcd33019a
2 changed files with 1 additions and 5 deletions
|
@ -285,7 +285,7 @@ def editor(texte, annotations=""):
|
|||
for l in annotations.split('\n'):
|
||||
f.write("# %s\n" % l.encode('utf-8'))
|
||||
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)
|
||||
f.seek(0)
|
||||
ntexte = f.read()
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
# Fonction de notre auto completion
|
||||
|
||||
if [[ "$EDITOR" = "" ]]; then
|
||||
export EDITOR="nano";
|
||||
fi
|
||||
|
||||
_cranspasswords(){
|
||||
# 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue