Skip to content

Instantly share code, notes, and snippets.

@khiemdoan
Last active November 15, 2023 03:47
Show Gist options
  • Save khiemdoan/d43c61102c84f4fa40f81a102eec2cf3 to your computer and use it in GitHub Desktop.
Save khiemdoan/d43c61102c84f4fa40f81a102eec2cf3 to your computer and use it in GitHub Desktop.

Fonts

Download and use Meslo LG M Regular Nerd Font

Meslo.zip

Setup font for Visual Studio Code

"terminal.integrated.fontFamily": "'MesloLGM Nerd Font', 'MesloLGM NF', monospace"

ZSH

Install zsh

Ubuntu

sudo apt install zsh
chsh -s $(which zsh)

Fedora

sudo dnf install zsh
# Change default shell in /etc/passwd to /usr/bin/zsh

Add to bottom of /etc/zsh/zprofile

emulate sh -c 'source /etc/profile.d/apps-bin-path.sh'

Install oh-my-zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting

Zim is a Zsh configuration framework that bundles a plugin manager, useful modules, and a wide variety of themes, without compromising on speed.

curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh

Add to ~/.zimrc file:

zmodule zsh-users/zsh-completions --fpath src
zmodule completion
zmodule zsh-users/zsh-syntax-highlighting
zmodule zsh-users/zsh-autosuggestions
zmodule prompt-pwd
zmodule eriner

Run command to active changes:

zimfw install && zimfw uninstall

Install fish

Ubuntu

sudo apt install fish

Fedora

sudo dnf install fish

Install oh-my-fish

curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish

Install agnoster theme

omf install agnoster
omf theme agnoster

Install Oh My Posh

Windows

winget install JanDeDobbeleer.OhMyPosh -s winget

MacOS

brew install jandedobbeleer/oh-my-posh/oh-my-posh

Additional Tools

Debian, Ubuntu

sudo add-apt-repository ppa:maveonair/helix-editor
sudo apt install bat fzf helix lsd neovim wget2
wget -O - https://github.com/solidiquis/erdtree/releases/download/v3.1.2/erd-v3.1.2-x86_64-unknown-linux-gnu.tar.gz | tar -xvz erd -C /tmp/ && sudo mv /tmp/erd /usr/bin/erd

Fedora, CentOS

sudo dnf copr enable varlad/helix
sudo dnf install bat helix neovim

MacOS

brew install bat erdtree fzf helix lsd neovim wget2

Alias

alias l='lsd -lh --group-directories-first --color auto'
alias ll='lsd -lah --group-directories-first --color auto'
alias python=python3
alias vim=nvim
alias vi=nvim
alias wget=wget2

alias cat=bat
alias cd=z
alias find=fd
alias grep=rg
alias du=dust
alias sed=sd
alias cloc=tokei
alias ps=procs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment