Skip to content
Snippets Groups Projects
Commit 30ba50fc authored by Mark Wagie's avatar Mark Wagie
Browse files

fix typo

parent 4595c0ec
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ _vtetag=${pkgver}
source=(
"git+https://gitlab.gnome.org/GNOME/vte.git#tag=$_vtetag"
"${_fpatchfile}-${_fcommit}::${_frepourl}/raw/${_fcommit}/f/${_fpatchfile}"
'add-zsh-notfication-support.patch')
'add-zsh-notification-support.patch')
sha256sums=('SKIP'
'58103faff3bd492bcfd2a4c5b981fe951f3a96aca55edb30526563dad2e89842'
'93cd9c7c1fe4001a56e5a6357b6ffd79ce030ac04342801792500f9e44ff79ed')
......
diff -rupN a/src/vte.sh.in b/src/vte.sh.in
--- a/src/vte.sh.in 2020-03-29 20:18:42.057567145 +0200
+++ b/src/vte.sh.in 2020-03-29 20:23:19.332182543 +0200
@@ -23,7 +23,9 @@
[ "${VTE_VERSION:-0}" -ge 3405 ] || return 0
__vte_osc7 () {
- printf "\033]7;file://%s%s\033\\" "${HOSTNAME}" "$(@libexecdir@/vte-urlencode-cwd)"
+ last_command=$(history | tail -n1 - | cut -c8-)
+
+ printf "\033]777;notify;Command completed;%s\007\033]7;file://%s%s\007" "${last_command}" "${HOSTNAME:-}" "$(vte-urlencode-cwd "${PWD}")"
}
__vte_prompt_command() {
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