-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshrc
78 lines (66 loc) · 1.9 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# _____ _____ _____ _____ _____
# |__ | __| | | __ | |
# | __|__ | | -| --|
# |_____|_____|__|__|__|__|_____|
#
# by Bina
# -- $PATH variable --
export PATH=$HOME/bin:/usr/bin:/usr/local/bin:$PATH
# -- oh-my-zsh --
# https://github.com/ohmyzsh
export ZSH=$HOME/.oh-my-zsh
# decide on a theme (or create your own)
ZSH_THEME="robbyrussell"
plugins=(
git
zsh-autosuggestions
zsh-autocomplete
zsh-syntax-highlighting
fast-syntax-highlighting
)
source $ZSH/oh-my-zsh.sh
# -- general settings --
CASE_SENSITIVE="true"
ENABLE_CORRECTION="true"
# -- pywal --
source ~/.cache/wal/colors-tty.sh
(cat ~/.cache/wal/sequences &)
# -- xcursor --
export XCURSOR_PATH=${XCURSOR_PATH}:~/.local/share/icons
# -- zoxide --
# z as alternative to cd navigating via path fragments
# case insensitive, only last component must match the path
# frecency algorithm (combination of frequency and recency)
# interactive zoxide zi lists visited dirs with their score
# rebind cd command using cd and cdi
eval "$(zoxide init --cmd cd zsh)"
# -- aliases --
# can be written to a separate file in $ZSH/custom
alias config="git --git-dir=$HOME/.dotfiles --work-tree=$HOME" # this is for my personal dotfiles repo
alias zsh="vim ~/.zshrc"
alias szsh="source ~/.zshrci"
alias fetch="c;fastfetch --colors-block-range-start 9 --colors-block-width 3;"
# -g : global aliases work anywhere on the command line
alias -g G='| grep'
alias -g L='| less'
alias -g W='| wc -l'
alias -g H='| head'
alias c="clear"
alias vd="vim diff"
alias gcl="git clone"
alias gs="git status"
alias gi="git init"
alias ga="git add"
alias gm="git commit -m"
alias gp="git push"
alias gb="git branch"
alias gc="git checkout"
alias gcb="git checkout -B"
alias gcm="git checkout master"
alias gpu="git pull"
alias gpo="git pull origin"
alias gl="git log"
alias gd="git diff"
alias gra="git remote add"
alias grr="git remote rm"
alias gsh="git stash"