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/install
sudo 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/install
git clone https://github.com/hanlsin/unixenv.git ~/.unixenv
or 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.sh
touch ~/.local_profile
There 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 zsh
sudo apt install zsh
Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
vi ~/.zshrc
Find plugins
and input the below in the .zshrc
file.
plugins=(
git
pipenv
virtualenv
)
vi ~/.zshrc
Input 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/powerlevel10k
Find 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 configure
Input the below in the .zshrc
file
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
brew install vim
sudo apt install vim
Create a symbolic link for ~/.vimrc
ln -s ~/.unixenv/unixenv_vimrc ~/.vimrc
or, 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.vim
for Vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vi ~/.vimrc
:PlugInstall
:PluginInstall
Use fzf
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
ln -s ~/.unixenv/tmux.zsh.conf ~/.tmux.conf
ln -s ~/.unixenv/tmux.bash.conf ~/.tmux.conf
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
I recommend to install the Meslo Nerd Font
font via