From eabb3c33c95e54ef5a21cfa2d7bfe1dbe5960ec6 Mon Sep 17 00:00:00 2001 From: deepend-tildeclub <58404188+deepend-tildeclub@users.noreply.github.com> Date: Fri, 9 Aug 2024 15:49:30 -0600 Subject: [PATCH] Update welcome.rb --- welcome.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/welcome.rb b/welcome.rb index 47b32bf..beb65c3 100644 --- a/welcome.rb +++ b/welcome.rb @@ -118,7 +118,7 @@ puts tz = %x{tzselect}.chomp puts puts " you selected #{tz}, adding this to your profile now" -if File.basename(user_shell) == "zsh" +if File.basename(shell) == "zsh" open("#{Dir.home}/.zshrc", "a") { |f| f.puts "export TZ='#{tz}'" } puts " Timezone set in your .zshrc file for ZSH." else