aboutsummaryrefslogtreecommitdiff
path: root/Shell
diff options
context:
space:
mode:
authorVasil Zlatanov <vasil.zlatanov@gmail.com>2016-04-13 12:36:21 +0100
committerVasil Zlatanov <vasil.zlatanov@gmail.com>2016-04-13 12:36:21 +0100
commit68650557971bb48232ecc0777e9a789f6ecf8104 (patch)
tree25255ab2ed5629855201d17cb8710bfe6bf718b8 /Shell
parent704948f95211033881e1b80acc03c9c9dff84e71 (diff)
downloaddotfiles-68650557971bb48232ecc0777e9a789f6ecf8104.tar.gz
dotfiles-68650557971bb48232ecc0777e9a789f6ecf8104.tar.bz2
dotfiles-68650557971bb48232ecc0777e9a789f6ecf8104.zip
null
Diffstat (limited to 'Shell')
-rw-r--r--Shell/bashrc4
-rw-r--r--Shell/zshrc22
2 files changed, 22 insertions, 4 deletions
diff --git a/Shell/bashrc b/Shell/bashrc
index fed088c..abe85a8 100644
--- a/Shell/bashrc
+++ b/Shell/bashrc
@@ -76,8 +76,8 @@ esac
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 dir='dir --color=auto'
+ alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
diff --git a/Shell/zshrc b/Shell/zshrc
index 473415a..9c3e9be 100644
--- a/Shell/zshrc
+++ b/Shell/zshrc
@@ -4,7 +4,7 @@ HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory autocd extendedglob correct
unsetopt beep
-#bindkey -v
+bindkey -e
zstyle ':completion:*' menu select
#zstyle ':completion:*' format '%BCompleting %d%b'
# End of lines configured by zsh-newuser-install
@@ -32,9 +32,27 @@ PROMPT="%{$fg_no_bold[yellow]%}%1~ %{$reset_color%}☢ "
RPROMPT="[%{$fg_no_bold[yellow]%}%?%{$reset_color%}]"
-#Enable highlightling like fish
+#Enable highlightling and completion like fish
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
+ZSH_AUTOSUGGEST_STRATEGY=match_prev_cmd
+source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
+bindkey -M emacs '^P' history-substring-search-up
+bindkey -M emacs '^N' history-substring-search-down
+
+zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
+
+# 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
#fortune -s | cowsay -f $(ls /usr/share/cows/ | shuf -n1)