-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc_linux
43 lines (36 loc) · 1.21 KB
/
.zshrc_linux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
# --- INTERACTIVITY CHECK ---
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# --- HISTORY SETTINGS ---
# Don't put duplicate lines or lines starting with space in the history.
setopt HIST_IGNORE_DUPS HIST_IGNORE_SPACE
# Append to the history file, don't overwrite it
setopt APPEND_HISTORY
# --- CHROOT IDENTIFICATION ---
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# --- TERMINAL AND DISPLAY SETTINGS ---
# Enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac