/Dotfiles

My various config files

Primary LanguageVim Script

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 "wilk9496@gmail.com"
git config --global core.editor "nvim"

ssh-keygen -t ed25519 -C "wilk9496@gmail.com"
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