home/.zshrc

50 lines
1.1 KiB
Bash
Raw Normal View History

# History settings
HISTSIZE=100000
SAVEHIST=100000
HISTFILE=~/.zsh_history
2015-06-24 22:17:56 +02:00
2025-07-23 00:14:57 +02:00
# Source some global/public stuff
source ~/.env
2015-06-24 22:17:56 +02:00
2025-07-23 00:14:57 +02:00
# Source some private stuff or custom things that are different on my systems
source ~/.penv
# Do some exports!
source ~/.zsh/exports.sh
# Load Oh-my-Zsh
source ~/.zsh/oh-my-zsh.sh
2015-08-14 05:10:44 +02:00
# I use xterm and this sets a nice title with hostname and cwd in it.
case $TERM in
linux)
export TERM=linux
precmd () {print -Pn "\e]0;%n@%m: %~\a"}
;;
2015-06-27 23:22:54 +02:00
xterm*)
2015-06-27 23:08:27 +02:00
export TERM=xterm-256color
precmd () {print -Pn "\e]0;%n@%m: %~\a"}
;;
screen)
export TERM=screen-256color
precmd () {print -Pn "\e]0;%n@%m: %~\a"}
;;
esac
2016-06-16 02:11:20 +02:00
2025-07-23 00:14:57 +02:00
# Obsolete?
#if [ -f /usr/bin/shellpic ]; then
# if [ -f ~/images/tux.png ]; then
# /usr/bin/shellpic --shell24 --scale-x 50 ~/images/tux.png
# fi
#fi
2016-06-16 02:11:20 +02:00
2025-07-23 00:14:57 +02:00
# Obsolete?
2020-05-01 20:31:48 +02:00
#source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
2020-04-28 19:46:37 +02:00
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
2020-05-01 20:31:48 +02:00
#[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
2025-07-22 23:13:38 +02:00
# Source some functions
for function in ~/.zsh/functions.d/*.sh; do
source $function
done