Log in as root, and then create a sudo user.
Use this user from now on when logging in for development work.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
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
I just recently started using this, but it's pretty worth it.
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'
nvim --headless +PlugInstall +qall
brew cask install iterm2
Mac (with Homebrew)
brew install tmux
Linux
sudo apt-get update
sudo apt-get install tmux
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
https://github.com/romkatv/powerlevel10k#meslo-nerd-font-patched-for-powerlevel10k
https://github.com/zsh-users/zsh-autosuggestions
Install:
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
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
cd ~
git clone http://github.com/samclayj/dotfiles.git ~/.vim
cd ~/.vim
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
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"
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
- 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.
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.
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.
Set ethernet to default: macOS - How to get Mac to give Ethernet connection priority? - Ask Different
- 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