2020-11-23 05:35:09 +00:00
|
|
|
source $HOME/.common.sh
|
|
|
|
|
|
|
|
source_if_exists $HOME/.local/scripts/zsh/zsh-prelude.zsh
|
|
|
|
source_if_exists $HOME/.local/scripts/zsh/check-update.zsh
|
2020-06-15 08:54:40 +00:00
|
|
|
|
2020-06-15 08:18:21 +00:00
|
|
|
export LANG=en_US.UTF-8
|
2020-11-19 01:54:10 +00:00
|
|
|
|
|
|
|
# oh-my-zsh
|
2020-07-13 20:45:29 +00:00
|
|
|
export ZSH="$HOME/.oh-my-zsh"
|
2020-03-25 08:19:49 +00:00
|
|
|
ZSH_THEME="ys"
|
2020-11-19 01:54:10 +00:00
|
|
|
plugins=(
|
|
|
|
git
|
|
|
|
zsh-syntax-highlighting
|
|
|
|
)
|
|
|
|
export DISABLE_AUTO_UPDATE="true"
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
2020-03-25 08:19:49 +00:00
|
|
|
|
2020-04-09 04:18:20 +00:00
|
|
|
# options
|
|
|
|
setopt HIST_IGNORE_SPACE
|
|
|
|
|
2020-03-25 08:19:49 +00:00
|
|
|
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
2020-11-13 19:27:26 +00:00
|
|
|
# export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"
|
2021-04-15 08:20:02 +00:00
|
|
|
export EDITOR=vim
|
2021-05-13 19:44:09 +00:00
|
|
|
command_exists nvim && export EDITOR=nvim
|
2020-11-07 19:04:31 +00:00
|
|
|
export MAILDIR=$HOME/Mail
|
2021-04-15 07:29:54 +00:00
|
|
|
# export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock
|
2020-03-25 08:19:49 +00:00
|
|
|
|
2020-11-23 05:35:09 +00:00
|
|
|
source_if_exists $HOME/.cargo/env
|
2021-07-01 15:35:06 +00:00
|
|
|
source_if_exists "${GHCUP_INSTALL_BASE_PREFIX:=$HOME}/.ghcup/env"
|
2021-08-19 18:47:56 +00:00
|
|
|
source_if_exists $HOME/.nix-profile/etc/profile.d/nix.sh
|
2020-06-08 16:11:42 +00:00
|
|
|
|
2021-07-01 15:35:06 +00:00
|
|
|
append_path "$HOME/.local/bin"
|
|
|
|
append_path "$HOME/.local/scripts"
|
|
|
|
append_path "$HOME/.dotnet/tools"
|
|
|
|
append_path "$HOME/go/bin"
|
|
|
|
append_path "$HOME/.idris2/bin"
|
|
|
|
append_path "$HOME/.opam/default/bin"
|
|
|
|
append_path "$HOME/.local/share/prt"
|
|
|
|
# [ -f "${GHCUP_INSTALL_BASE_PREFIX:=$HOME}/.ghcup/env" ] && source "${GHCUP_INSTALL_BASE_PREFIX:=$HOME}/.ghcup/env"
|
2020-03-25 08:19:49 +00:00
|
|
|
|
2021-07-01 15:35:06 +00:00
|
|
|
# [[ -s $HOME/.autojump/etc/profile.d/autojump.sh ]] && source $HOME/.autojump/etc/profile.d/autojump.sh
|
2020-05-07 17:43:25 +00:00
|
|
|
autoload -U compinit && compinit -u
|
2021-07-01 15:35:06 +00:00
|
|
|
eval $(opam env)
|
2020-05-07 17:43:25 +00:00
|
|
|
|
2021-08-19 18:47:56 +00:00
|
|
|
PROG=tea _CLI_ZSH_AUTOCOMPLETE_HACK=1 source /home/michael/.config/tea/autocomplete.zsh
|
|
|
|
|
2020-03-25 08:19:49 +00:00
|
|
|
# opam configuration
|
2021-07-01 15:35:06 +00:00
|
|
|
# test -r /home/michael/.opam/opam-init/init.zsh && . /home/michael/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true
|
|
|
|
|
|
|
|
function rgc() {
|
|
|
|
rg --color always $@ | bat --color always
|
|
|
|
}
|
2020-03-25 08:19:49 +00:00
|
|
|
|
2020-06-08 16:11:42 +00:00
|
|
|
function loadnpm() {
|
|
|
|
export NVM_DIR="$HOME/.nvm"
|
|
|
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
|
|
|
}
|
|
|
|
|
2020-05-09 06:42:34 +00:00
|
|
|
# ssh
|
|
|
|
unset SSH_AGENT_PID
|
|
|
|
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
|
|
|
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
|
|
|
fi
|
|
|
|
|
2020-11-23 05:35:09 +00:00
|
|
|
source_if_exists $HOME/.local/scripts/zsh/aliases.zsh
|
|
|
|
[ -f "$HOME/.zsh/extras" ] && source $HOME/.zsh/extras/*.zsh
|
2021-08-15 04:06:07 +00:00
|
|
|
if [ -e /home/michael/.nix-profile/etc/profile.d/nix.sh ]; then . /home/michael/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
|
2020-06-15 10:28:12 +00:00
|
|
|
|
2021-03-20 07:40:04 +00:00
|
|
|
source <(chezmoi completion zsh)
|
2020-06-15 10:28:12 +00:00
|
|
|
# vim: set filetype=zsh:
|