This repository is used by Le Wagon students.
lewagon / dotfiles Goto Github PK
View Code? Open in Web Editor NEWDefault configuration for Le Wagon's students
Home Page: https://www.lewagon.com
License: MIT License
Default configuration for Le Wagon's students
Home Page: https://www.lewagon.com
License: MIT License
This repository is used by Le Wagon students.
and ips
aliases to an ifconfig
command which is not installed by default since Ubuntu 18.04.
Suggestions:
ip
alias to public-ip
ips
to ip address | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print $1'
The URL seems to be never reached in terminal (works fine in browser)
I'm now a ALX Student, this is my first repository as a full-stack engineer
What are gitignore
and gitconfig
for?
Are these files not used anymore?
adding setopt NO_NOMATCH
to the zshrc disable zsh globbing
On Apple silicon macs, during or after setup, students encounter one of the following:
command not found
error when executing commands like brew
, gh
, code
pyenv
not working)pyenv
not working)command not found: direnv
when starting the terminalRoot cause:
brew
is installed in a different location than on Intel macs (/opt/homebrew
).brew
a line is added to .zprofile
to add some environment variables to add this new location to PATH
: eval "$(/opt/homebrew/bin/brew shellenv)"
dotfiles/install.sh
which overwrites the old .zprofile
.Solution:
Add the following first lines to our zprofile
:
# Required to find brew on Mac with Apple silicon
eval "$(/opt/homebrew/bin/brew shellenv 2> /dev/null)"
Compatibility of the proposed solution with Intel macs or Linux or WSL systems:
The eval
command will not execute but will generate an error (command not found). The proposed line simply redirects the stderr output to suppress the warning.
The script continues execution afterwards.
I'm now a ALX Student, this is my first repository as a full-stack engineer
During the setup day for batch #1365, many students had the issue of pyenv command not working after cloning dotfiles. After checking the .zshrc file, the pyenv plugin is missing from the plugins (line 7). After adding it to the plugins and restarting the terminal, the pyenv command was working properly.
Running zsh install.sh
results in the following warning:
WARNING: The -K and -A flags are deprecated and have been replaced
by the --apple-use-keychain and --apple-load-keychain
flags, respectively. To suppress this warning, set the
environment variable APPLE_SSH_ADD_BEHAVIOR as described in
the ssh-add(1) manual page.
This stems from:
# Symlink SSH config file to the present `config` file for macOS and add SSH passphrase to the keychain
if [[ `uname` =~ "Darwin" ]]; then
target=~/.ssh/config
backup $target
symlink $PWD/config $target
ssh-add -K ~/.ssh/id_ed25519
fi
in install.sh
and should maybe be updated?
sinon le git add / commit est tapΓ© dans le root...
Problem
sweep = !git branch --merged master | grep -v 'master$' | xargs git branch -d && git remote prune origin
This only works on master branch, but now with gh repo create
it will default 'main' branch as the master branch
Suggestion
git sweep should also work when the default branch is main and not master
install.sh:71: parse error near `<<<'
Context: 8e0e5fa
It looks like someone accidentally committed to master
, which created temporary weird effects for students on setup day π
Since this is a...fairly important repo, can we please lock the master
branch? I'd do it myself but I don't have permissions. Maybe @Eschults, you have to do it?
Thanks so much!
Over time the $PATH
variable can get quite bloated and have many duplicates inside.
typeset -U path
This takes care of this and checks path
to only include unique values e.g. it deletes all duplicates.
Something like this in aliases would be nice
alias start='cmd.exe /c start'
Setup environment on Windows using the guide.
When trying to git rebase -i
, git doesn't wait on VSCode to close and just continues the rebasing process leading to getting stuck in |REBASE
"branch" from which I can quit only by running rm -fr ".git/rebase-merge"
(and resetting the rebasing with it...)
Proposal:
change line https://github.com/lewagon/dotfiles/blob/master/gitconfig#L14 from editor = code
to editor = code --wait
The following lines to load nvm
do not work on Mac (seems like these are taken from the Ubuntu setup):
# Load nvm (to manage your node versions)
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
These are the lines given by the terminal after running brew install nvm
from one of the students, but I believe there were some slightly different folders depending on the laptops (one of them was pointing to the homebrew
folder if I recall properly):
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
Int (a);
_
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.