Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. # Set up the prompt
  2.  
  3. autoload -Uz promptinit
  4. promptinit
  5. prompt adam1
  6.  
  7. setopt histignorealldups sharehistory
  8.  
  9. # Use emacs keybindings even if our EDITOR is set to vi
  10. bindkey -e
  11.  
  12. # Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
  13. HISTSIZE=1000
  14. SAVEHIST=1000
  15. HISTFILE=~/.zsh_history
  16.  
  17. # Use modern completion system
  18. autoload -Uz compinit
  19. compinit
  20.  
  21. zstyle ':completion:*' auto-description 'specify: %d'
  22. zstyle ':completion:*' completer _expand _complete _correct _approximate
  23. zstyle ':completion:*' format 'Completing %d'
  24. zstyle ':completion:*' group-name ''
  25. zstyle ':completion:*' menu select=2
  26. eval "$(dircolors -b)"
  27. zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
  28. zstyle ':completion:*' list-colors ''
  29. zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
  30. zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
  31. zstyle ':completion:*' menu select=long
  32. zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
  33. zstyle ':completion:*' use-compctl false
  34. zstyle ':completion:*' verbose true
  35.  
  36. zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
  37. zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
  38. source ~/powerlevel10k/powerlevel10k.zsh-theme
  39.  
  40. # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
  41. [[ -f ~/.p10k.zsh ]] && source ~/.p10k.zsh
  42.  
  43. bindkey "^_" backward-kill-word
  44. bindkey "^[[3;5~" kill-word
  45. bindkey "^[[1;5C" forward-word
  46. bindkey "^[[1;5D" backward-word
  47.  
  48. if [[ "${terminfo[kcuu1]}" != "" ]]; then
  49. autoload -U up-line-or-beginning-search
  50. zle -N up-line-or-beginning-search
  51. bindkey "${terminfo[kcuu1]}" up-line-or-beginning-search
  52. fi
  53.  
  54. if [[ "${terminfo[kcud1]}" != "" ]]; then
  55. autoload -U down-line-or-beginning-search
  56. zle -N down-line-or-beginning-search
  57. bindkey "${terminfo[kcud1]}" down-line-or-beginning-search
  58. fi
  59.  
  60. k() {
  61. kubectl $@
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement