41 lines
No EOL
1.2 KiB
Bash
41 lines
No EOL
1.2 KiB
Bash
bindkey -e
|
|
setopt autocd
|
|
export ZSH="$HOME/.zsh"
|
|
|
|
# Set the directory we want to store zinit and plugins
|
|
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
|
|
ZSH_THEME="cypher"
|
|
|
|
# Download Zinit, if it's not there yet
|
|
if [ ! -d "$ZINIT_HOME" ]; then
|
|
mkdir -p "$(dirname $ZINIT_HOME)"
|
|
git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
|
|
fi
|
|
# Source/Load zinit
|
|
source "${ZINIT_HOME}/zinit.zsh"
|
|
|
|
|
|
# Add in zsh plugins
|
|
zinit light zsh-users/zsh-syntax-highlighting
|
|
zinit light zsh-users/zsh-completions
|
|
zinit light zsh-users/zsh-autosuggestions
|
|
# zinit light unixorn/fzf-zsh-plugin
|
|
zinit snippet OMZL::key-bindings.zsh
|
|
|
|
|
|
alias ls='exa'
|
|
alias la='exa -la'
|
|
alias dtree="exa --long --header --git --tree -L 3 -I node_modules"
|
|
alias tree="exa -T --git-ignore -I node_modules"
|
|
alias cd="z"
|
|
alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
|
|
alias cat="bat"
|
|
|
|
alias status='git status'
|
|
alias commit='git commit -am'
|
|
alias push='git push'
|
|
alias force='git push --force'
|
|
alias pull='git pull'
|
|
alias add='git add'
|
|
|
|
source $ZSH/oh-my-zsh.sh |