summaryrefslogtreecommitdiff
path: root/.zshrc
blob: bccf9c1e7ffbae0f7b4a7205add9f796f648c6aa (plain)
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
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/jordan/.zshrc'

autoload -Uz compinit
compinit

export LANG=en_US.UTF-8
export PATH=/home/jordan/.local/bin:$PATH
export PATH=/home/jordan/.local/go/bin:$PATH
export PATH=/home/jordan/.cargo/bin:$PATH
export GOROOT=/home/jordan/.local/go

alias asn="whois -h whois.jordan.im"
alias tags="ctags -R -f .tags"
alias ls="ls --color=auto"
alias redshift="redshift -c ~/.config/redshift/redshift.conf 2>/dev/null 1>&2 &"
alias rd="rd -B lynx"
alias mtr="mtr --curses"
alias wget-cd="wget --content-disposition"
alias obsidian="obsidian --disable-smooth-scrolling"
alias discord="/snap/bin/discord --no-sandbox --disable-smooth-scrolling --ignore-gpu-blocklist --disable-features=UseOzonePlatform --enable-features=VaapiVideoDecoder --use-gl=desktop --enable-gpu-rasterization --enable-zero-copy"
alias discord-alt="discord-ptb --no-sandbox --disable-smooth-scrolling --ignore-gpu-blocklist --disable-features=UseOzonePlatform --enable-features=VaapiVideoDecoder --use-gl=desktop --enable-gpu-rasterization --enable-zero-copy"
alias koya="koya --token 'XXXXXXX'"
alias captures="curl -X GET -H 'Accept: application/json' -H 'Authorization: LOW XXXXXXXXXX:XXXXXXXXXX' 'http://web.archive.org/save/status/user?t=$( shuf -i 100000000000-999999999999 -n 1 )'"

parse_git_branch() {
    git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
setopt PROMPT_SUBST
PROMPT='%(!.%F{red}.%F{cyan})%n%f@%F{yellow}%m%f %F{red}%~%f$(parse_git_branch)> '
TERM=screen-256color