This is a repository to setup a terminal environment easily on UNIX-like OS: such as Ubuntu, Mac, etc.
brew install git
git clone https://github.com/hanlsin/unixenv.git ~/.unixenv
brew install zsh
~/.unixenv/setup.sh
brew install vim
ln -s ~/.unixenv/unixenv_vimrc ~/.vimrc
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
vi ~/.vimrc
# Please execute :PlugInstall in the vim
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/installsudo apt install git
git clone https://github.com/hanlsin/unixenv.git ~/.unixenv
sudo apt install zsh
~/.unixenv/setup.sh
sudo apt install vim
ln -s ~/.unixenv/unixenv_vimrc ~/.vimrc
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
vi ~/.vimrc
# Please execute :PlugInstall in the vim
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/installgit clone https://github.com/hanlsin/unixenv.git ~/.unixenvor clone this repository and set UNIXENV_HOME=<where_the_repository_path_is>.
If your preferred shell (bash or zsh) was prepared, environment variables would be registered in the resource file automatically with the below command.
~/.unixenv/setup.shtouch ~/.local_profileThere is a new env file to prevent uploading critical inforation on github accidently.
You can insert any aliases or variables in ~/.local_profile, and it will be safe from accidental uploading.
brew install zshsudo apt install zshInstall Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"vi ~/.zshrcFind plugins and input the below in the .zshrc file.
plugins=(
git
pipenv
virtualenv
)
vi ~/.zshrcInput the below in the .zshrc file.
[[ ! -f ~/.unixenv/.unixenv_profile ]] || ~/.unixenv/.unixenv_profile
Setup Powerlevel10k
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10kFind ZSH_THEME and input the below in the .zshrc file.
#ZSH_THEME="robbyrussell"
ZSH_THEME="powerlevel10k/powerlevel10k"
To customize prompt
ln -s ~/.unixenv/p10k.zsh ~/.p10k.zsh
# or
p10k configureInput the below in the .zshrc file
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
brew install vimsudo apt install vimCreate a symbolic link for ~/.vimrc
ln -s ~/.unixenv/unixenv_vimrc ~/.vimrcor, if already ~/.vimrc exists, add the below context into the file.
" call default_vimrc
if filereadable($UNIXENV_VIMRC_PATH . "/default_vimrc")
so $UNIXENV_VIMRC_PATH/default_vimrc
endif
for vim-plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vimfor Vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vimvi ~/.vimrc
:PlugInstall
:PluginInstall
Use fzf
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/installln -s ~/.unixenv/tmux.zsh.conf ~/.tmux.confln -s ~/.unixenv/tmux.bash.conf ~/.tmux.confgit clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpmI recommend to install the Meslo Nerd Font font via