Created
November 15, 2019 07:42
-
-
Save louisguitton/faba3c303cc929291cdf22dcfd71ebfc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Hi, here are commands that will set you up for the git and github training. | |
## Open a terminal and copy paste those commands group by group | |
## Read the output to check if the command really worked. | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install git | |
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash > ~/.git-completion.bash | |
curl https://iterm2.com/downloads/stable/iTerm2-3_1_7.zip > iTerm2.zip | |
unzip iTerm2.zip &> /dev/null | |
mv iTerm.app/ /Applications/iTerm.app | |
spctl --add /Applications/iTerm.app | |
rm -rf iTerm2.zip | |
echo "iTerm2 successfully installed.. Adding colors.." | |
cd ~/Downloads | |
mkdir -p ${HOME}/iterm2-colors | |
cd ${HOME}/iterm2-colors | |
curl https://github.com/mbadolato/iTerm2-Color-Schemes/zipball/master > iterm2-colors.zip | |
unzip iterm2-colors.zip | |
rm iterm2-colors.zip | |
brew install zsh zsh-completions zsh-syntax-highlighting &&\ | |
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh &&\ | |
chsh -s /bin/zsh | |
brew install bash-completion | |
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh >> ~/.git-prompt.sh | |
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions | |
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
curl https://raw.githubusercontent.com/oskarkrawczyk/honukai-iterm/master/honukai.zsh-theme > ~/.oh-my-zsh/custom/themes/honukai.zsh-theme | |
# open ~/.zshrc and change the them to honukai | |
brew tap caskroom/cask | |
brew cask install visual-studio-code | |
cat <<'EOF' >> ~/.zshrc | |
export EDITOR="code" | |
plugins=(git zsh-autosuggestions zsh-completions) | |
if [ -f ~/.path ]; then | |
. ~/.path | |
fi | |
if [ -f ~/.bash_aliases ]; then | |
. ~/.bash_aliases | |
fi | |
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | |
fpath=(/usr/local/share/zsh-completions $fpath) | |
EOF | |
git config --global core.excludesfile ~/.gitignore | |
touch ~/.gitignore | |
curl https://www.gitignore.io/api/macos,visualstudiocode >> ~/.gitignore | |
# in the following command, change the email adress | |
ssh-keygen -t rsa -b 4096 -C "[email protected]" -q -N "" -f ~/.ssh/id_rsa &&\ | |
eval "$(ssh-agent -s)" &&\ | |
ssh-add ~/.ssh/id_rsa | |
cat ~/.ssh/id_rsa.pub | pbcopy &&\ | |
open https://github.com/settings/ssh/new | |
# in the following commands, adapt and change my name with yours | |
git config --global user.name "Louis Guitton" &&\ | |
git config --global user.email "[email protected]" &&\ | |
git config --global push.default matching &&\ | |
git config --global core.editor nano | |
mkdir ~/workspace/ | |
cd ~/workspace/ | |
git clone [email protected]:louisguitton/datagnan.git | |
# Finder show hidden files | |
defaults write com.apple.finder AppleShowAllFiles YES && killall Finder | |
# Finder: show all filename extensions | |
defaults write NSGlobalDomain AppleShowAllExtensions -bool true | |
# Display full POSIX path as Finder window title | |
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment