aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/config
diff options
context:
space:
mode:
authorGravatar Luca Bruno <lucab@debian.org>2010-05-16 15:11:12 +0200
committerGravatar Luca Bruno <lucab@debian.org>2010-05-16 15:11:12 +0200
commit3f33558e48612004b70d0b726f7e5651b6f67ea1 (patch)
treeae70067e2d7c4c2de8ea7b956460a18c197d8cae /examples/config
parent6a06bd6706092ccf300fda02726c2066b03721c8 (diff)
Avoid bash specific syntax in helpers
Most of our helpers don't really depend on bash, and work just fine with every system shell. Thus, let's avoid "bashisms" in there to accomodate more bare-bone shells (like dash, see https://wiki.ubuntu.com/DashAsBinSh ) Signed-off-by: Luca Bruno <lucab@debian.org>
Diffstat (limited to 'examples/config')
-rw-r--r--examples/config/config6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/config/config b/examples/config/config
index cff13ad..6c4b0fb 100644
--- a/examples/config/config
+++ b/examples/config/config
@@ -251,8 +251,8 @@ set ebind = @mode_bind global,-insert
@cbind gh = uri http://www.uzbl.org
# Yanking & pasting binds
-@cbind yu = sh 'echo -n $6 | xclip'
-@cbind yy = sh 'echo -n $7 | xclip'
+@cbind yu = sh 'printf $6 | xclip'
+@cbind yy = sh 'printf $7 | xclip'
# Go the page from primary selection
@cbind p = sh 'echo "uri `xclip -selection primary -o | sed s/\\\@/%40/g`" > $4'
@@ -264,7 +264,7 @@ set ebind = @mode_bind global,-insert
@bind <Shift-Insert> = sh 'echo "event INJECT_KEYCMD `xclip -o | sed s/\\\@/%40/g`" > $4'
# Bookmark inserting binds
-@cbind <Ctrl>b<tags:>_ = sh 'echo -e "$6 %s" >> $XDG_DATA_HOME/uzbl/bookmarks'
+@cbind <Ctrl>b<tags:>_ = sh 'echo `printf "$6 %s"` >> $XDG_DATA_HOME/uzbl/bookmarks'
# Or use a script to insert a bookmark.
@cbind B = spawn @scripts_dir/insert_bookmark.sh