diff options
author | andreas (@tux-six) | 2021-03-31 23:40:13 +0200 |
---|---|---|
committer | andreas (@tux-six) | 2021-03-31 23:40:13 +0200 |
commit | 495fffc45e6701f352042a80947a6fc4d18631c4 (patch) | |
tree | 6b4951b4ab79b5c287ad477f3b882e09106155f3 | |
parent | e2c68bf22ffa612a761098016fb3d0dd30d157db (diff) | |
download | dotfiles-495fffc45e6701f352042a80947a6fc4d18631c4.zip dotfiles-495fffc45e6701f352042a80947a6fc4d18631c4.tar.gz |
Added x-vim as script to launch vim in term from UI apps (like nautilus etc)
-rw-r--r-- | src/bin/x-vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bin/x-vim b/src/bin/x-vim new file mode 100644 index 0000000..6e926c7 --- /dev/null +++ b/src/bin/x-vim @@ -0,0 +1,5 @@ +#!/bin/env bash + +dir=$(dirname "$1") +x-terminal-emulator -e sh -ic "cd \"$dir\"; vim \"$@\"; bash;" + |