Code Monkey home page Code Monkey logo

dotfiles's Introduction

Dotfiles and fresh install guide

My dev config.

Step 1 – Install Homebrew

Open a terminal window.

Homebrew [...] simplifies the installation of software on the Mac OS X operating system.

Homebrew – Wikipedia

Copy & paste the following into the terminal window and hit Return.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor

You will be requested to install the Command Line Developer Tools from Apple. Confirm by clicking Install. After the installation finished, continue installing Homebrew by hitting Return again.

Step 2 – Install zsh

Copy & paste the following into the terminal window and hit Return.

brew install zsh

You can use zsh now.

Optional step 3 – default shell

To set zsh as your default shell, execute the following.

sudo sh -c "echo $(which zsh) >> /etc/shells" && chsh -s $(which zsh)
  1. Install OhMyZsh
sh -c "$(curl -fsSL [https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh](https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh))"
ZSH_THEME="powerlevel10k/powerlevel10k"
POWERLEVEL9K_MODE="nerdfont-complete"
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
  1. Install PowerLeve10K theme && Plugins for autosuggestion and syntax highlighting
brew install romkatv/powerlevel10k/powerlevel10k
echo "source $(brew --prefix)/opt/powerlevel10k/powerlevel10k.zsh-theme" >>~/.zshrc

OR

git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
&&
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
&&
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting

Step 4 – Install fonts

ryanoasis/nerd-fonts

Install Nerd Fonts via Homebrew

Nerd fonts raw

  • Homebrew
brew tap homebrew/cask-fonts &&
brew install --cask font-<FONT NAME>-nerd-font

brew tap homebrew/cask-fonts &&
brew install --cask font-meslo-lg-nerd-font

Nerd Fonts for your IDE

NerdFonts font download link

brew tap homebrew/cask-fonts && brew install --cask font-FiraMono-nerd-font
brew tap homebrew/cask-fonts && brew install --cask font-meslo-nerd-font
  • :// curl
curl -fLo "<FONT NAME> Nerd Font Complete.otf" \
    https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/<FONT_PATH>/complete/<FONT_NAME>%20Nerd%20Font%20Complete.otf
  • Bash Install Script
./install.sh <FontName>
  1. Edit ~.zshrc and add:

Step 6 – Download config

Install: Git Clone in user directory /home/$(whoami)

git clone git@github.com:wilo01/Dotfiles.git

To install nvim plugins open nvim and type: :PlugInstall :PlugUpdate

Commands Used 💻 Installing ZSH shell for linux distros:

Step 7 – Git config with ssh

Git Downloads Page

SSH Github key !

git config --global user.name "wilo01"
git config --global user.email "[email protected]"
git config --global core.editor "nvim"

ssh-keygen -t ed25519 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
cat ~/.ssh/id_ed25519.pub

copy ssh key to github
reboot if problems

SSH without password

// ssh copy id
ssh-copy-id pi@ip-adress or ssh-copy-id pi@domain-name.local

ssh-copy-id pi@10.1.1.206
ssh-copy-id pi@10.1.1.208

// In sshd_config change line PsswordAuthentication no
sudo nvim /etc/ssh/sshd_config

PsswordAuthentication no

sudo service ssh restart

Connecting to GitHub with SSH

Step 8 – Optional install other programs

brew install tmux nvim exa htop
brew install --cask visual-studio-code

defaults write NSGlobalDomain KeyRepeat -int 0
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
defaults write -g ApplePressAndHoldEnabled -bool false

reboot

Multiple line cursor neovim

Path to regolith config

~/.config/regolith/Xresources

dotfiles's People

Watchers

 avatar

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.