Git Product home page Git Product logo

dotfiles's Introduction

dotfiles's People

Contributors

alex-benoit avatar atmosfeer avatar barangerbenjamin avatar brunolajoie avatar calvintan avatar cveneziani avatar db0sch avatar dmilon avatar elvisdot avatar eschults avatar fcatuhe avatar gmanchon avatar hjlarry avatar juliends avatar krokrob avatar lomig avatar olivergiles avatar papillard avatar primaulia avatar simonc avatar ssaunier avatar tedhartdavis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotfiles's Issues

Alx-pre_corse

I'm now a ALX Student, this is my first repository as a full-stack engineer

WARNING: ssh-add -K ( The -K and -A flags are deprecated in install.sh)

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?

git sweep should also work on main branch

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

Master branch should be protected

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!

alx-pre_course

I'm now a ALX Student, this is my first repository as a full-stack engineer

pyenv lacking in .zshrc plugins

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.

nvm load does not work for Mac users

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

Update zprofile to find brew, gh, code, pyenv, direnv ... on Apple silicon

On Apple silicon macs, during or after setup, students encounter one of the following:

  • a command not found error when executing commands like brew, gh, code
  • no virtualenv shown in terminal (due to pyenv not working)
  • wrong python version (due to pyenv not working)
  • command not found: direnv when starting the terminal

Root cause:

  • On Apple silicon macs, brew is installed in a different location than on Intel macs (/opt/homebrew).
  • When installing 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)"
  • But then we execute our dotfiles/install.sh which overwrites the old .zprofile.
  • First time student logs out and logs in again the commands are no longer found.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.