mirror of
https://codeberg.org/hyperreal/dotfiles
synced 2024-11-25 11:53:43 +01:00
100 lines
1.8 KiB
Plaintext
100 lines
1.8 KiB
Plaintext
|
#!/usr/bin/env zsh
|
||
|
##############################################################################
|
||
|
# vim:set ft=zsh ai et sw=4 ts=4:
|
||
|
#
|
||
|
# @author : Jeffrey Serio <hyperreal@unixcat.coffee>
|
||
|
# @file : .zshenv
|
||
|
# @load_order : pre-zshrc
|
||
|
|
||
|
## lscolors
|
||
|
export LS_COLORS=$(cat ~/.lscolors.sh)
|
||
|
|
||
|
## go paths
|
||
|
export GOPATH="${HOME}/go"
|
||
|
|
||
|
## path variable
|
||
|
typeset -U PATH path
|
||
|
path=(
|
||
|
/usr/local/bin
|
||
|
/usr/local/sbin
|
||
|
/usr/lib/ruby/gems/3.0.0/bin
|
||
|
"${HOME}/.local/bin"
|
||
|
"${GOPATH}/bin"
|
||
|
"${HOME}/.cargo/bin"
|
||
|
"${path[@]}"
|
||
|
)
|
||
|
export PATH
|
||
|
|
||
|
## reply-to email address
|
||
|
export REPLYTO="hyperreal@unixcat.coffee"
|
||
|
|
||
|
## set language
|
||
|
export LANG=en_US.UTF-8
|
||
|
|
||
|
## set default editor
|
||
|
export EDITOR="nvim"
|
||
|
|
||
|
## set pager stuffs
|
||
|
export PAGER="less -X"
|
||
|
export BAT_THEME="Dracula"
|
||
|
|
||
|
## set history stuffs
|
||
|
export HISTFILE=~/.zsh_history
|
||
|
export HISTSIZE=10000
|
||
|
export SAVEHIST=10000
|
||
|
|
||
|
## set TERM if in tmux
|
||
|
if (( ${+TMUX} )); then
|
||
|
export TERM="screen-256color"
|
||
|
else
|
||
|
export TERM="xterm-256color"
|
||
|
fi
|
||
|
|
||
|
## load private vars
|
||
|
if test -f ~/.private_vars; then
|
||
|
source ~/.private_vars
|
||
|
fi
|
||
|
|
||
|
## fzf-tmux
|
||
|
export PATH="${PATH}:${HOME}/.fzf/bin"
|
||
|
|
||
|
## spaceship prompt
|
||
|
SPACESHIP_PROMPT_ORDER=(
|
||
|
time
|
||
|
user
|
||
|
host
|
||
|
dir
|
||
|
git
|
||
|
hg
|
||
|
package
|
||
|
node
|
||
|
ruby
|
||
|
golang
|
||
|
rust
|
||
|
docker
|
||
|
venv
|
||
|
pyenv
|
||
|
exec_time
|
||
|
line_sep
|
||
|
jobs
|
||
|
exit_code
|
||
|
char
|
||
|
)
|
||
|
SPACESHIP_CHAR_SUFFIX=" "
|
||
|
SPACESHIP_CHAR_SYMBOL="%%"
|
||
|
SPACESHIP_DIR_PREFIX=":"
|
||
|
SPACESHIP_DIR_SUFFIX="> "
|
||
|
SPACESHIP_EXIT_CODE_SHOW=true
|
||
|
SPACESHIP_EXIT_CODE_SYMBOL=""
|
||
|
SPACESHIP_HOST_COLOR="#F776AC"
|
||
|
SPACESHIP_HOST_PREFIX="@"
|
||
|
SPACESHIP_HOST_SHOW=always
|
||
|
SPACESHIP_HOST_SUFFIX=""
|
||
|
SPACESHIP_TIME_COLOR="#A9B1D6"
|
||
|
SPACESHIP_TIME_SHOW=true
|
||
|
SPACESHIP_USER_COLOR="#E08C68"
|
||
|
SPACESHIP_USER_PREFIX=""
|
||
|
SPACESHIP_USER_SHOW=always
|
||
|
SPACESHIP_USER_SUFFIX=""
|
||
|
|