aboutsummaryrefslogtreecommitdiff
path: root/.config/zsh/.zshrc
blob: 2a3ba12a357933db2a7d9a5bb72f6f26200a1b2c (plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt autocd beep notify
bindkey -v
# autoload -U colors && colors
# source /home/zt/.local/zsh-autocomplete/zsh-autocomplete.plugin.zsh

# paths
# export PATH=/:$PATH
export PATH=/zt/Docs/Go:$PATH
export GOPATH="/zt/Docs/Go/"

export PATH=/zt/Programs/flutter/bin:$PATH

export PATH=/home/zt/.scripts:$PATH
export PATH=/zt/Programs:$PATH
export PATH=/home/zt/.local/bin:$PATH
export PATH=/home/zt/.emacs.d/bin:$PATH

export PATH=/usr/local/bin:$PATH



# aliases
# directories
alias waifu='cd /zt/waifu'
alias docs='cd /zt/Docs'
alias zt='/zt/'
alias progs='/zt/Programs/'
alias scripts='~/.config/scripts/'
alias goproj='/zt/Docs/Go/src/github.com/MikunoNaka'
alias wd='/zt/Docs/web'

# programs
alias pf='clear && pfetch'
alias rm='rm -i'
alias ls='exa -l'
alias la='exa -a'
alias lsa='exa -al'
alias nf='neofetch'
alias adbc='adb connect 10.0.0.51:5555'
alias x='chmod +x'
# git
alias gs='git status'
alias ga='git add'
alias gA='git add -A'
alias gc='git commit'
alias gcm='git commit -m'
alias gi='nvim .gitignore'
alias gp='git push'
alias gcl='git clone'

# dotfiles
alias xc='nvim /home/zt/.config/XMonad/xmonad.hs'
alias zrc='nvim /home/zt/.config/zsh/.zshrc'

# git bare
alias dots='git --git-dir=$HOME/.dots/ --work-tree=$HOME'
alias da='dots add'
alias dc='dots commit'
# if ssh daemon isn't running, start it and retry pushing
alias dp='dots push || ssh-v && dots push'

# ssh
alias ssh-k='eval $(ssh-agent)&& ssh-add /home/zt/.ssh/kalawati_git_key'
alias ssh-v='eval $(ssh-agent)&& ssh-add /home/zt/.ssh/vidhukant'

# to change title of terminal
title() {
  echo -n -e "\033]0;$@\007"
}

# record screen
srecord() {
  ffmpeg -f x11grab -s 1366x768 -i :0.0 $@
}

neofetch
exa
eval "$(starship init zsh)"
# syntax highlighting, needs to be at the end
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh