Linux Terminal Glossary
›
Terminal Configuration
Terminal Configuration
90 commands
nano ~/.zshrc
source ~/.zshrc
nano ~/.profile
nano ~/.bash_profile
chsh -s /usr/bin/zsh
cat /etc/shells
echo $0
echo $PS1
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
export PS1='\[\033[38;5;39m\]\w \[\033[38;5;208m\]❯ \[\033[0m\]'
export PS1='$(git branch 2>/dev/null | grep "*" | sed "s/* //") \w\$ '
PROMPT_COMMAND='echo -ne "\033]0;${PWD##*/}\007"'
curl -sS https://starship.rs/install.sh | sh
eval "$(starship init bash)"
eval "$(starship init zsh)"
mkdir -p ~/.config && starship preset pure-preset -o ~/.config/starship.toml
nano ~/.config/starship.toml
starship preset nerd-font-symbols -o ~/.config/starship.toml
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
nano ~/.zshrc # set ZSH_THEME="robbyrussell"
# plugins=(git docker zsh-autosuggestions zsh-syntax-highlighting)
omz update
ls ~/.oh-my-zsh/themes/
alias ll='ls -lAh --color=auto'
alias gs='git status'
alias ..='cd ..'
alias grep='grep --color=auto'
alias rm='rm -i'
type ll
mkcd() { mkdir -p "$1" && cd "$1"; }
extract() { case "$1" in *.tar.gz) tar xzf "$1" ;; *.zip) unzip "$1" ;; *.gz) gunzip "$1" ;; *) echo "Unknown" ;; esac; }
port() { lsof -i :"$1"; }
backup() { cp "$1" "$1.bak.$(date +%Y%m%d%H%M%S)"; }
sudo apt install zsh-syntax-highlighting
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=240'
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
sudo apt install fzf
eval "$(fzf --bash)"
source <(fzf --zsh)
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border'
export FZF_DEFAULT_COMMAND='fd --type f --hidden --exclude .git'
export FZF_CTRL_T_OPTS="--preview 'bat --style=numbers --color=always {}'"
export FZF_ALT_C_OPTS="--preview 'ls --color=always {}'"
set -o vi
set -o emacs
bindkey -v
export KEYTIMEOUT=1
nano ~/.inputrc
# ~/.inputrc: set completion-ignore-case On
# ~/.inputrc: set show-all-if-ambiguous On
# ~/.inputrc: set colored-stats On
bind -p | grep -v '^#'
bindkey '^[[A' history-search-backward
bindkey '^[[B' history-search-forward
export HISTSIZE=50000
export HISTFILESIZE=100000
export SAVEHIST=100000
export HISTCONTROL=ignoreboth:erasedups
setopt SHARE_HISTORY
shopt -s histappend
sudo snap install alacritty --classic
mkdir -p ~/.config/alacritty && nano ~/.config/alacritty/alacritty.toml
# alacritty.toml: [font]\nsize = 13.0\n[font.normal]\nfamily = "FiraCode Nerd Font"
# alacritty.toml: [window]\nopacity = 0.92\nblur = true
sudo apt install kitty
nano ~/.config/kitty/kitty.conf
kitty +kitten themes
# kitty.conf: font_family FiraCode Nerd Font
# kitty.conf: background_opacity 0.9
kitty +kitten ssh user@server
# Install WezTerm from wezfurlong.org/wezterm/install
nano ~/.wezterm.lua
# .wezterm.lua: config.font = wezterm.font('FiraCode Nerd Font')
# .wezterm.lua: config.color_scheme = 'Catppuccin Mocha'
# .wezterm.lua: config.window_background_opacity = 0.9
sudo apt install fonts-firacode
# Install a Nerd Font for icons in Starship, powerlevel10k, etc.
fc-cache -fv
fc-list | grep -i 'fira'
sudo apt install bat
sudo apt install exa
sudo apt install fd-find
sudo apt install ripgrep
sudo apt install zoxide
eval "$(zoxide init bash)"
eval "$(zoxide init zsh)"
sudo apt install tldr
Search all 7,657 commands
instead.