- Fast Deployment for Shell Envs
- Table of Contents
- usage
- features and skills
- 1. micromamba: A faster and better "conda"
- 2. vim / neovim: Immediately start to use
- 3. ZSH: Clear and practical ZSH themes and plugins
- 4. Spyder: Auto deploy spyder config
- 5. jcat: A convenient command for fast checking notebook with ipynb format in terminal
- 6. wd: A dictory in terminal
- 7. tldr: too long don't read, it is a famous command for repalcing man
- 8. Other skills
- license
before we can start deploy our envs, you should make sure zsh and oh-my-zsh are installed
# install zsh & oh-my-zsh
sudo apt install zsh # on Ubuntu
# change shell to zsh
chsh -s $(which zsh)
# install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# plugins for oh-my-zsh
cd ~/.oh-my-zsh/custom/plugins/
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
git clone https://github.com/zsh-users/zsh-autosuggestionsnow we can start deploy .my_shell_envs
# install .my_shell_envs
cd $HOME
git clone https://github.com/hermanzhaozzzz/.my_shell_envs.git
## or git clone [email protected]:hermanzhaozzzz/.my_shell_envs.git
# deploy envs on MacOS / Linux / Windows
cd ~/.my_shell_envs
bash deploying_locally.sh # MacOS/Linux
# or
git-bash deploying_locally.sh # Windows, in powershell!
# <tips> via https or ssh
# you can set git clone via https (default) or ssh
# bash deploying_locally.sh ssh
# <tips>
# scoop install git # powershell
# git-bash deploying_locally.sh # powershell
cd ~/.my_shell_envs/
cd
# then just try
z mywhen use windows:
- scoop is the dependency
- all commands below should run in
PowerShell
mse_updatesee details in .my_shell_envs/apply_personal_envs.sh
this script will remove exist zsh settings (zshenv, zprofile) and copy my personal settings (.my_shell_envs/zsh/zprofile_hermanzhaozzzz_demo) and rename it to ~/.zprofile
zprofile will be sourced before zshrc when you login, and don't effect no-login operations like scp / rsync
you can create a ~/.zprofile by yourself and don't use .my_shell_envs/apply_personal_envs.sh and zprofile_hermanzhaozzzz_demo
# e.g. deploy my personal settings, I just:
bash apply_personal_envs.sh
# <tips>
# you can create a ~/.zprofile and use it by yourself but not use my <apply_personal_envs.sh>
# when you login your system, ~/.zprofile (personal settings)
# will be sourced before ~/.zshrc (.my_shell_envs' public settings)I use micromamba to replace conda, miniconda or mamba, because:
- conda / miniconda: Slow as a turtle, trust me, you will wait until you want to hit the keyboard
- mamba: Often you don't dare to update
baseenv because of missing dependencies or version problems raised by mamba
when you use .my_shell_envs, if base is boomed, you just cd ~/.my_shell_envs && bash deploying_locally, that's all!
vim config refs to vim-for-coding, it's lightweight but very practical.
neovim config refs to my LazyVim config -- MyLazyVim, I really enjoy using it to write code on the server!
- syntax highlighting: refs to zsh-syntax-highlighting
- autosuggestions: refs to zsh-autosuggestions
- z plugin: refs to z
refs to jcat
refs to Wudao-dict
refs to https://tldr.sh/
- a trash folder to avoid dangerous
rm -rfrm(aliasmvtorm, use\rmor/bin/rmorrm.real.rmif you want to use rawrm)rm.*cmdsrm.real.rmrm.trash.backrm.trash.clearrm.trash.show
l/ll/lll/llllcmds to replacelsbtopcmd to replacetop/htopopencmd, to open a file with default apps- when you want to add cmds in your
PATH, justcd ~/.my_shell_envs/bin && ln -s /absolute_path/cmd
Use my setting for free!







