Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→
Page 1 .. 257 258 259 260 261 262 263 264 265 266 267 .. 5022
502,152 events total
2020-09-27 21:22:31 Jesin joins (~Jesin@pool-72-66-101-18.washdc.fios.verizon.net)
2020-09-27 21:22:35 × mpereira quits (~mpereira@2a02:810d:f40:d96:5151:9344:10a3:da64) (Ping timeout: 272 seconds)
2020-09-27 21:22:51 <Guest_94> ok I have a file in /users/school which is called '.bashrc' and contains the text 'source /Users/School/.ghcup/env'
2020-09-27 21:23:01 <ski> after saving the file in your editor, if you type `cat .bashrc' in the shell, it should display (just) :
2020-09-27 21:23:04 <ski> source /Users/School/.ghcup/env
2020-09-27 21:23:44 <Guest_94> if i type cat.bashrc I get this
2020-09-27 21:23:45 <Guest_94> [ -f "/Users/School/.ghcup/env" ] && source "/Users/School/.ghcup/env" # ghcup-env
2020-09-27 21:24:24 <fluturel> that's fine then
2020-09-27 21:24:25 <ski> if you enter `pwd', what does it say ?
2020-09-27 21:25:23 <Guest_94> just '/Users/School'
2020-09-27 21:25:30 snakemasterflex joins (~snakemast@213.100.206.23)
2020-09-27 21:25:50 <ski> ok. possibly you managed to save your `.bashrc' in the editor, in a different place (or forgot to save ?)
2020-09-27 21:26:00 <ski> anyway, it shouldn't matter, if you have that contents there
2020-09-27 21:26:35 <Guest_94> I think maybe .bashrc files are hidden?
2020-09-27 21:26:46 <Guest_94> Because I definitely saved it in /users/school but it doesn't appear in my finder
2020-09-27 21:26:47 <fluturel> it is in the file manager
2020-09-27 21:27:36 × takuan quits (~takuan@178-116-218-225.access.telenet.be) (Ping timeout: 265 seconds)
2020-09-27 21:27:57 <fluturel> if you want, write in the terminal 'ls -a' and see if it's there. That command shows all files, hidden included
2020-09-27 21:27:57 <ski> if you type `ls -al' into your shell, you should see it
2020-09-27 21:28:32 <Guest_94> Oh yeah that worked
2020-09-27 21:28:38 <ski> (the `l' part shows some more info for each file, like date of last modification, size, &c. without it, you just get a list of file names)
2020-09-27 21:28:48 <Guest_94> when I now open a new instance of terminal, I get this, is this normal
2020-09-27 21:28:56 <Guest_94> The default interactive shell is now zsh.To update your account to use zsh, please run `chsh -s /bin/zsh`.
2020-09-27 21:29:16 <fluturel> what
2020-09-27 21:29:27 <fluturel> did you install zsh?
2020-09-27 21:29:38 <Guest_94> I dont even know what that is I don't think so
2020-09-27 21:29:49 <Guest_94> I was trying to install Haskell
2020-09-27 21:29:53 <ski> (hm, i think i heard someone say Mac wants to move to zsh as default shell ?)
2020-09-27 21:30:04 <fluturel> then just to be sure
2020-09-27 21:30:13 × snakemasterflex quits (~snakemast@213.100.206.23) (Ping timeout: 264 seconds)
2020-09-27 21:30:14 <fluturel> find a file named .zshrc
2020-09-27 21:30:19 <fluturel> in the same directory
2020-09-27 21:30:37 <fluturel> if it is, paste the 'source' thing there as well
2020-09-27 21:30:48 <yushyin> ski: I heard the same
2020-09-27 21:30:55 <fluturel> same steps as before, only the file is named .zshrc now
2020-09-27 21:31:08 <Guest_94> there doesn't seem to be a file called .zshrc
2020-09-27 21:31:56 <Guest_94> I have .bashrc and .ghcup
2020-09-27 21:31:57 <normie> macos has been on zsh for a while now iirc
2020-09-27 21:32:18 × rcdilorenzo quits (~rcdiloren@cpe-76-182-87-188.nc.res.rr.com) (Quit: rcdilorenzo)
2020-09-27 21:32:32 rcdilorenzo joins (~rcdiloren@cpe-76-182-87-188.nc.res.rr.com)
2020-09-27 21:32:41 <ski> type `printenv SHELL', what does it say ?
2020-09-27 21:33:07 <ski> or if that doesn't work, try `echo $SHELL' ?
2020-09-27 21:33:19 <Guest_94> it says '/bin/bash'
2020-09-27 21:33:30 <ski> hm, so i guess you're still in bash, then
2020-09-27 21:33:57 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 258 seconds)
2020-09-27 21:33:57 × mananamenos quits (~mananamen@84.122.202.215.dyn.user.ono.com) (Ping timeout: 258 seconds)
2020-09-27 21:33:57 <ski> probably "The default interactive shell is now zsh.To update your account to use zsh, please run `chsh -s /bin/zsh`." is just a nag that they want you to switch to zsh, then
2020-09-27 21:34:03 <justsomeguy> You probably need to start a new bash shell so it can read the ~/.bashrc configuration file you just edited.
2020-09-27 21:34:14 × danvet_ quits (~Daniel@2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa) (Ping timeout: 246 seconds)
2020-09-27 21:34:21 <justsomeguy> (Or run “source ~/.bashrc”)
2020-09-27 21:34:25 <maerwald> Guest_94: what does your ~/.bash_profile say?
2020-09-27 21:34:44 <maerwald> make sure it contains this line: [[ -f ~/.bashrc ]] && source ~/.bashrc
2020-09-27 21:34:52 <Guest_94> -bash: /Users/School/.bash_profile: Permission denied
2020-09-27 21:34:53 <ski> maerwald meant, what is the output if you type in `cat ~/.bash_profile' ?
2020-09-27 21:35:14 <Guest_94> # Setting PATH for Python 3.4# The orginal version is saved in .bash_profile.pysavePATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:${PATH}"export PATH# Setting PATH for Python 3.5# The original version is saved in .bash_profile.pysavePATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"export PATH
2020-09-27 21:35:36 <Guest_94> Thanks for your help btw really appreciate it
2020-09-27 21:36:33 <ski> Guest_94 : did you already start a new terminal with shell, btw ?
2020-09-27 21:36:50 <fluturel> ski: if the default shell is now zsh, then it kinda says that the shell you are in should already be zsh. Weird wording
2020-09-27 21:37:16 catkiki joins (~catkiki@m90-134-157-227.cust.tele2.hr)
2020-09-27 21:37:17 × rcdilorenzo quits (~rcdiloren@cpe-76-182-87-188.nc.res.rr.com) (Client Quit)
2020-09-27 21:37:21 <Guest_94> Sorry what do you mean by 'Did I already start a new terminal with shell'?
2020-09-27 21:37:32 rcdilorenzo joins (~rcdiloren@cpe-76-182-87-188.nc.res.rr.com)
2020-09-27 21:38:12 <yushyin> fluturel: default for new users, not for existing users, hence the `chsh'
2020-09-27 21:38:32 <Guest_94> Is the problem something to do with it setting PATH for python when I'm trying to install Haskell?
2020-09-27 21:39:24 <fluturel> Guest_94: no, the PATH holds several paths actually, python doesn't interfere here
2020-09-27 21:41:07 × falafel quits (~falafel@2605:e000:1527:d491:f090:20fe:cddf:2a1a) (Ping timeout: 240 seconds)
2020-09-27 21:42:33 × __monty__ quits (~toonn@unaffiliated/toonn) (Quit: leaving)
2020-09-27 21:42:45 <davve> 17
2020-09-27 21:43:45 <Guest_94> when I type in cat ~/.bashrc
2020-09-27 21:43:48 <Guest_94> I get this
2020-09-27 21:43:53 <Guest_94> [ -f "/Users/School/.ghcup/env" ] && source "/Users/School/.ghcup/env" # ghcup-env
2020-09-27 21:43:59 <Guest_94> Do you know what that means
2020-09-27 21:44:23 kelvin joins (uid466767@gateway/web/irccloud.com/x-ymoihyiqzvmzmxqc)
2020-09-27 21:45:13 × dhil quits (~dhil@11.29.39.217.dyn.plus.net) (Ping timeout: 264 seconds)
2020-09-27 21:46:01 falafel joins (~falafel@2605:e000:1527:d491:f090:20fe:cddf:2a1a)
2020-09-27 21:46:22 <ski> fluturel : well, it seemed that the shell they were in, after starting a new shell, was not zsh, but still bash. so presumably some start-up file that bash runs prints the nag about changing shell to zsh
2020-09-27 21:47:30 oisdk joins (~oisdk@2001:bb6:3329:d100:bd22:91d7:f791:22b6)
2020-09-27 21:47:31 <fluturel> Guest_94: the 'cat' command just prints the contents of the file you give it
2020-09-27 21:47:31 <ski> Guest_94 : it means that it first checks if the file `/Users/School/.ghcup/env' exists, and if it does, then it executes the shell commands found in that file
2020-09-27 21:47:43 <ski> Guest_94 : which is more or less what you wanted to happen, anyway
2020-09-27 21:48:04 <ski> ("it" being the bash shell, sorry)
2020-09-27 21:48:13 <Guest_94> So i got this message
2020-09-27 21:48:14 <Guest_94> In order to run ghc and cabal, you need to adjust your PATH variable.You may want to source '/Users/School/.ghcup/env' in your shellconfiguration to do so (e.g. ~/.bashrc).
2020-09-27 21:48:30 <fluturel> you did that
2020-09-27 21:48:35 <Guest_94> I thought I had done that
2020-09-27 21:48:42 <ski> yes, that's done and finished, i thought
2020-09-27 21:48:46 ephemeron joins (~ephemeron@unaffiliated/ephemeron)
2020-09-27 21:48:57 <ski> have you closed the old terminal and shell ?
2020-09-27 21:49:00 <fluturel> did you restart the shell?
2020-09-27 21:49:04 <Guest_94> how do you restart the shell
2020-09-27 21:49:14 <fluturel> close the window, open a new one
2020-09-27 21:49:28 <Guest_94> yeh i've done that
2020-09-27 21:49:30 <fluturel> a new terminal window, that is
2020-09-27 21:49:34 <fluturel> ok
2020-09-27 21:49:42 howdoi joins (uid224@gateway/web/irccloud.com/x-tqqfvfsvfflekctt)
2020-09-27 21:49:49 × Orbstheorem quits (~roosember@hellendaal.orbstheorem.ch) (Ping timeout: 272 seconds)
2020-09-27 21:50:50 <Guest_94> i was told i should be able to check if it had worked by typing in 'ghci --version' but I just get "Command not found"
2020-09-27 21:51:38 <fluturel> what does your PATH look like now? 'echo $PATH'
2020-09-27 21:51:55 <maerwald> Guest_94: did you do what I said wrt ~/.bash_profile?
2020-09-27 21:51:58 ephemeron parts (~ephemeron@unaffiliated/ephemeron) ()

All times are in UTC.