cleaning stuff
This commit is contained in:
parent
be8dadac9d
commit
89ece070d5
2 changed files with 13 additions and 12 deletions
|
@ -1,7 +1,3 @@
|
||||||
if [ -d "$HOME/bin" ]; then
|
|
||||||
export PATH="$PATH:$HOME/bin"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# pip zsh completion start
|
# pip zsh completion start
|
||||||
function _pip_completion {
|
function _pip_completion {
|
||||||
local words cword
|
local words cword
|
||||||
|
|
21
.zshrc
21
.zshrc
|
@ -1,10 +1,12 @@
|
||||||
HISTFILE=~/.zsh_history
|
export HISTFILE=~/.zsh_history
|
||||||
HISTSIZE=1000
|
export HISTSIZE=1000
|
||||||
SAVEHIST=1000
|
export SAVEHIST=1000
|
||||||
CLICOLOR=1
|
export CLICOLOR=1
|
||||||
export EDITOR='emacs'
|
export EDITOR='emacs'
|
||||||
export PAGER='less'
|
export PAGER='less'
|
||||||
export USER_NICKNAME="Rodolphe Breard"
|
export USER_NICKNAME="Rodolphe Breard"
|
||||||
|
export PATH="$PATH:$HOME/bin"
|
||||||
|
|
||||||
|
|
||||||
setopt nobeep appendhistory histignoredups histignorespace autocd extendedglob nomatch notify correct_all
|
setopt nobeep appendhistory histignoredups histignorespace autocd extendedglob nomatch notify correct_all
|
||||||
bindkey -e
|
bindkey -e
|
||||||
|
@ -23,8 +25,11 @@ elif [ -f "$HOME/liquidprompt/liquidprompt" ]; then
|
||||||
unset PROMPT_COMMAND
|
unset PROMPT_COMMAND
|
||||||
source "$HOME/liquidprompt/liquidprompt"
|
source "$HOME/liquidprompt/liquidprompt"
|
||||||
else
|
else
|
||||||
PS1="\[\033[01;31m\]\u\[\033[01;37m\]@\[\033[01;33m\]\h\[\033[01;31m\]->\[\033[00m\] "
|
if [ "$CLICOLOR" -ne 0 ]; then
|
||||||
#PS1='\u@\h-> '
|
PS1="\[\033[01;31m\]\u\[\033[01;37m\]@\[\033[01;33m\]\h\[\033[01;31m\]->\[\033[00m\] "
|
||||||
|
else
|
||||||
|
PS1='\u@\h-> '
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Syntax-highlighting
|
# Syntax-highlighting
|
||||||
|
@ -36,9 +41,9 @@ fi
|
||||||
if [ "$(uname -s | tr '[:upper:]' '[:lower:]')" = 'linux' ]; then
|
if [ "$(uname -s | tr '[:upper:]' '[:lower:]')" = 'linux' ]; then
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
fi
|
fi
|
||||||
alias ll='ls -lih'
|
alias ll='ls -lihF'
|
||||||
alias la='ls -A'
|
alias la='ls -A'
|
||||||
alias l='ls -lihA'
|
alias l='ll -A'
|
||||||
|
|
||||||
alias sudo='sudo '
|
alias sudo='sudo '
|
||||||
alias grep='grep -n --color=auto'
|
alias grep='grep -n --color=auto'
|
||||||
|
|
Loading…
Reference in a new issue