enhance methodology, import settings
This commit is contained in:
parent
b576639b95
commit
2a6982a14b
1 changed files with 38 additions and 8 deletions
46
zshrc
46
zshrc
|
|
@ -2,9 +2,42 @@
|
||||||
# ~/.zshrc
|
# ~/.zshrc
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# history
|
||||||
|
setopt appendhistory extendedhistory sharehistory
|
||||||
|
setopt histignoredups histignorespace
|
||||||
|
HISTSIZE=1000
|
||||||
|
SAVEHIST=2000
|
||||||
|
HISTFILE=~/.zsh_history
|
||||||
|
|
||||||
|
PATH=$PATH:$HOME/.local/bin:$HOME/bin
|
||||||
|
export PATH
|
||||||
|
|
||||||
|
# If not running interactively, don't do anything else
|
||||||
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
# User specific aliases and functions
|
# User specific aliases and functions
|
||||||
|
alias history="fc -li"
|
||||||
[ -f "${HOME}/.zshrc_local" ] && source "${HOME}/.zshrc_local"
|
[ -f "${HOME}/.zshrc_local" ] && source "${HOME}/.zshrc_local"
|
||||||
|
|
||||||
|
# stop quotes around ls which coreutils introduced
|
||||||
|
export QUOTING_STYLE=literal
|
||||||
|
|
||||||
|
# stop GTK3 disappearing scrollbars
|
||||||
|
export GTK_OVERLAY_SCROLLING=0
|
||||||
|
|
||||||
|
# Libreoffice
|
||||||
|
export SAL_USE_VCLPLUGIN=gtk
|
||||||
|
|
||||||
|
# this messes up git commits via cmdline
|
||||||
|
unset SSH_ASKPASS
|
||||||
|
|
||||||
|
# mate-terminal is hard coded to 'xterm'
|
||||||
|
if [[ "X${DESKTOP_SESSION}" == "Xmate" ]] || \
|
||||||
|
[[ "X${XDG_DESKTOP_SESSION}" == "Xmate" ]]; then
|
||||||
|
export TERM=xterm-256color
|
||||||
|
fi
|
||||||
|
|
||||||
|
# prompt
|
||||||
#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;;
|
||||||
|
|
@ -40,14 +73,6 @@ PS3='#? '
|
||||||
PS4='+ '
|
PS4='+ '
|
||||||
unset color_prompt force_color_prompt
|
unset color_prompt force_color_prompt
|
||||||
|
|
||||||
# history
|
|
||||||
setopt appendhistory extendedhistory sharehistory
|
|
||||||
setopt histignoredups histignorespace
|
|
||||||
alias history="fc -li"
|
|
||||||
HISTSIZE=1000
|
|
||||||
SAVEHIST=2000
|
|
||||||
HISTFILE=~/.zsh_history
|
|
||||||
|
|
||||||
# completion system
|
# completion system
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
compinit
|
compinit
|
||||||
|
|
@ -64,3 +89,8 @@ zstyle ':completion:*' group-name ''
|
||||||
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
||||||
zstyle ':completion:*' list-colors ''
|
zstyle ':completion:*' list-colors ''
|
||||||
zstyle ':completion:*' use-compctl false
|
zstyle ':completion:*' use-compctl false
|
||||||
|
|
||||||
|
# general
|
||||||
|
BC_ENV_ARGS="-l -q"
|
||||||
|
MOZ_DISABLE_PANGO=1
|
||||||
|
export PS1 PS2 PS3 PS4 BC_ENV_ARGS MOZ_DISABLE_PANGO
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue