aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shellrc6
-rw-r--r--zshrc12
2 files changed, 11 insertions, 7 deletions
diff --git a/shellrc b/shellrc
index d614f50..ab68f31 100644
--- a/shellrc
+++ b/shellrc
@@ -4,10 +4,6 @@
export PATH=.local/bin:$PATH:$(ruby -e "print Gem.user_dir")/bin
export EDITOR=vim
-alias debian='ssh debian'
-alias turris='ssh turris'
-alias omnia='ssh omnia'
-
alias ls='ls --color=auto'
alias ll='ls -l'
eval $(dircolors -b)
@@ -18,7 +14,7 @@ alias cgdb='cgdb -q'
alias octave='octave-cli -q'
alias ssh='TERM="xterm-256color" ssh'
alias feh='feh -.'
-alias make='make -j8'
+alias make='make -j 8'
export LESS=-R
export LESS_TERMCAP_mb=$'\E[1;31m'
diff --git a/zshrc b/zshrc
index 1e8b346..276e26f 100644
--- a/zshrc
+++ b/zshrc
@@ -1,5 +1,13 @@
+zstyle ':completion:*' completer _expand _complete _ignored _approximate
+zstyle ':completion:*' insert-unambiguous true
+zstyle ':completion:*' max-errors 3
+zstyle ':completion:*' use-cache on
+zstyle ':completion:*' cache-path ~/.cache/zsh
+zstyle :compinstall filename '/home/kkoci/.zshrc'
+zstyle -e ':completion:*:default' list-colors 'reply=("${PREFIX:+=(#bi)($PREFIX:t)(?)*==32=33}:${(s.:.)LS_COLORS}")'
+zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
+
autoload -Uz compinit && compinit
-autoload -Uz promptinit && promptinit
autoload -Uz colors && colors
HISTFILE=~/.histfile
@@ -29,7 +37,7 @@ annoyme_check() {
}
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
PROMPT="%(?..%{$fg_bold[yellow]%}EXIT: %?
-)\$(annoyme_check)%{$fg_bold[$NCOLOR]%}%n@%m:%{$fg_bold[blue]%}%~%{$fg_bold[$NCOLOR]%}%(!.#.$)%{$reset_color%} "
+)\$(annoyme_check)%{$fg_bold[$NCOLOR]%}%n@%m:%{$fg_bold[blue]%}%1~%{$fg_bold[$NCOLOR]%}%(!.#.$)%{$reset_color%} "
if [ -e ~/.local/git-prompt.sh ]; then
source ~/.local/git-prompt.sh