SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## Keybindings section
  2. bindkey -e
  3. bindkey '^[[7~' beginning-of-line                               # Home key
  4. bindkey '^[[H' beginning-of-line                                # Home key
  5. if [[ "${terminfo[khome]}" != "" ]]; then
  6.   bindkey "${terminfo[khome]}" beginning-of-line                # [Home] - Go to beginning of line
  7. fi
  8. bindkey '^[[8~' end-of-line                                     # End key
  9. bindkey '^[[F' end-of-line                                     # End key
  10. if [[ "${terminfo[kend]}" != "" ]]; then
  11.   bindkey "${terminfo[kend]}" end-of-line                       # [End] - Go to end of line
  12. fi
  13. bindkey '^[[2~' overwrite-mode                                  # Insert key
  14. bindkey '^[[3~' delete-char                                     # Delete key
  15. bindkey '^[[C'  forward-char                                    # Right key
  16. bindkey '^[[D'  backward-char                                   # Left key
  17. bindkey '^[[5~' history-beginning-search-backward               # Page up key
  18. bindkey '^[[6~' history-beginning-search-forward                # Page down key
  19.  
  20. # Navigate words with ctrl+arrow keys
  21. bindkey '^[Oc' forward-word                                     #
  22. bindkey '^[Od' backward-word                                    #
  23. bindkey '^[[1;5D' backward-word                                 #
  24. bindkey '^[[1;5C' forward-word                                  #
  25. bindkey '^H' backward-kill-word                                 # delete previous word with ctrl+backspace
  26. bindkey '^[[Z' undo                                             # Shift+tab undo last action
  27.  
  28. # Init completions
  29. autoload -U compinit
  30. compinit -d
  31.  
  32. # If you come from bash you might have to change your $PATH.
  33. export PATH=/usr/local/bin:$PATH
  34.  
  35. # Powerlevel theme settings
  36. POWERLEVEL9K_MODE='nerdfont-complete'
  37. POWERLEVEL9K_ALWAYS_SHOW_USER=true
  38. POWERLEVEL9K_COMMAND_EXECUTION_THRESHOLD=1
  39. POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=2
  40. POWERLEVEL9K_STATUS_CROSS=false
  41. POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
  42. POWERLEVEL9K_PROMPT_ON_NEWLINE=true
  43. POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context os_icon ssh root_indicator dir vcs)
  44. POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(virtualenv pyenv status command_execution_time)
  45.  
  46. POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
  47. POWERLEVEL9K_SHORTEN_STRATEGY="truncate_beginning"
  48. POWERLEVEL9K_SHOW_CHANGESET=true
  49. POWERLEVEL9K_CHANGESET_HASH_LENGTH=6
  50.  
  51. # Source the Powerlevel theme
  52. source /usr/share/zsh-theme-powerlevel9k/powerlevel9k.zsh-theme
  53.  
  54. # ZSH auto-suggestion
  55. source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
  56.  
  57. # ZSH history settings (taken from Oh-My-Zsh)
  58. source /usr/share/zsh/plugins/history/history.zsh
  59.  
  60. # Uncomment lines as needed
  61. # Source the Helm autocompletion script
  62. # source <(helm completion zsh)
  63.  
  64. # NVM
  65. # export NVM_DIR=~/.nvm
  66. # nvm_init() {
  67. #    source /usr/share/nvm/init-nvm.sh
  68. # }
  69.  
  70. # Pipenv
  71. # export PYENV_ROOT="$HOME/.pyenv"
  72. # export PIPENV_PYTHON="$PYENV_ROOT/shims/python"
  73. # export PIPENV_VENV_IN_PROJECT=1
  74.  
  75. # Pyenv
  76. # export PATH="$PYENV_ROOT/bin:$PATH"
  77. # if command -v pyenv 1>/dev/null 2>&1; then
  78. #   eval "$(pyenv init -)"
  79. # fi
  80.  
  81. # Go
  82. # export GOPATH="$HOME/go"
  83. # export GOBIN="$GOPATH/bin"
  84. # export PATH=$GOBIN:$PATH
  85.  
  86. # Cargo -- for RUST
  87. # export PATH="$HOME/.cargo/bin:$PATH"
  88.  
  89. # kubectl
  90. # export KUBECONFIG=$HOME/.kube/config
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top