Comments (7)
Just adding that this is very common now, not only for the setup session that Sebi is commenting on. The students end up pasting all the commands and then when they reach the step of Github CLI, it is impossible to open a browser from the terminal.
Data students too, but for them is more crucial because they use Jupyter notebook.
from setup.
👋 Thanks for flagging! Which partial, in you opinion, should we update? What would be the wording?
PR welcomed 🙇 🙂
from setup.
@ssaunier I created a PR 👌
from setup.
Now the setting the browser section is before the dotfiles section so it will undo the changes.
First the browser step sets the EDITOR in the zshrc here
Then the dotfiles step replaces the current zshrc with the lewagon zshrc and undos the EDITOR change.
from setup.
@ElvisDot I'm not sure I follow, could you please open a PR and have @SebiBasti + @ogiles1999 as reviewer? Thanks!
from setup.
@ElvisDot I'm not sure I follow, could you please open a PR and have @SebiBasti + @ogiles1999 as reviewer? Thanks!
Im a bit too lazy to do that now sorry 😜
Its a chicken egg situation 🐔 🥚 . So the browser setup step is before the gh setup step so it opens the browser when authenticating with github. The gh is needed to clone the dotfiles. The dotfiles step then replaces the zshrc edit which added the EDITOR variable.
# https://github.com/ElvisDot/setup/blob/8eb7d0cc6b7bd6514b26fd9949791cc22135fe05/windows.md#linking-your-default-browser-to-ubuntu
echo "export BROWSER=\"/mnt/c/Program Files/Google/Chrome/Application/chrome.exe\"" >> ~/.zshrc
echo "export GH_BROWSER=\"'/mnt/c/Program Files/Google/Chrome/Application/chrome.exe'\"" >> ~/.zshrc
# https://github.com/lewagon/setup/blob/8eb7d0cc6b7bd6514b26fd9949791cc22135fe05/windows.md#github-cli
# we login expecting the BROWSER to be set in the zshrc
gh auth login -s 'user:email' -w
# https://github.com/lewagon/dotfiles/blob/adf05d5bffffc08ad040fb9c491ebea0350a5ba2/install.sh#L9
# now the lewagon dotfiles step undoes the EDITOR set in the zshrc
# which now causes the common data issue that jupyter notebook is not opening the browser
mv ~/.zshrc ~/.zshrc.backup
The way I see it either the browser setup step has to be done twice. Or the student has to manually click the link on the github auth step. Or the dotfiles script has to also copy over the BROWSER variables when setting up the zshrc.
from setup.
I guess updating the dotfiles script with the correct browser variables should do the trick.
from setup.
Related Issues (20)
- separate lines HOT 1
- Suggestion: migrating nvm and rbenv to asdf instead HOT 1
- Pull request closed before resolution HOT 1
- Suggestion about `green WSL box` HOT 1
- `locale` command in Windows setup should be run in Ubuntu terminal, not CMD HOT 1
- pyenv homebrew and pip path HOT 4
- a
- Audit node / webpack / yarn from the setup HOT 1
- Slack test is not working anymore
- Locale section should specify Ubuntu terminal
- Set default ruby version 3.2.2
- Set default nodeJS 18.18.0 HOT 13
- Different postgresql message HOT 3
- Ruby VS extension is deprecated HOT 1
- Switch the Ruby vscode extension to Shopify's Ruby LSP HOT 2
- WINDOWS: fix warning "bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8) HOT 6
- Check the locale position HOT 1
- WARNING: npm install --global yarn HOT 4
- Add a note to setup instructions about 2fa with GitHub
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setup.