mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-10-02 16:03:47 +02:00
Apple Terminal.app resume directory plugin
This commit is contained in:
1 parent
8c45b73918
commit
a28b8889ee
1 file changed
+11
@@ -0,0 +1,11 @@
|
|||||||
|
# Set Apple Terminal.app resume directory
|
||||||
|
# based on this answer: http://superuser.com/a/315029
|
||||||
|
|
||||||
|
function chpwd {
|
||||||
|
local SEARCH=' '
|
||||||
|
local REPLACE='%20'
|
||||||
|
local PWD_URL="file://$HOSTNAME${PWD//$SEARCH/$REPLACE}"
|
||||||
|
printf '\e]7;%s\a' "$PWD_URL"
|
||||||
|
}
|
||||||
|
|
||||||
|
chpwd
|
||||||
Reference in new issue
Block a user