Skip to content

Commit

Permalink
Fix inheritance problems in gnome-terminal #49
Browse files Browse the repository at this point in the history
Also, use `--working-directory` instead of exec'ing `cd`.

Fixes #45.
  • Loading branch information
fmoralesc authored and justinmk committed Apr 24, 2019
1 parent d762ff0 commit d89d333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/gtfo/open.vim
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func! gtfo#open#term(dir, cmd) abort "{{{
if !s:empty(s:termpath)
silent call system(s:termpath." ".shellescape(l:dir))
elseif executable('gnome-terminal')
silent call system('gnome-terminal --window -e "$SHELL -c \"cd '''.l:dir.''' ; exec $SHELL\""')
silent call system('gnome-terminal --app-id=org.gnome.Terminal --window --working-directory '''. l:dir . '''')
else
call s:beep('failed to open terminal')
endif
Expand Down

0 comments on commit d89d333

Please sign in to comment.