-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
51 lines (44 loc) · 1.06 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#if [ -t 0 ] && [[ -z $TMUX ]] && [[ $- = *i* ]]; then exec tmux; fi
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
autoload -U compinit && compinit
ZSH_THEME="robbyrussell"
plugins=(fzf git z zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh
#terminal aliases
alias install='sudo pacman -S'
alias remove="sudo pacman -R"
alias update="sudo pacman -Syyu"
# alias vim='nvim'
alias c='clear'
alias lg='lazygit'
alias e="exit"
# npm aliases
alias nrd="npm run dev"
alias nrb="npm run build"
alias nrt="npm run test"
alias ni="npm install"
#Git aliases
alias gi="git init"
alias gcl="git clone"
alias ga="git add"
alias gph="git push"
alias gpl="git pull"
alias gs="git status"
alias gsh="git stash"
alias gc="git commit"
alias gco="git checkout"
alias gcm="git commit -m"
alias grh="git reset --hard"
alias grm="git rm --cached"
alias gd="git diff"
# tmux aliases
alias tls="tmux ls"
alias tlw="tmux list-windows"
#suffix alias
alias -s tsx=nvim
#global alias
alias -g G="| rg"
bindkey -s ^f "~/tardis\n"
bindkey -s ^s "~/infobank\n"
bindkey -s ^e "~/exit-script\n"