More zshrc tweaks
This commit is contained in:
parent
d9a3ceae4a
commit
83f263ff68
20
home/.zshrc
20
home/.zshrc
|
@ -5,9 +5,15 @@
|
||||||
# Updated: 2015-07-07
|
# Updated: 2015-07-07
|
||||||
###
|
###
|
||||||
|
|
||||||
export LANG=en_US.UTF-8 # Unicode
|
export LANG=en_US.UTF-8 # Unicode
|
||||||
setopt prompt_subst # Allow for dynamic prompts
|
setopt prompt_subst # Allow for dynamic prompts
|
||||||
autoload -U colors && colors # Get color aliases
|
autoload -U colors && colors # Get color aliases
|
||||||
|
autoload -U compinit && compinit # Better tab completion
|
||||||
|
export HISTSIZE=2000 # History settings
|
||||||
|
export HISTFILE="$HOME/.history"
|
||||||
|
export SAVEHIST=$HISTSIZE
|
||||||
|
setopt hist_ignore_all_dups
|
||||||
|
setopt hist_ignore_space
|
||||||
|
|
||||||
# 256 colors
|
# 256 colors
|
||||||
[[ "$TERM" == "xterm" ]] && export TERM=xterm-256color
|
[[ "$TERM" == "xterm" ]] && export TERM=xterm-256color
|
||||||
|
@ -66,6 +72,14 @@ local base_prompt="${base_prompt}${git_prompt}"
|
||||||
# End the base prompt
|
# End the base prompt
|
||||||
local base_prompt="${base_prompt}%{$blue%}]%# %{%f%}"
|
local base_prompt="${base_prompt}%{$blue%}]%# %{%f%}"
|
||||||
|
|
||||||
|
###
|
||||||
|
# Set terminal titles automatically
|
||||||
|
###
|
||||||
|
|
||||||
|
precmd() {
|
||||||
|
print -Pn "\e]0;%n@${PROMPT_HOSTNAME}:%~\a"
|
||||||
|
}
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# zsh plugins #
|
# zsh plugins #
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
Loading…
Reference in New Issue
Block a user