Giter VIP home page Giter VIP logo

dotfiles's Introduction

Create a Sudo User

Log in as root, and then create a sudo user.

Use this user from now on when logging in for development work.

Digital Ocean Instructions

Install Dependencies

Install Homebrew (for Mac and Linux)

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install Github CLI

This is worth having - makes managing git repositories much easier after logging in a single time.

Mac

brew install gh 

Then login.

Ubuntu

Follow instructions for configuring apt-get:

https://github.com/cli/cli/blob/trunk/docs/install_linux.md

Install, then login.

Login

gh auth login

NeoVim

I just recently started using this, but it's pretty worth it.

Install NeoVim:

Mac:

brew install neovim

Linux: TBD

Install vim-plug:

sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
       https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'

Install Plug-ins:

nvim --headless +PlugInstall +qall

Install iTerm

brew cask install iterm2

Install tmux

Mac (with Homebrew)

brew install tmux

Linux

sudo apt-get update
sudo apt-get install tmux

Configure ZSH

Mac (with Homebrew)

brew install zsh zsh-completions
brew install zsh-syntax-highlighting

Linux

sudo apt install zsh
sudo sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

Change default shell

sudo chsh -s $(which zsh)

Install oh-my-zsh

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Fix issues about permissions

sudo chmod g-w /usr/local/share/zsh/site-functions
sudo chmod g-w /usr/local/share/zsh

Install Syntax highlighting Plugin (Mac)

brew install zsh-syntax-highlighting

Further instructions for Synax Highlighting

ZSH Syntax Highlighting

Install ZSH Theme

https://github.com/romkatv/powerlevel10k#meslo-nerd-font-patched-for-powerlevel10k

ZSH Auto Suggestions

https://github.com/zsh-users/zsh-autosuggestions

Install:

git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions

FZF

https://github.com/junegunn/fzf#using-git

Install and Enable (note you must run the install script).

git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf

~/.fzf/install

Install on New Machine

Clone configuration

cd ~
git clone http://github.com/samclayj/dotfiles.git ~/.vim
cd ~/.vim

Create Symbolic Links

ln -s ~/.vim/init.vim ~/.config/nvim/init.vim
ln -s ~/.vim/vim.init ~/.vimrc
ln -s ~/.vim/zshrc ~/.zshrc
ln -s ~/.vim/zshenv ~/.zshenv
ln -s ~/.vim/sam.zsh-theme ~/.oh-my-zsh/themes/sam.zsh-theme

Optional - if using Vim instead of NeoVim.

ln -s ~/.vim/vimrc ~/.vimrc

Configurations:

tmux configuration file: https://github.com/gpakosz/.tmux

git clone https://github.com/gpakosz/.tmux.git
mkdir -p "~/.config/tmux"
ln -s "~/.vim/.tmux.conf" "~/.config/tmux/tmux.conf"
cp "~/.vim/.tmux.conf.local" "~/.config/tmux/tmux.conf.local"

Autoread in Vim

Note there is a custom script on a timer that reloads Vim buffers to have an advanced autoread capability: https://stackoverflow.com/questions/2490227/how-does-vims-autoread-work

Tidying

  • I can open vs code in browser (just like cider) by going to github.dev.

Use tidy utility to format HTML files:

tidy <file>.html

Or from Vim:

:!tidy

To fix indentation in a file, use =G in Vim.

Iterm Color Schemes

https://iterm2colorschemes.com/

Current scheme is Moonfly. Afterglow is another option.

These themes are already in the Git repo for the configuration, just install in iTerm.

Mac Specific Notes

There's quite a bit of power now in Quick Actions with AppleScript/Automator. You can add these to the touch bar so they are quickly accessible as well.

One example is an Undocking MBP action that I made to eject all attached drives, close Lightroom Classic, and connect to WiFi. There's quite a few options here for additional changes as well.

Docking with Ethernet

Set ethernet to default: macOS - How to get Mac to give Ethernet connection priority? - Ask Different

TODO

  • Create a Mac and Linux bash script to automate the installation + configuration.
  • Make some CLIs to automate processes
  • Add Mac specific automation AppleScripts + Automator files

dotfiles's People

Contributors

samclayj avatar

Watchers

James Cloos avatar  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.