Guest User

Untitled

a guest
Jun 25th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.08 KB | None | 0 0
  1. #History options:
  2. HISTFILE=~/.histfile
  3. HISTSIZE=100000
  4. SAVEHIST=100000
  5. setopt hist_ignore_space
  6. setopt hist_ignore_all_dups
  7.  
  8. # Options
  9. setopt extendedglob
  10. setopt correctall
  11. setopt promptsubst
  12. setopt completealiases
  13. setopt listambiguous
  14.  
  15. # Keybinds
  16. bindkey -e
  17.  
  18. # Completion
  19. zstyle :compinstall filename '/home/dane/.zshrc'
  20. autoload -Uz compinit && compinit
  21. zstyle ':completion:*' use-cache on
  22. zstyle ':completion:*' cache-path ~/.zsh/cache
  23. zstyle -e ':completion:*:approximate:*' max-errors 'reply=( $(( ($#PREFIX + $#SUFFIX) / 3 )) )'
  24. zstyle ':completion:*:descriptions' format "- %d -"
  25. zstyle ':completion:*:corrections' format "- %d - (errors %e})"
  26. zstyle ':completion:*:default' list-prompt '%S%M matches%s'
  27. zstyle ':completion:*' group-name ''
  28. zstyle ':completion:*:manuals' separate-sections true
  29. zstyle ':completion:*:manuals.(^1*)' insert-sections true
  30. zstyle ':completion:*' menu select
  31. zstyle ':completion:*' verbose yes
  32. zstyle ':completion:*' accept-exact '*(N)' # Speed up path compl
  33. eval $(dircolors)
  34. zstyle ':completion:*' list-colors "${(@s.:.)LS_COLORS}"
  35.  
  36. # Aliases
  37. alias rm='rm -i'
  38. alias cp='cp -i'
  39. alias mv='mv -i'
  40. alias ls='ls -F --color=auto'
  41. alias ll='ls -lhF'
  42. alias grep='grep --color=auto'
  43. alias egrep='egrep --color=auto'
  44. alias fgrep='fgrep --color=auto'
  45. alias vi='vim'
  46. alias less='less -S'
  47. export EDITOR=vim
  48. export PAGER=less
  49.  
  50. # Sensible keybinds
  51. bindkey "\e[1~" beginning-of-line # Home
  52. bindkey "\e[4~" end-of-line # End
  53. bindkey "\e[5~" beginning-of-history # PageUp
  54. bindkey "\e[6~" end-of-history # PageDown
  55. bindkey "\e[2~" quoted-insert # Ins
  56. bindkey "\e[3~" delete-char # Del
  57. bindkey "\e[5C" forward-word
  58. bindkey "\eOc" emacs-forward-word
  59. bindkey "\e[5D" backward-word
  60. bindkey "\eOd" emacs-backward-word
  61. bindkey "\e\e[C" forward-word
  62. bindkey "\e\e[D" backward-word
  63. bindkey "\e[Z" reverse-menu-complete # Shift+Tab
  64.  
  65. # Prompt options
  66. autoload -U promptinit && promptinit
  67. autoload -U colors && colors
  68.  
  69. export PROMPT="[%{$fg[yellow]%}%*%{$reset_color%} %{$fg[green]%}%n@%m%{$reset_color%} %{$fg[cyan]%}%15<...<%~%<<%{$reset_color%}]%# "
Add Comment
Please, Sign In to add comment