These are my dotfiles and cheatsheets for basic Terminal setup on MacOS / Linux / Windows WSL2.
I use Zsh as my default shell, Oh-my-zsh for plugins and Startship for my prompt. The themes I have also require Nerd Fonts.
- Run the installation commands below
- copy .zshrc file and the directories into your
$HOME
directory - you may need to tweak some settings and install extra dependencies to get it to work in your environment. Refer to the documentation for Zsh, Oh-my-zsh and Startship prompt.
#Zsh - Linux Debian/Windows WSL2
sudo apt update
sudo apt install zsh -y
chsh -s /usr/bin/zsh
#Oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
#ZSH plugins
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlightingc
#Starship Prompt
curl -sS https://starship.rs/install.sh | sh
# Nerd Fonts - Hack font
git clone --depth 1 https://github.com/ryanoasis/nerd-fonts
cd nerd-fonts
./install.sh Hack
### Basic tools, nerdfont, fuzzy finders
sudo apt update
sudo apt install peco -y
sudo apt install exa -y
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
sudo apt install python3-pip
sudo apt install neovim -y
sudo apt install exuberant-ctags
z # Searches frequently access directory
^r # Searches command history
^t # Searches directories
tmux new -s <session name> # create
tmux a -s <session name> # attach
tmux kill-session -a # kill all sessions but current
Sessions -> Windows -> Panes
^a commands: (^b is rebound to ^a in my tmux cnfg)
:new -s <session name>
s # choose session
$ # rename session
d # detach session
c # creates window
w # preview window
, # rename window
& # close window
% # right
" # bottem
arrows # switch between panes
z # toggle zoom
x # close current pane
! # convert pane into window
:source-file ~/.tmux.conf