-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
74 lines (59 loc) · 2.15 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
export PATH=$HOME/bin:/usr/local/bin:$PATH
source "${HOME}/.zgenom/zgenom.zsh"
zgenom autoupdate
# if the init script doesn't exist
if ! zgenom saved; then
# specify plugins here
zgenom ohmyzsh
zgenom ohmyzsh plugins/git
zgenom ohmyzsh plugins/sudo
zgenom ohmyzsh plugins/colored-man-pages
zgenom load unixorn/fzf-zsh-plugin
zgenom load zdharma-continuum/fast-syntax-highlighting
zgenom load zsh-users/zsh-history-substring-search
zgenom load chrissicool/zsh-256color
zgenom load zsh-users/zsh-completions src
zgenom load RobSis/zsh-completion-generator
zgenom load peterhurford/git-it-on.zsh
zgenom load zsh-users/zsh-autosuggestions
# generate the init script from plugins above
zgenom save
fi
# User configuration
export MANPATH="/usr/local/man:$MANPATH"
export EDITOR='nano'
# Compilation flags
export ARCHFLAGS="-arch x86_64"
export PNPM_HOME="/home/luke/.local/share/pnpm"
export PATH="$PNPM_HOME:$PATH"
export EDITOR="/usr/bin/nano"
export PATH="$HOME/.cargo/env:$PATH"
alias update='sudo pacman -Sy && sudo powerpill -Su && paru -Su'
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
ix() {
local opts
local OPTIND
[ -f "$HOME/.netrc" ] && opts='-n'
while getopts ":hd:i:n:" x; do
case $x in
h) echo "ix [-d ID] [-i ID] [-n N] [opts]"; return;;
d) $echo curl $opts -X DELETE ix.io/$OPTARG; return;;
i) opts="$opts -X PUT"; local id="$OPTARG";;
n) opts="$opts -F read:1=$OPTARG";;
esac
done
shift $(($OPTIND - 1))
[ -t 0 ] && {
local filename="$1"
shift
[ "$filename" ] && {
curl $opts -F f:1=@"$filename" $* ix.io/$id
return
}
echo "^C to cancel, ^D to send."
}
curl $opts -F f:1='<-' $* ix.io/$id
}
eval "$(starship init zsh)"