This name is inspired by Barney's catchphrase, Barney is a character in my favorite TV series: How I met your mother.
This repository contains my personal development configurations like zsh, shell scripts... ๐ very welcome to try it out~
I don't know how to use single one script to install everything, so I seperate them into different scripts.
Please follow the steps below to init your development environment:
- Clone this repository to your local machine.
- Before running the scripts and if you living in China mainland, please ensure you can visit google and github at least.
- Run
sh ./bootstrap.sh
to install homebrew, zsh and oh-my-zsh. - Run
sh ./scripts/init/command-line-tools.sh
to install CLIs that I suggest. They are:- autojump, a tool to jump to your favorite directory, it supports fuzzy matching.
- bat, a cat clone with syntax highlight.
- htop, to monitor your system.
- neofetch, to insignt your system information.
- postman, sorry, it's not a CLI, but I still install it in this step. :sad
- exa, a ls clone with syntax highlight.
- atuin, a tool to power your shell history.
- Run
sh ./scripts/init/install-zsh-plugins.sh
to init zplug and add plugins to it. There are the plugins:- zsh-autosuggestions, to suggest commands when you type.
- zsh-syntax-highlighting, to highlight commands when you type.
- Okay, as a frontend developer, I create a script to init the development environment. They are:
- volta, a tool to manage node versions. And I will open VOLTA_FEATURE_PNPM to enable auto switching for pnpm(volta-cli/volta#737 (comment))
- node and pnpm, installed them by volta.
- some tools like eslint, prettier, stylelint...
- commitzen, a tool to help you write commit message.
- volta, a tool to manage node versions. And I will open VOLTA_FEATURE_PNPM to enable auto switching for pnpm(volta-cli/volta#737 (comment))
- Actually, those tools seems enough to start developping. But I still have some customize configrations, you can keep following the steps if you want.
sh ./scripts/init/apps.sh
Running this script to install useful apps like:
- google chrome
- visual studio code
- iterm2
- raycast, alternative to alfred, a powerful tool to help you improve your productivity.
- orbstack, a tool to manage your docker containers.
- itsycal, a tool to show your calendar.
You can init .vimrc
by running:
sh ./scripts/dev/vim-config.sh
You can edit it in ~/.vimrc
And add some useful zsh aliases
by running:
sh ./scripts/dev/zsh-alias.sh
You can edit it in ~/.config/suitup/aliases
In /sources
, there are some sources you can use.
You can import Best!.json
to setup the color schema for iTerm2 - macOS Terminal Replacement.
if you don't want pay much time in theme, you can use romkatv/powerlevel10k: A Zsh theme
.
or you can install p10k
by zplug:
- run this command to add
p10k
to pluginecho "zplug romkatv/powerlevel10k, as:theme, depth:1" >> ~/.config/suitup/plugins
- run
reload-zsh
to reload zsh config if you have runsh ./scripts/dev/zsh-alias.sh
before.
cascadia
is a nerd font for romkatv/powerlevel10k: A Zsh theme
.
Run this command and reset to default zsh config(.zshrc
)
sh ./clean.sh
This script will do:
- remove
~/.config/suitup
- remove
~/.oh-my-zsh
- remove
~/.zshrc
- switch to
bash
, or you can keepzsh
if you macOS has changed the default shell to zsh.
After doing this, you can enjoy your development journey. ๐