37 lines
951 B
Bash
Executable file
37 lines
951 B
Bash
Executable file
#!/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"
|
|
if [[ "$(which bat 2> /dev/null)" ]]; then
|
|
export PAGER="bat"
|
|
else
|
|
export PAGER="less"
|
|
fi
|
|
|
|
# ----- history ----- #
|
|
export HISTFILE="$HOME/.zhistory"
|
|
export SAVEHIST="10000"
|
|
export HISTSIZE="10000"
|
|
export HISTTIMEFORMAT="%d.%m.%Y %H:%M:%S"
|
|
export HISTCONTROL="ignoredups"
|