1 parent a57780d commit 52c4afaCopy full SHA for 52c4afa
1 file changed
lib/homesick/cli.rb
@@ -237,7 +237,8 @@ def cd(castle = DEFAULT_CASTLE_NAME)
237
"Opening a new shell in castle '#{castle}'. To return to the original one exit from the new shell.",
238
:green
239
inside castle_dir do
240
- system(ENV.fetch('SHELL', nil))
+ shell = ENV.fetch('SHELL', nil)
241
+ system("HOMESICK_SHELL=1 #{shell}") if shell
242
end
243
244
0 commit comments