summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-02-19 19:58:22 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-02-19 19:58:22 -0700
commit79d391033ed68b87c8b26670ab32b303a3535149 (patch)
treeb6d0a88c1a50cae40a5b3a4cb535f24796b1f392 /.bashrc
parentbd18210a085fd87d3a95371951b3613218b3d561 (diff)
downloaddotfiles-79d391033ed68b87c8b26670ab32b303a3535149.tar.gz
pn: set VISUAL=emacsclient
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc7
1 files changed, 5 insertions, 2 deletions
diff --git a/.bashrc b/.bashrc
index 82013853..0e1eea79 100644
--- a/.bashrc
+++ b/.bashrc
@@ -288,10 +288,13 @@ if [ -d "/srv/ftp-master.debian.org" ]; then
pn () {
cd /srv/ftp-master.debian.org/queue/new
+ # we need VISUAL=emacsclient because dak's utils.call_editor
+ # fails when VISUAL contains both the editor's name and some
+ # arguments to it, as mine does
if [[ $1 ]]; then
- dak process-new "$1"*changes
+ VISUAL=emacsclient dak process-new "$1"*changes
else
- dak process-new
+ VISUAL=emacsclient dak process-new
fi
}
fi