-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
110 lines (83 loc) · 2.21 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#!/usr/bin/env zsh
autoload -U compinit; compinit
#--------#
# EXPORT #
#--------#
export TERM="xterm-256color" # getting proper colors
export HISTORY_IGNORE="(ls|cd|pwd|exit|sudo reboot|history|cd -|cd ..)"
export EDITOR="vim"
export VISUAL="emacsclient -c -a emacs"
export SHELL="zsh"
# XDG
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
# pfetch
export PF_INFO="ascii title os kernel shell uptime pkgs memory"
export PF_COL1="4"
export PF_COL2="5"
export PF_COL3="3"
#---------#
# OPTIONS #
# --------#
# Enable vi mode
bindkey -v
# Navigation
setopt AUTO_CD
setopt AUTO_PUSHD
setopt PUSHD_SILENT
setopt CORRECT
setopt CDABLE_VARS
setopt EXTENDED_GLOB
setopt PROMPT_SUBST
unsetopt BEEP
# History
setopt EXTENDED_HISTORY
setopt SHARE_HISTORY
setopt HIST_EXPIRE_DUPS_FIRST
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_FIND_NO_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_SAVE_NO_DUPS
setopt HIST_VERIFY
#---------#
# ALIASES #
#---------#
alias dts='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
# vim & emacs
# vim and emacs
alias vim="nvim"
alias em="/usr/bin/emacs -nw"
alias emacs="emacsclient -c -a 'emacs'"
# Changing "ls" to "exa"
alias ls='exa -al --color=always --group-directories-first' # my preferred listing
alias la='exa -a --color=always --group-directories-first' # all files and dirs
alias ll='exa -l --color=always --group-directories-first' # long format
alias lt='exa -aT --color=always --group-directories-first' # tree listing
# confirm before overwriting something
alias cp="cp -i"
alias mv='mv -i'
alias rm='rm -i'
# update homebrew
alias yay='brew install'
alias yeet='brew uninstall'
alias yep='brew update && brew upgrade && brew autoremove && brew cleanup'
#---------#
# PLUGINS #
# --------#
# antibody
alias abdate="antibody bundle < ~/.config/zsh/zsh_plugins.txt > ~/.config/zsh/zsh_plugins.sh"
source $HOME/.config/zsh/zsh_plugins.sh
#------#
# PATH #
#------#
export PATH="$HOME/.local/bin:$PATH"
#---------#
# AUTORUN #
# --------#
# set colors with pywal
# (cat ~/.cache/wal/sequences &)
# source ~/.cache/wal/colors-tty.sh # tty support
neofetch
eval "$(starship init zsh)"