include local aliases, refine history
This commit is contained in:
parent
38dac15c9a
commit
a2b3754073
1 changed files with 9 additions and 3 deletions
12
zshrc
12
zshrc
|
|
@ -1,6 +1,10 @@
|
||||||
# .zshrc
|
#
|
||||||
|
# ~/.zshrc
|
||||||
|
#
|
||||||
|
|
||||||
|
# User specific aliases and functions
|
||||||
|
[ -f "${HOME}/.zshrc_local" ] && source "${HOME}/.zshrc_local"
|
||||||
|
|
||||||
## Debian style bashrc prompts and color setup
|
|
||||||
#force_color_prompt=yes
|
#force_color_prompt=yes
|
||||||
case "$TERM" in
|
case "$TERM" in
|
||||||
xterm-color|*-256color) color_prompt=yes;;
|
xterm-color|*-256color) color_prompt=yes;;
|
||||||
|
|
@ -37,7 +41,9 @@ PS4='+ '
|
||||||
unset color_prompt force_color_prompt
|
unset color_prompt force_color_prompt
|
||||||
|
|
||||||
# history
|
# history
|
||||||
setopt histignoredups histignorespace appendhistory sharehistory
|
setopt appendhistory extendedhistory sharehistory
|
||||||
|
setopt histignoredups histignorespace
|
||||||
|
alias history="fc -li"
|
||||||
HISTSIZE=1000
|
HISTSIZE=1000
|
||||||
SAVEHIST=2000
|
SAVEHIST=2000
|
||||||
HISTFILE=~/.zsh_history
|
HISTFILE=~/.zsh_history
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue