-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
executable file
·100 lines (70 loc) · 2.49 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
# PROMPT
PROMPT="%F{green}%~ %# %F{yellow}"
preexec () { echo -ne "\e[0m" }
# KEY BINDINGS
bindkey '\eOH' beginning-of-line
bindkey '\eOF' end-of-line
#ICECC
export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib64/qt5/plugins/platforms
# PERSONA
export PATH=$PATH:~/ksbin
# WORK:wq
export PATH=$PATH:~/wbin
# GOLANG
export PATH=$PATH:$HOME/go/bin
# MODULAR/MOJO
export PATH=$PATH:$HOME/.modular/bin
# RUST
export PATH="$HOME/.cargo/bin:$PATH"
# KSBIN
export PATH="$HOME/ksbin:$PATH"
# Current PATH
export PATH=.:$PATH
# TEMP pkgconfig for builds
# export PATH="/home/corp.roku/ksandvik/depot/firmware/release/main/os/dist/host/bin:$PATH"
function rr () {
rustc $1.rs && ./$1
}
# EDITORS
alias e=nvim
alias c=code
export EDITOR=nvim
# GENERAL COMMANDS
alias c=clear
alias t=telnet
alias cat=bat
# This assumes EXA is installed
alias l='exa'
alias ll='exa -l'
# GIT
alias gl='clear; echo "GIT log -> ..."; git log --pretty=oneline -3 HEAD'
alias gc='clear; echo "GIT commit -> ..."; git commit -am $1'
alias gp='clear; echo "GIT push -> ..."; git push origin master'
alias gd='clear; echo "GIT diff -> ..."; git diff'
alias grev='clear; echo "GIT revert -> ..."; git checkout -f '
# UTILITY FUNCTIONS
alias filesizes='du -hcd2 .'
# LOAD VARIOUS SEPARATE ZSH SETTINGS IF FILE EXISTS
[ -f ~/.zsh/mac.zsh ] && source ~/.zsh/mac.zsh
[ -f ~/.zsh/work.zsh ] && source ~/.zsh/work.zsh
[ -f ~/.zsh/fzf.zsh ] && source ~/.zsh/mac-ssd.zsh
[ -f ~/.zsh/fzf.zsh ] && source ~/.zsh/fzf.zsh
# source /Users/ksandvik/Library/Preferences/org.dystroy.broot/launcher/bash/br
autoload -U +X bashcompinit && bashcompinit
# START FISH!
fish
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /usr/local/bin/bit bit
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
. "$HOME/.cargo/env"
# Herd injected NVM configuration
export NVM_DIR="/Users/ksandvik/Library/Application Support/Herd/config/nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[[ -f "/Applications/Herd.app/Contents/Resources/config/shell/zshrc.zsh" ]] && builtin source "/Applications/Herd.app/Contents/Resources/config/shell/zshrc.zsh"
# Herd injected PHP 8.3 configuration.
export HERD_PHP_83_INI_SCAN_DIR="/Users/ksandvik/Library/Application Support/Herd/config/php/83/"
# Herd injected PHP binary.
export PATH="/Users/ksandvik/Library/Application Support/Herd/bin/":$PATH
export PATH="$PATH:/Users/ksandvik/.modular/bin"
# Herd injected PHP 8.4 configuration.
export HERD_PHP_84_INI_SCAN_DIR="/Users/ksandvik/Library/Application Support/Herd/config/php/84/"