-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
43 lines (41 loc) · 1.8 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
# zsh fuzzy caps autocomplete
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
# zsh Plugins
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# brew completion definitions
autoload -Uz compinit
compinit
# environment variables
## brew
export HOMEBREW_CASK_OPTS="--appdir=~/Applications no-quarantine"
export HOMEBREW_NO_AUTO_UPDATE=1
export PATH="/opt/homebrew/bin:$PATH"
export PATH="/opt/homebrew/sbin:$PATH"
## fuck vim
export VISUAL='nano --modernbindings'
export EDITOR="$VISUAL"
## named directories
export ic="${HOME}/Library/Mobile Documents/com~apple~CloudDocs"
export sd="/Volumes/Leafs Media"
export sf="${HOME}/Documents/Fall 24"
# aliases and functions
alias up='brew update; brew upgrade --no-quarantine'
# 'brew update; brew upgrade --formulae --no-quarantine $(brew list --formulae); brew upgrade --cask --no-quarantine --greedy $(brew list --cask | grep --invert-match --regexp=thunderbird --regexp=font-red-hat-mono)'
alias ctar=tar -czvf
alias xtar=tar -xzvf
alias ttar=tar -tzvf
alias q='qlmanage -p'
alias lg='lazygit'
alias fix='xattr -dr com.apple.quarantine'
alias nano='nano --modernbindings --softwrap --tabsize=4 --tabstospaces'
alias diff='diff --color=always'
alias l='echo -e "\e[31m$(pwd)\e[0m"; eza --long --grid --group-directories-first --no-time --no-permissions --no-user'
function la() {{echo -e "\e[31m$(pwd)\e[0m"; eza --color=always --all --long --header --group-directories-first "$@"} | less --header 2 --quit-if-one-screen --RAW-CONTROL-CHARS --SILENT --no-vbell}
function c() {cd "$@"; l}
function ca() {cd "$@"; la}
function dl() {mkdir -p "$(pwd)/$@"; l}
function tl() {touch "$(pwd)/$@"; l}
# ls: A=show hidden files h=unit suffixes o=long format without groups
# Terminal startup
l