From Sludgy Parrot, 4 Weeks ago, written in Plain Text.
  1. # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
  2. # Initialization code that may require console input (password prompts, [y/n]
  3. # confirmations, etc.) must go above this block; everything else may go below.
  4. if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
  5.   source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
  6. fi
  7.  
  8. if [[ -z $DISPLAY ]] && [[ $TTY = /dev/tty1 ]];
  9. then
  10.         exec startx;
  11. fi
  12.  
  13. # If you come from bash you might have to change your $PATH.
  14. # export PATH=$HOME/bin:/usr/local/bin:$PATH
  15.  
  16. # Path to your oh-my-zsh installation.
  17. ZSH=/usr/share/oh-my-zsh/
  18.  
  19. # Set name of the theme to load --- if set to "random", it will
  20. # load a random theme each time oh-my-zsh is loaded, in which case,
  21. # to know which specific one was loaded, run: echo $RANDOM_THEME
  22. # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
  23. ZSH_THEME="robbyrussell"
  24.  
  25. # Set list of themes to pick from when loading at random
  26. # Setting this variable when ZSH_THEME=random will cause zsh to load
  27. # a theme from this variable instead of looking in $ZSH/themes/
  28. # If set to an empty array, this variable will have no effect.
  29. # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
  30.  
  31. # Uncomment the following line to use case-sensitive completion.
  32. # CASE_SENSITIVE="true"
  33.  
  34. # Uncomment the following line to use hyphen-insensitive completion.
  35. # Case-sensitive completion must be off. _ and - will be interchangeable.
  36. # HYPHEN_INSENSITIVE="true"
  37.  
  38. # Uncomment the following line to disable bi-weekly auto-update checks.
  39. DISABLE_AUTO_UPDATE="true"
  40.  
  41. # Uncomment the following line to automatically update without prompting.
  42. # DISABLE_UPDATE_PROMPT="true"
  43.  
  44. # Uncomment the following line to change how often to auto-update (in days).
  45. # export UPDATE_ZSH_DAYS=13
  46.  
  47. # Uncomment the following line if pasting URLs and other text is messed up.
  48. # DISABLE_MAGIC_FUNCTIONS=true
  49.  
  50. # Uncomment the following line to disable colors in ls.
  51. # DISABLE_LS_COLORS="true"
  52.  
  53. # Uncomment the following line to disable auto-setting terminal title.
  54. # DISABLE_AUTO_TITLE="true"
  55.  
  56. # Uncomment the following line to enable command auto-correction.
  57. # ENABLE_CORRECTION="true"
  58.  
  59. # Uncomment the following line to display red dots whilst waiting for completion.
  60. # COMPLETION_WAITING_DOTS="true"
  61.  
  62. # Uncomment the following line if you want to disable marking untracked files
  63. # under VCS as dirty. This makes repository status check for large repositories
  64. # much, much faster.
  65. # DISABLE_UNTRACKED_FILES_DIRTY="true"
  66.  
  67. # Uncomment the following line if you want to change the command execution time
  68. # stamp shown in the history command output.
  69. # You can set one of the optional three formats:
  70. # "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
  71. # or set a custom format using the strftime function format specifications,
  72. # see 'man strftime' for details.
  73. # HIST_STAMPS="mm/dd/yyyy"
  74.  
  75. # Would you like to use another custom folder than $ZSH/custom?
  76. # ZSH_CUSTOM=/path/to/new-custom-folder
  77.  
  78. # Which plugins would you like to load?
  79. # Standard plugins can be found in $ZSH/plugins/
  80. # Custom plugins may be added to $ZSH_CUSTOM/plugins/
  81. # Example format: plugins=(rails git textmate ruby lighthouse)
  82. # Add wisely, as too many plugins slow down shell startup.
  83. plugins=(git)
  84.  
  85.  
  86. # User configuration
  87.  
  88. # export MANPATH="/usr/local/man:$MANPATH"
  89.  
  90. # You may need to manually set your language environment
  91. # export LANG=en_US.UTF-8
  92.  
  93. # Preferred editor for local and remote sessions
  94. # if [[ -n $SSH_CONNECTION ]]; then
  95. #   export EDITOR='vim'
  96. # else
  97. #   export EDITOR='mvim'
  98. # fi
  99.  
  100. # Compilation flags
  101. # export ARCHFLAGS="-arch x86_64"
  102.  
  103. # Set personal aliases, overriding those provided by oh-my-zsh libs,
  104. # plugins, and themes. Aliases can be placed here, though oh-my-zsh
  105. # users are encouraged to define aliases within the ZSH_CUSTOM folder.
  106. # For a full list of active aliases, run `alias`.
  107. #
  108. # Example aliases
  109. # alias zshconfig="mate ~/.zshrc"
  110. # alias ohmyzsh="mate ~/.oh-my-zsh"
  111.  
  112. ZSH_CACHE_DIR=$HOME/.cache/oh-my-zsh
  113. if [[ ! -d $ZSH_CACHE_DIR ]]; then
  114.   mkdir $ZSH_CACHE_DIR
  115. fi
  116.  
  117. source $ZSH/oh-my-zsh.sh
  118. source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
  119.  
  120. # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
  121. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
  122.  
captcha