.dots/zsh/zprofile

38 lines
951 B
Text
Raw Permalink Normal View History

2024-09-26 11:05:50 +02:00
#!/usr/bin/env zsh
# __ _ _
# / _(_) |
# _____ __ _ __ ___ | |_ _| | ___
# |_ / '_ \| '__/ _ \| _| | |/ _ \
# _ / /| |_) | | | (_) | | | | | __/
# (_)___| .__/|_| \___/|_| |_|_|\___|
# | |
# |_|
#
# author: Daniel Sommer <daniel.sommer@velvettear.de>
# license: MIT
# ----- prompt ----- #
export PROMPT="%(!.%F{red}.)%n@%m > %/%(!.#.$) %f"
# ------ general ----- #
export USER="$(whoami)"
export HOST="$(hostname)"
export HOSTNAME="$HOST"
export TMP="/tmp"
export TEMP="/tmp"
export TMPDIR="/tmp"
export EDITOR="nvim"
export VISUAL="nvim"
2024-10-02 15:56:50 +02:00
if [[ "$(which bat 2> /dev/null)" ]]; then
export PAGER="bat"
else
export PAGER="less"
fi
2024-09-26 11:05:50 +02:00
# ----- history ----- #
export HISTFILE="$HOME/.zhistory"
export SAVEHIST="10000"
export HISTSIZE="10000"
export HISTTIMEFORMAT="%d.%m.%Y %H:%M:%S"
export HISTCONTROL="ignoredups"