Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ZSH Configuration File (.zshrc)

# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"

# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
  git
  zsh-autosuggestions
  zsh-syntax-highlighting
)

# edit global zsh configuration
alias zshconfig="vim ~/.zshrc"
# reload zsh configuration
alias zshsource="source ~/.zshrc"
# reload zsh configuration
alias ohmyzsh="cd ~/.oh-my-zsh"

# navigate to global ssh directory
alias sshhome="cd ~/.ssh"
# edit global ssh configuration
alias sshconfig="vim ~/.ssh/config"

# edit global git configuration
alias gitconfig="vim ~/.gitconfig"

# git aliases
alias gits="git status"
alias gitd="git diff"
alias gitl="git lg"
alias gita="git add ."
alias gitc="git commit"

# type sublime . to open current folder in Sublime Text
alias sublime="/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl --new-window $@"

# use nvm
source /opt/homebrew/opt/nvm/nvm.sh

# use starship theme (needs to be at the end)
eval "$(starship init zsh)"
Comment

PREVIOUS NEXT
Code Example
Shell :: libc-bin error 
Shell :: how to install wireshark 
Shell :: set executable permissions linux 
Shell :: how to install spark on macos 
Shell :: install kubens on ubuntu 
Shell :: uninstall photos app windows 10 
Shell :: git clone specific branch 
Shell :: npm install dev dependencies 
Shell :: pulseaudio check if runnings 
Shell :: change ubuntu terminal prompt color 
Shell :: top port scan nmap 
Shell :: grep recursive file extension 
Shell :: how to install as dev dependency 
Shell :: ubuntu server set static ip 
Shell :: git merge develop to feature 
Shell :: vagrant vbox guest additions install 
Shell :: yarn cache directory 
Shell :: restart gnome from terminal 
Shell :: brew.sh 
Shell :: curl : Depends: libcurl3-gnutls 
Shell :: forward port with ssh 
Shell :: laravel install bootstrap 5 
Shell :: install windows app powershell 
Shell :: scp ssh key 
Shell :: bash terminal function display all arguments 
Shell :: find node version 
Shell :: linux move everything in a directory to another directory 
Shell :: linux convert to sha256 
Shell :: docker compose down single container 
Shell :: install bootstrap vue laravel 7 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =