Merge pull request #806 from OutPunk/terminalapp-plugin
Apple Terminal.app resume directory pluginmaster
commit
b7b2dd5802
1 changed files with 11 additions and 0 deletions
@ -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 |
||||||
Loading…
Reference in new issue