-ufetch
+fastfetch
autoload -U colors && colors
setopt PROMPT_SUBST
export XDG_CONFIG_HOME="/home/ale/.config"
export XDG_CACHE_HOME="/home/ale/.cache"
export XDG_DATA_HOME="/home/ale/.local/share"
export XDG_STATE_HOME="/home/ale/.local/state"
+export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin:/mbin"
+
+# Prompt String 1
+if [[ $TERM == "linux" ]]; then
+ bkg="yellow"
+ nam="yellow"
+ hst="blue"
+ tme="white"
+else
+ bkg="#f66600"
+ nam="#0066f6"
+ hst="#00f666"
+ tme="#6600f6"
+fi
preexec() {
typeset -gi CALCTIME=1
typeset -gi CMDSTARTTIME=SECONDS
typeset -gi ETIME=SECONDS-CMDSTARTTIME
fi
typeset -gi CALCTIME=0
- print -rP "%K{yellow}%B%F{yellow}%n%b%f%F{4}@%M %f%k%S%/%s"
+ print -rP "%K{$bkg}%B%F{$nam}%n%b%f%F{$hst}@%M %f%k%S%/%s"
}
-PS1='%K{3}%F{0}%T - %f%k%# '
-RPS1=' [${ETIME}]%(?.%F{green}√.%F{red}?%?)%f'
+PS1='%K{$bkg}%F{$tme}%B $(/mbin/tiempo -s) %b%f%k%# '
+RPS1=' [$ETIME]%(?.%F{green}√.%F{red}?%?)%f'
-# History en directorio de cache:
+# Historial en directorio de cache
HISTSIZE=10000000
SAVEHIST=10000000
HISTFILE=$XDG_CACHE_HOME/zsh/hist
-# Basic auto/tab complete:
+# Autocompletar con TAB
autoload -U compinit
zstyle ':completion:*' menu select
zmodload zsh/complist