Created
July 18, 2021 18:36
-
-
Save chaichontat/3d548d5b938292a4d1727b25fab8de49 to your computer and use it in GitHub Desktop.
.zshrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
| # Initialization code that may require console input (password prompts, [y/n] | |
| # confirmations, etc.) must go above this block; everything else may go below. | |
| if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
| source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
| fi | |
| export LANG='en_US.UTF-8' | |
| export LANGUAGE='en_US:en' | |
| export LC_ALL='en_US.UTF-8' | |
| export TERM=xterm | |
| ##### Zsh/Oh-my-Zsh Configuration | |
| export ZSH="/root/.oh-my-zsh" | |
| ZSH_THEME="powerlevel10k/powerlevel10k" | |
| plugins=(git vi-mode zsh-autosuggestions zsh-completions zsh-syntax-highlighting last-working-dir history-substring-search sudo z ) | |
| source $ZSH/oh-my-zsh.sh | |
| POWERLEVEL9K_SHORTEN_STRATEGY="truncate_to_last" | |
| POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(user dir vcs status) | |
| POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=() | |
| POWERLEVEL9K_STATUS_OK=false | |
| POWERLEVEL9K_STATUS_CROSS=true | |
| [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment