Last active
November 10, 2022 16:49
-
-
Save mayakrunal/58033c5c185711e89055ea558499d82e to your computer and use it in GitHub Desktop.
arch_linux
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
# | |
# ~/.bash_profile | |
# | |
[[ -f ~/.bashrc ]] && . ~/.bashrc | |
export MANGOHUD=1 | |
export MANGOHUD_DLSYM=1 |
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
# Generated by Powerlevel10k configuration wizard on 2022-10-07 at 16:21 CST. | |
# Based on romkatv/powerlevel10k/config/p10k-lean.zsh, checksum 09862. | |
# Wizard options: nerdfont-complete + powerline, small icons, unicode, lean, 12h time, | |
# 2 lines, dotted, left frame, dark-ornaments, sparse, many icons, fluent, | |
# transient_prompt, instant_prompt=verbose. | |
# Type `p10k configure` to generate another config. | |
# | |
# Config for Powerlevel10k with lean prompt style. Type `p10k configure` to generate | |
# your own config based on it. | |
# | |
# Tip: Looking for a nice color? Here's a one-liner to print colormap. | |
# | |
# for i in {0..255}; do print -Pn "%K{$i} %k%F{$i}${(l:3::0:)i}%f " ${${(M)$((i%6)):#3}:+$'\n'}; done | |
# Temporarily change options. | |
'builtin' 'local' '-a' 'p10k_config_opts' | |
[[ ! -o 'aliases' ]] || p10k_config_opts+=('aliases') | |
[[ ! -o 'sh_glob' ]] || p10k_config_opts+=('sh_glob') | |
[[ ! -o 'no_brace_expand' ]] || p10k_config_opts+=('no_brace_expand') | |
'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand' | |
() { | |
emulate -L zsh -o extended_glob | |
# Unset all configuration options. This allows you to apply configuration changes without | |
# restarting zsh. Edit ~/.p10k.zsh and type `source ~/.p10k.zsh`. | |
unset -m '(POWERLEVEL9K_*|DEFAULT_USER)~POWERLEVEL9K_GITSTATUS_DIR' | |
# Zsh >= 5.1 is required. | |
[[ $ZSH_VERSION == (5.<1->*|<6->.*) ]] || return | |
# The list of segments shown on the left. Fill it with the most important segments. | |
typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( | |
# =========================[ Line #1 ]========================= | |
os_icon # os identifier | |
dir # current directory | |
vcs # git status | |
# =========================[ Line #2 ]========================= | |
newline # \n | |
prompt_char # prompt symbol | |
) | |
# The list of segments shown on the right. Fill it with less important segments. | |
# Right prompt on the last prompt line (where you are typing your commands) gets | |
# automatically hidden when the input line reaches it. Right prompt above the | |
# last prompt line gets hidden if it would overlap with left prompt. | |
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=( | |
# =========================[ Line #1 ]========================= | |
status # exit code of the last command | |
command_execution_time # duration of the last command | |
background_jobs # presence of background jobs | |
direnv # direnv status (https://direnv.net/) | |
asdf # asdf version manager (https://github.com/asdf-vm/asdf) | |
virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html) | |
anaconda # conda environment (https://conda.io/) | |
pyenv # python environment (https://github.com/pyenv/pyenv) | |
goenv # go environment (https://github.com/syndbg/goenv) | |
nodenv # node.js version from nodenv (https://github.com/nodenv/nodenv) | |
nvm # node.js version from nvm (https://github.com/nvm-sh/nvm) | |
nodeenv # node.js environment (https://github.com/ekalinin/nodeenv) | |
# node_version # node.js version | |
# go_version # go version (https://golang.org) | |
# rust_version # rustc version (https://www.rust-lang.org) | |
# dotnet_version # .NET version (https://dotnet.microsoft.com) | |
# php_version # php version (https://www.php.net/) | |
# laravel_version # laravel php framework version (https://laravel.com/) | |
# java_version # java version (https://www.java.com/) | |
# package # name@version from package.json (https://docs.npmjs.com/files/package.json) | |
rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv) | |
rvm # ruby version from rvm (https://rvm.io) | |
fvm # flutter version management (https://github.com/leoafarias/fvm) | |
luaenv # lua version from luaenv (https://github.com/cehoffman/luaenv) | |
jenv # java version from jenv (https://github.com/jenv/jenv) | |
plenv # perl version from plenv (https://github.com/tokuhirom/plenv) | |
perlbrew # perl version from perlbrew (https://github.com/gugod/App-perlbrew) | |
phpenv # php version from phpenv (https://github.com/phpenv/phpenv) | |
scalaenv # scala version from scalaenv (https://github.com/scalaenv/scalaenv) | |
haskell_stack # haskell version from stack (https://haskellstack.org/) | |
kubecontext # current kubernetes context (https://kubernetes.io/) | |
terraform # terraform workspace (https://www.terraform.io) | |
# terraform_version # terraform version (https://www.terraform.io) | |
aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) | |
aws_eb_env # aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/) | |
azure # azure account name (https://docs.microsoft.com/en-us/cli/azure) | |
gcloud # google cloud cli account and project (https://cloud.google.com/) | |
google_app_cred # google application credentials (https://cloud.google.com/docs/authentication/production) | |
toolbox # toolbox name (https://github.com/containers/toolbox) | |
context # user@hostname | |
nordvpn # nordvpn connection status, linux only (https://nordvpn.com/) | |
ranger # ranger shell (https://github.com/ranger/ranger) | |
nnn # nnn shell (https://github.com/jarun/nnn) | |
xplr # xplr shell (https://github.com/sayanarijit/xplr) | |
vim_shell # vim shell indicator (:sh) | |
midnight_commander # midnight commander shell (https://midnight-commander.org/) | |
nix_shell # nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html) | |
# vpn_ip # virtual private network indicator | |
# load # CPU load | |
# disk_usage # disk usage | |
ram # free RAM | |
# swap # used swap | |
todo # todo items (https://github.com/todotxt/todo.txt-cli) | |
timewarrior # timewarrior tracking status (https://timewarrior.net/) | |
taskwarrior # taskwarrior task count (https://taskwarrior.org/) | |
time # current time | |
# =========================[ Line #2 ]========================= | |
newline | |
# ip # ip address and bandwidth usage for a specified network interface | |
# public_ip # public IP address | |
# proxy # system-wide http/https/ftp proxy | |
# battery # internal battery | |
# wifi # wifi speed | |
# example # example user-defined segment (see prompt_example function below) | |
) | |
# Defines character set used by powerlevel10k. It's best to let `p10k configure` set it for you. | |
typeset -g POWERLEVEL9K_MODE=nerdfont-complete | |
# When set to `moderate`, some icons will have an extra space after them. This is meant to avoid | |
# icon overlap when using non-monospace fonts. When set to `none`, spaces are not added. | |
typeset -g POWERLEVEL9K_ICON_PADDING=none | |
# Basic style options that define the overall look of your prompt. You probably don't want to | |
# change them. | |
typeset -g POWERLEVEL9K_BACKGROUND= # transparent background | |
typeset -g POWERLEVEL9K_{LEFT,RIGHT}_{LEFT,RIGHT}_WHITESPACE= # no surrounding whitespace | |
typeset -g POWERLEVEL9K_{LEFT,RIGHT}_SUBSEGMENT_SEPARATOR=' ' # separate segments with a space | |
typeset -g POWERLEVEL9K_{LEFT,RIGHT}_SEGMENT_SEPARATOR= # no end-of-line symbol | |
# When set to true, icons appear before content on both sides of the prompt. When set | |
# to false, icons go after content. If empty or not set, icons go before content in the left | |
# prompt and after content in the right prompt. | |
# | |
# You can also override it for a specific segment: | |
# | |
# POWERLEVEL9K_STATUS_ICON_BEFORE_CONTENT=false | |
# | |
# Or for a specific segment in specific state: | |
# | |
# POWERLEVEL9K_DIR_NOT_WRITABLE_ICON_BEFORE_CONTENT=false | |
typeset -g POWERLEVEL9K_ICON_BEFORE_CONTENT=true | |
# Add an empty line before each prompt. | |
typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=true | |
# Connect left prompt lines with these symbols. | |
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX='%240F╭─' | |
typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_PREFIX='%240F├─' | |
typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX='%240F╰─' | |
# Connect right prompt lines with these symbols. | |
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_SUFFIX= | |
typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_SUFFIX= | |
typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_SUFFIX= | |
# The left end of left prompt. | |
typeset -g POWERLEVEL9K_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL=' ' | |
# The right end of right prompt. | |
typeset -g POWERLEVEL9K_RIGHT_PROMPT_LAST_SEGMENT_END_SYMBOL= | |
# Ruler, a.k.a. the horizontal line before each prompt. If you set it to true, you'll | |
# probably want to set POWERLEVEL9K_PROMPT_ADD_NEWLINE=false above and | |
# POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR=' ' below. | |
typeset -g POWERLEVEL9K_SHOW_RULER=false | |
typeset -g POWERLEVEL9K_RULER_CHAR='─' # reasonable alternative: '·' | |
typeset -g POWERLEVEL9K_RULER_FOREGROUND=240 | |
# Filler between left and right prompt on the first prompt line. You can set it to '·' or '─' | |
# to make it easier to see the alignment between left and right prompt and to separate prompt | |
# from command output. It serves the same purpose as ruler (see above) without increasing | |
# the number of prompt lines. You'll probably want to set POWERLEVEL9K_SHOW_RULER=false | |
# if using this. You might also like POWERLEVEL9K_PROMPT_ADD_NEWLINE=false for more compact | |
# prompt. | |
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR='·' | |
if [[ $POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR != ' ' ]]; then | |
# The color of the filler. | |
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND=240 | |
# Add a space between the end of left prompt and the filler. | |
typeset -g POWERLEVEL9K_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=' ' | |
# Add a space between the filler and the start of right prompt. | |
typeset -g POWERLEVEL9K_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL=' ' | |
# Start filler from the edge of the screen if there are no left segments on the first line. | |
typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_FIRST_SEGMENT_END_SYMBOL='%{%}' | |
# End filler on the edge of the screen if there are no right segments on the first line. | |
typeset -g POWERLEVEL9K_EMPTY_LINE_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='%{%}' | |
fi | |
#################################[ os_icon: os identifier ]################################## | |
# OS identifier color. | |
typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND= | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='⭐' | |
################################[ prompt_char: prompt symbol ]################################ | |
# Green prompt symbol if the last command succeeded. | |
typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=76 | |
# Red prompt symbol if the last command failed. | |
typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=196 | |
# Default prompt symbol. | |
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='❯' | |
# Prompt symbol in command vi mode. | |
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_CONTENT_EXPANSION='❮' | |
# Prompt symbol in visual vi mode. | |
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIVIS_CONTENT_EXPANSION='V' | |
# Prompt symbol in overwrite vi mode. | |
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIOWR_CONTENT_EXPANSION='▶' | |
typeset -g POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=true | |
# No line terminator if prompt_char is the last segment. | |
typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL='' | |
# No line introducer if prompt_char is the first segment. | |
typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL= | |
##################################[ dir: current directory ]################################## | |
# Default current directory color. | |
typeset -g POWERLEVEL9K_DIR_FOREGROUND=31 | |
# If directory is too long, shorten some of its segments to the shortest possible unique | |
# prefix. The shortened directory can be tab-completed to the original. | |
typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique | |
# Replace removed segment suffixes with this symbol. | |
typeset -g POWERLEVEL9K_SHORTEN_DELIMITER= | |
# Color of the shortened directory segments. | |
typeset -g POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=103 | |
# Color of the anchor directory segments. Anchor segments are never shortened. The first | |
# segment is always an anchor. | |
typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=39 | |
# Display anchor directory segments in bold. | |
typeset -g POWERLEVEL9K_DIR_ANCHOR_BOLD=true | |
# Don't shorten directories that contain any of these files. They are anchors. | |
local anchor_files=( | |
.bzr | |
.citc | |
.git | |
.hg | |
.node-version | |
.python-version | |
.go-version | |
.ruby-version | |
.lua-version | |
.java-version | |
.perl-version | |
.php-version | |
.tool-version | |
.shorten_folder_marker | |
.svn | |
.terraform | |
CVS | |
Cargo.toml | |
composer.json | |
go.mod | |
package.json | |
stack.yaml | |
) | |
typeset -g POWERLEVEL9K_SHORTEN_FOLDER_MARKER="(${(j:|:)anchor_files})" | |
# If set to "first" ("last"), remove everything before the first (last) subdirectory that contains | |
# files matching $POWERLEVEL9K_SHORTEN_FOLDER_MARKER. For example, when the current directory is | |
# /foo/bar/git_repo/nested_git_repo/baz, prompt will display git_repo/nested_git_repo/baz (first) | |
# or nested_git_repo/baz (last). This assumes that git_repo and nested_git_repo contain markers | |
# and other directories don't. | |
# | |
# Optionally, "first" and "last" can be followed by ":<offset>" where <offset> is an integer. | |
# This moves the truncation point to the right (positive offset) or to the left (negative offset) | |
# relative to the marker. Plain "first" and "last" are equivalent to "first:0" and "last:0" | |
# respectively. | |
typeset -g POWERLEVEL9K_DIR_TRUNCATE_BEFORE_MARKER=false | |
# Don't shorten this many last directory segments. They are anchors. | |
typeset -g POWERLEVEL9K_SHORTEN_DIR_LENGTH=1 | |
# Shorten directory if it's longer than this even if there is space for it. The value can | |
# be either absolute (e.g., '80') or a percentage of terminal width (e.g, '50%'). If empty, | |
# directory will be shortened only when prompt doesn't fit or when other parameters demand it | |
# (see POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS and POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT below). | |
# If set to `0`, directory will always be shortened to its minimum length. | |
typeset -g POWERLEVEL9K_DIR_MAX_LENGTH=80 | |
# When `dir` segment is on the last prompt line, try to shorten it enough to leave at least this | |
# many columns for typing commands. | |
typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS=40 | |
# When `dir` segment is on the last prompt line, try to shorten it enough to leave at least | |
# COLUMNS * POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT * 0.01 columns for typing commands. | |
typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT=50 | |
# If set to true, embed a hyperlink into the directory. Useful for quickly | |
# opening a directory in the file manager simply by clicking the link. | |
# Can also be handy when the directory is shortened, as it allows you to see | |
# the full directory that was used in previous commands. | |
typeset -g POWERLEVEL9K_DIR_HYPERLINK=false | |
# Enable special styling for non-writable and non-existent directories. See POWERLEVEL9K_LOCK_ICON | |
# and POWERLEVEL9K_DIR_CLASSES below. | |
typeset -g POWERLEVEL9K_DIR_SHOW_WRITABLE=v3 | |
# The default icon shown next to non-writable and non-existent directories when | |
# POWERLEVEL9K_DIR_SHOW_WRITABLE is set to v3. | |
# typeset -g POWERLEVEL9K_LOCK_ICON='⭐' | |
# POWERLEVEL9K_DIR_CLASSES allows you to specify custom icons and colors for different | |
# directories. It must be an array with 3 * N elements. Each triplet consists of: | |
# | |
# 1. A pattern against which the current directory ($PWD) is matched. Matching is done with | |
# extended_glob option enabled. | |
# 2. Directory class for the purpose of styling. | |
# 3. An empty string. | |
# | |
# Triplets are tried in order. The first triplet whose pattern matches $PWD wins. | |
# | |
# If POWERLEVEL9K_DIR_SHOW_WRITABLE is set to v3, non-writable and non-existent directories | |
# acquire class suffix _NOT_WRITABLE and NON_EXISTENT respectively. | |
# | |
# For example, given these settings: | |
# | |
# typeset -g POWERLEVEL9K_DIR_CLASSES=( | |
# '~/work(|/*)' WORK '' | |
# '~(|/*)' HOME '' | |
# '*' DEFAULT '') | |
# | |
# Whenever the current directory is ~/work or a subdirectory of ~/work, it gets styled with one | |
# of the following classes depending on its writability and existence: WORK, WORK_NOT_WRITABLE or | |
# WORK_NON_EXISTENT. | |
# | |
# Simply assigning classes to directories doesn't have any visible effects. It merely gives you an | |
# option to define custom colors and icons for different directory classes. | |
# | |
# # Styling for WORK. | |
# typeset -g POWERLEVEL9K_DIR_WORK_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_DIR_WORK_FOREGROUND=31 | |
# typeset -g POWERLEVEL9K_DIR_WORK_SHORTENED_FOREGROUND=103 | |
# typeset -g POWERLEVEL9K_DIR_WORK_ANCHOR_FOREGROUND=39 | |
# | |
# # Styling for WORK_NOT_WRITABLE. | |
# typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_FOREGROUND=31 | |
# typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_SHORTENED_FOREGROUND=103 | |
# typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_ANCHOR_FOREGROUND=39 | |
# | |
# # Styling for WORK_NON_EXISTENT. | |
# typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_FOREGROUND=31 | |
# typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_SHORTENED_FOREGROUND=103 | |
# typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_ANCHOR_FOREGROUND=39 | |
# | |
# If a styling parameter isn't explicitly defined for some class, it falls back to the classless | |
# parameter. For example, if POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_FOREGROUND is not set, it falls | |
# back to POWERLEVEL9K_DIR_FOREGROUND. | |
# | |
# typeset -g POWERLEVEL9K_DIR_CLASSES=() | |
# Custom prefix. | |
# typeset -g POWERLEVEL9K_DIR_PREFIX='%fin ' | |
#####################################[ vcs: git status ]###################################### | |
# Branch icon. Set this parameter to '\UE0A0 ' for the popular Powerline branch icon. | |
typeset -g POWERLEVEL9K_VCS_BRANCH_ICON='\uF126 ' | |
# Untracked files icon. It's really a question mark, your font isn't broken. | |
# Change the value of this parameter to show a different icon. | |
typeset -g POWERLEVEL9K_VCS_UNTRACKED_ICON='?' | |
# Formatter for Git status. | |
# | |
# Example output: master wip ⇣42⇡42 *42 merge ~42 +42 !42 ?42. | |
# | |
# You can edit the function to customize how Git status looks. | |
# | |
# VCS_STATUS_* parameters are set by gitstatus plugin. See reference: | |
# https://github.com/romkatv/gitstatus/blob/master/gitstatus.plugin.zsh. | |
function my_git_formatter() { | |
emulate -L zsh | |
if [[ -n $P9K_CONTENT ]]; then | |
# If P9K_CONTENT is not empty, use it. It's either "loading" or from vcs_info (not from | |
# gitstatus plugin). VCS_STATUS_* parameters are not available in this case. | |
typeset -g my_git_format=$P9K_CONTENT | |
return | |
fi | |
if (( $1 )); then | |
# Styling for up-to-date Git status. | |
local meta='%f' # default foreground | |
local clean='%76F' # green foreground | |
local modified='%178F' # yellow foreground | |
local untracked='%39F' # blue foreground | |
local conflicted='%196F' # red foreground | |
else | |
# Styling for incomplete and stale Git status. | |
local meta='%244F' # grey foreground | |
local clean='%244F' # grey foreground | |
local modified='%244F' # grey foreground | |
local untracked='%244F' # grey foreground | |
local conflicted='%244F' # grey foreground | |
fi | |
local res | |
if [[ -n $VCS_STATUS_LOCAL_BRANCH ]]; then | |
local branch=${(V)VCS_STATUS_LOCAL_BRANCH} | |
# If local branch name is at most 32 characters long, show it in full. | |
# Otherwise show the first 12 … the last 12. | |
# Tip: To always show local branch name in full without truncation, delete the next line. | |
(( $#branch > 32 )) && branch[13,-13]="…" # <-- this line | |
res+="${clean}${(g::)POWERLEVEL9K_VCS_BRANCH_ICON}${branch//\%/%%}" | |
fi | |
if [[ -n $VCS_STATUS_TAG | |
# Show tag only if not on a branch. | |
# Tip: To always show tag, delete the next line. | |
&& -z $VCS_STATUS_LOCAL_BRANCH # <-- this line | |
]]; then | |
local tag=${(V)VCS_STATUS_TAG} | |
# If tag name is at most 32 characters long, show it in full. | |
# Otherwise show the first 12 … the last 12. | |
# Tip: To always show tag name in full without truncation, delete the next line. | |
(( $#tag > 32 )) && tag[13,-13]="…" # <-- this line | |
res+="${meta}#${clean}${tag//\%/%%}" | |
fi | |
# Display the current Git commit if there is no branch and no tag. | |
# Tip: To always display the current Git commit, delete the next line. | |
[[ -z $VCS_STATUS_LOCAL_BRANCH && -z $VCS_STATUS_TAG ]] && # <-- this line | |
res+="${meta}@${clean}${VCS_STATUS_COMMIT[1,8]}" | |
# Show tracking branch name if it differs from local branch. | |
if [[ -n ${VCS_STATUS_REMOTE_BRANCH:#$VCS_STATUS_LOCAL_BRANCH} ]]; then | |
res+="${meta}:${clean}${(V)VCS_STATUS_REMOTE_BRANCH//\%/%%}" | |
fi | |
# Display "wip" if the latest commit's summary contains "wip" or "WIP". | |
if [[ $VCS_STATUS_COMMIT_SUMMARY == (|*[^[:alnum:]])(wip|WIP)(|[^[:alnum:]]*) ]]; then | |
res+=" ${modified}wip" | |
fi | |
# ⇣42 if behind the remote. | |
(( VCS_STATUS_COMMITS_BEHIND )) && res+=" ${clean}⇣${VCS_STATUS_COMMITS_BEHIND}" | |
# ⇡42 if ahead of the remote; no leading space if also behind the remote: ⇣42⇡42. | |
(( VCS_STATUS_COMMITS_AHEAD && !VCS_STATUS_COMMITS_BEHIND )) && res+=" " | |
(( VCS_STATUS_COMMITS_AHEAD )) && res+="${clean}⇡${VCS_STATUS_COMMITS_AHEAD}" | |
# ⇠42 if behind the push remote. | |
(( VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" ${clean}⇠${VCS_STATUS_PUSH_COMMITS_BEHIND}" | |
(( VCS_STATUS_PUSH_COMMITS_AHEAD && !VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" " | |
# ⇢42 if ahead of the push remote; no leading space if also behind: ⇠42⇢42. | |
(( VCS_STATUS_PUSH_COMMITS_AHEAD )) && res+="${clean}⇢${VCS_STATUS_PUSH_COMMITS_AHEAD}" | |
# *42 if have stashes. | |
(( VCS_STATUS_STASHES )) && res+=" ${clean}*${VCS_STATUS_STASHES}" | |
# 'merge' if the repo is in an unusual state. | |
[[ -n $VCS_STATUS_ACTION ]] && res+=" ${conflicted}${VCS_STATUS_ACTION}" | |
# ~42 if have merge conflicts. | |
(( VCS_STATUS_NUM_CONFLICTED )) && res+=" ${conflicted}~${VCS_STATUS_NUM_CONFLICTED}" | |
# +42 if have staged changes. | |
(( VCS_STATUS_NUM_STAGED )) && res+=" ${modified}+${VCS_STATUS_NUM_STAGED}" | |
# !42 if have unstaged changes. | |
(( VCS_STATUS_NUM_UNSTAGED )) && res+=" ${modified}!${VCS_STATUS_NUM_UNSTAGED}" | |
# ?42 if have untracked files. It's really a question mark, your font isn't broken. | |
# See POWERLEVEL9K_VCS_UNTRACKED_ICON above if you want to use a different icon. | |
# Remove the next line if you don't want to see untracked files at all. | |
(( VCS_STATUS_NUM_UNTRACKED )) && res+=" ${untracked}${(g::)POWERLEVEL9K_VCS_UNTRACKED_ICON}${VCS_STATUS_NUM_UNTRACKED}" | |
# "─" if the number of unstaged files is unknown. This can happen due to | |
# POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY (see below) being set to a non-negative number lower | |
# than the number of files in the Git index, or due to bash.showDirtyState being set to false | |
# in the repository config. The number of staged and untracked files may also be unknown | |
# in this case. | |
(( VCS_STATUS_HAS_UNSTAGED == -1 )) && res+=" ${modified}─" | |
typeset -g my_git_format=$res | |
} | |
functions -M my_git_formatter 2>/dev/null | |
# Don't count the number of unstaged, untracked and conflicted files in Git repositories with | |
# more than this many files in the index. Negative value means infinity. | |
# | |
# If you are working in Git repositories with tens of millions of files and seeing performance | |
# sagging, try setting POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY to a number lower than the output | |
# of `git ls-files | wc -l`. Alternatively, add `bash.showDirtyState = false` to the repository's | |
# config: `git config bash.showDirtyState false`. | |
typeset -g POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY=-1 | |
# Don't show Git status in prompt for repositories whose workdir matches this pattern. | |
# For example, if set to '~', the Git repository at $HOME/.git will be ignored. | |
# Multiple patterns can be combined with '|': '~(|/foo)|/bar/baz/*'. | |
typeset -g POWERLEVEL9K_VCS_DISABLED_WORKDIR_PATTERN='~' | |
# Disable the default Git status formatting. | |
typeset -g POWERLEVEL9K_VCS_DISABLE_GITSTATUS_FORMATTING=true | |
# Install our own Git status formatter. | |
typeset -g POWERLEVEL9K_VCS_CONTENT_EXPANSION='${$((my_git_formatter(1)))+${my_git_format}}' | |
typeset -g POWERLEVEL9K_VCS_LOADING_CONTENT_EXPANSION='${$((my_git_formatter(0)))+${my_git_format}}' | |
# Enable counters for staged, unstaged, etc. | |
typeset -g POWERLEVEL9K_VCS_{STAGED,UNSTAGED,UNTRACKED,CONFLICTED,COMMITS_AHEAD,COMMITS_BEHIND}_MAX_NUM=-1 | |
# Icon color. | |
typeset -g POWERLEVEL9K_VCS_VISUAL_IDENTIFIER_COLOR=76 | |
typeset -g POWERLEVEL9K_VCS_LOADING_VISUAL_IDENTIFIER_COLOR=244 | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_VCS_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# Custom prefix. | |
typeset -g POWERLEVEL9K_VCS_PREFIX='%fon ' | |
# Show status of repositories of these types. You can add svn and/or hg if you are | |
# using them. If you do, your prompt may become slow even when your current directory | |
# isn't in an svn or hg repository. | |
typeset -g POWERLEVEL9K_VCS_BACKENDS=(git) | |
# These settings are used for repositories other than Git or when gitstatusd fails and | |
# Powerlevel10k has to fall back to using vcs_info. | |
typeset -g POWERLEVEL9K_VCS_CLEAN_FOREGROUND=76 | |
typeset -g POWERLEVEL9K_VCS_UNTRACKED_FOREGROUND=76 | |
typeset -g POWERLEVEL9K_VCS_MODIFIED_FOREGROUND=178 | |
##########################[ status: exit code of the last command ]########################### | |
# Enable OK_PIPE, ERROR_PIPE and ERROR_SIGNAL status states to allow us to enable, disable and | |
# style them independently from the regular OK and ERROR state. | |
typeset -g POWERLEVEL9K_STATUS_EXTENDED_STATES=true | |
# Status on success. No content, just an icon. No need to show it if prompt_char is enabled as | |
# it will signify success by turning green. | |
typeset -g POWERLEVEL9K_STATUS_OK=false | |
typeset -g POWERLEVEL9K_STATUS_OK_FOREGROUND=70 | |
typeset -g POWERLEVEL9K_STATUS_OK_VISUAL_IDENTIFIER_EXPANSION='✔' | |
# Status when some part of a pipe command fails but the overall exit status is zero. It may look | |
# like this: 1|0. | |
typeset -g POWERLEVEL9K_STATUS_OK_PIPE=true | |
typeset -g POWERLEVEL9K_STATUS_OK_PIPE_FOREGROUND=70 | |
typeset -g POWERLEVEL9K_STATUS_OK_PIPE_VISUAL_IDENTIFIER_EXPANSION='✔' | |
# Status when it's just an error code (e.g., '1'). No need to show it if prompt_char is enabled as | |
# it will signify error by turning red. | |
typeset -g POWERLEVEL9K_STATUS_ERROR=false | |
typeset -g POWERLEVEL9K_STATUS_ERROR_FOREGROUND=160 | |
typeset -g POWERLEVEL9K_STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION='✘' | |
# Status when the last command was terminated by a signal. | |
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL=true | |
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_FOREGROUND=160 | |
# Use terse signal names: "INT" instead of "SIGINT(2)". | |
typeset -g POWERLEVEL9K_STATUS_VERBOSE_SIGNAME=false | |
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_VISUAL_IDENTIFIER_EXPANSION='✘' | |
# Status when some part of a pipe command fails and the overall exit status is also non-zero. | |
# It may look like this: 1|0. | |
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE=true | |
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_FOREGROUND=160 | |
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_VISUAL_IDENTIFIER_EXPANSION='✘' | |
###################[ command_execution_time: duration of the last command ]################### | |
# Show duration of the last command if takes at least this many seconds. | |
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=3 | |
# Show this many fractional digits. Zero means round to seconds. | |
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=0 | |
# Execution time color. | |
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=101 | |
# Duration format: 1d 2h 3m 4s. | |
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FORMAT='d h m s' | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# Custom prefix. | |
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PREFIX='%ftook ' | |
#######################[ background_jobs: presence of background jobs ]####################### | |
# Don't show the number of background jobs. | |
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE=false | |
# Background jobs color. | |
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND=70 | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
#######################[ direnv: direnv status (https://direnv.net/) ]######################## | |
# Direnv color. | |
typeset -g POWERLEVEL9K_DIRENV_FOREGROUND=178 | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_DIRENV_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
###############[ asdf: asdf version manager (https://github.com/asdf-vm/asdf) ]############### | |
# Default asdf color. Only used to display tools for which there is no color override (see below). | |
# Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_FOREGROUND. | |
typeset -g POWERLEVEL9K_ASDF_FOREGROUND=66 | |
# There are four parameters that can be used to hide asdf tools. Each parameter describes | |
# conditions under which a tool gets hidden. Parameters can hide tools but not unhide them. If at | |
# least one parameter decides to hide a tool, that tool gets hidden. If no parameter decides to | |
# hide a tool, it gets shown. | |
# | |
# Special note on the difference between POWERLEVEL9K_ASDF_SOURCES and | |
# POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW. Consider the effect of the following commands: | |
# | |
# asdf local python 3.8.1 | |
# asdf global python 3.8.1 | |
# | |
# After running both commands the current python version is 3.8.1 and its source is "local" as | |
# it takes precedence over "global". If POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW is set to false, | |
# it'll hide python version in this case because 3.8.1 is the same as the global version. | |
# POWERLEVEL9K_ASDF_SOURCES will hide python version only if the value of this parameter doesn't | |
# contain "local". | |
# Hide tool versions that don't come from one of these sources. | |
# | |
# Available sources: | |
# | |
# - shell `asdf current` says "set by ASDF_${TOOL}_VERSION environment variable" | |
# - local `asdf current` says "set by /some/not/home/directory/file" | |
# - global `asdf current` says "set by /home/username/file" | |
# | |
# Note: If this parameter is set to (shell local global), it won't hide tools. | |
# Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SOURCES. | |
typeset -g POWERLEVEL9K_ASDF_SOURCES=(shell local global) | |
# If set to false, hide tool versions that are the same as global. | |
# | |
# Note: The name of this parameter doesn't reflect its meaning at all. | |
# Note: If this parameter is set to true, it won't hide tools. | |
# Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_PROMPT_ALWAYS_SHOW. | |
typeset -g POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW=false | |
# If set to false, hide tool versions that are equal to "system". | |
# | |
# Note: If this parameter is set to true, it won't hide tools. | |
# Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SHOW_SYSTEM. | |
typeset -g POWERLEVEL9K_ASDF_SHOW_SYSTEM=true | |
# If set to non-empty value, hide tools unless there is a file matching the specified file pattern | |
# in the current directory, or its parent directory, or its grandparent directory, and so on. | |
# | |
# Note: If this parameter is set to empty value, it won't hide tools. | |
# Note: SHOW_ON_UPGLOB isn't specific to asdf. It works with all prompt segments. | |
# Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SHOW_ON_UPGLOB. | |
# | |
# Example: Hide nodejs version when there is no package.json and no *.js files in the current | |
# directory, in `..`, in `../..` and so on. | |
# | |
# typeset -g POWERLEVEL9K_ASDF_NODEJS_SHOW_ON_UPGLOB='*.js|package.json' | |
typeset -g POWERLEVEL9K_ASDF_SHOW_ON_UPGLOB= | |
# Ruby version from asdf. | |
typeset -g POWERLEVEL9K_ASDF_RUBY_FOREGROUND=168 | |
# typeset -g POWERLEVEL9K_ASDF_RUBY_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_ASDF_RUBY_SHOW_ON_UPGLOB='*.foo|*.bar' | |
# Python version from asdf. | |
typeset -g POWERLEVEL9K_ASDF_PYTHON_FOREGROUND=37 | |
# typeset -g POWERLEVEL9K_ASDF_PYTHON_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_ASDF_PYTHON_SHOW_ON_UPGLOB='*.foo|*.bar' | |
# Go version from asdf. | |
typeset -g POWERLEVEL9K_ASDF_GOLANG_FOREGROUND=37 | |
# typeset -g POWERLEVEL9K_ASDF_GOLANG_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_ASDF_GOLANG_SHOW_ON_UPGLOB='*.foo|*.bar' | |
# Node.js version from asdf. | |
typeset -g POWERLEVEL9K_ASDF_NODEJS_FOREGROUND=70 | |
# typeset -g POWERLEVEL9K_ASDF_NODEJS_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_ASDF_NODEJS_SHOW_ON_UPGLOB='*.foo|*.bar' | |
# Rust version from asdf. | |
typeset -g POWERLEVEL9K_ASDF_RUST_FOREGROUND=37 | |
# typeset -g POWERLEVEL9K_ASDF_RUST_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_ASDF_RUST_SHOW_ON_UPGLOB='*.foo|*.bar' | |
# .NET Core version from asdf. | |
typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_FOREGROUND=134 | |
# typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_ASDF_DOTNET_SHOW_ON_UPGLOB='*.foo|*.bar' | |
# Flutter version from asdf. | |
typeset -g POWERLEVEL9K_ASDF_FLUTTER_FOREGROUND=38 | |
# typeset -g POWERLEVEL9K_ASDF_FLUTTER_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_ASDF_FLUTTER_SHOW_ON_UPGLOB='*.foo|*.bar' | |
# Lua version from asdf. | |
typeset -g POWERLEVEL9K_ASDF_LUA_FOREGROUND=32 | |
# typeset -g POWERLEVEL9K_ASDF_LUA_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_ASDF_LUA_SHOW_ON_UPGLOB='*.foo|*.bar' | |
# Java version from asdf. | |
typeset -g POWERLEVEL9K_ASDF_JAVA_FOREGROUND=32 | |
# typeset -g POWERLEVEL9K_ASDF_JAVA_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_ASDF_JAVA_SHOW_ON_UPGLOB='*.foo|*.bar' | |
# Perl version from asdf. | |
typeset -g POWERLEVEL9K_ASDF_PERL_FOREGROUND=67 | |
# typeset -g POWERLEVEL9K_ASDF_PERL_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_ASDF_PERL_SHOW_ON_UPGLOB='*.foo|*.bar' | |
# Erlang version from asdf. | |
typeset -g POWERLEVEL9K_ASDF_ERLANG_FOREGROUND=125 | |
# typeset -g POWERLEVEL9K_ASDF_ERLANG_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_ASDF_ERLANG_SHOW_ON_UPGLOB='*.foo|*.bar' | |
# Elixir version from asdf. | |
typeset -g POWERLEVEL9K_ASDF_ELIXIR_FOREGROUND=129 | |
# typeset -g POWERLEVEL9K_ASDF_ELIXIR_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_ASDF_ELIXIR_SHOW_ON_UPGLOB='*.foo|*.bar' | |
# Postgres version from asdf. | |
typeset -g POWERLEVEL9K_ASDF_POSTGRES_FOREGROUND=31 | |
# typeset -g POWERLEVEL9K_ASDF_POSTGRES_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_ASDF_POSTGRES_SHOW_ON_UPGLOB='*.foo|*.bar' | |
# PHP version from asdf. | |
typeset -g POWERLEVEL9K_ASDF_PHP_FOREGROUND=99 | |
# typeset -g POWERLEVEL9K_ASDF_PHP_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_ASDF_PHP_SHOW_ON_UPGLOB='*.foo|*.bar' | |
# Haskell version from asdf. | |
typeset -g POWERLEVEL9K_ASDF_HASKELL_FOREGROUND=172 | |
# typeset -g POWERLEVEL9K_ASDF_HASKELL_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_ASDF_HASKELL_SHOW_ON_UPGLOB='*.foo|*.bar' | |
# Julia version from asdf. | |
typeset -g POWERLEVEL9K_ASDF_JULIA_FOREGROUND=70 | |
# typeset -g POWERLEVEL9K_ASDF_JULIA_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_ASDF_JULIA_SHOW_ON_UPGLOB='*.foo|*.bar' | |
##########[ nordvpn: nordvpn connection status, linux only (https://nordvpn.com/) ]########### | |
# NordVPN connection indicator color. | |
typeset -g POWERLEVEL9K_NORDVPN_FOREGROUND=39 | |
# Hide NordVPN connection indicator when not connected. | |
typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_CONTENT_EXPANSION= | |
typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_VISUAL_IDENTIFIER_EXPANSION= | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_NORDVPN_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
#################[ ranger: ranger shell (https://github.com/ranger/ranger) ]################## | |
# Ranger shell color. | |
typeset -g POWERLEVEL9K_RANGER_FOREGROUND=178 | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_RANGER_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
######################[ nnn: nnn shell (https://github.com/jarun/nnn) ]####################### | |
# Nnn shell color. | |
typeset -g POWERLEVEL9K_NNN_FOREGROUND=72 | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_NNN_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
##################[ xplr: xplr shell (https://github.com/sayanarijit/xplr) ]################## | |
# xplr shell color. | |
typeset -g POWERLEVEL9K_XPLR_FOREGROUND=72 | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_XPLR_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
###########################[ vim_shell: vim shell indicator (:sh) ]########################### | |
# Vim shell indicator color. | |
typeset -g POWERLEVEL9K_VIM_SHELL_FOREGROUND=34 | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_VIM_SHELL_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
######[ midnight_commander: midnight commander shell (https://midnight-commander.org/) ]###### | |
# Midnight Commander shell color. | |
typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_FOREGROUND=178 | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
#[ nix_shell: nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html) ]## | |
# Nix shell color. | |
typeset -g POWERLEVEL9K_NIX_SHELL_FOREGROUND=74 | |
# Tip: If you want to see just the icon without "pure" and "impure", uncomment the next line. | |
# typeset -g POWERLEVEL9K_NIX_SHELL_CONTENT_EXPANSION= | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_NIX_SHELL_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
##################################[ disk_usage: disk usage ]################################## | |
# Colors for different levels of disk usage. | |
typeset -g POWERLEVEL9K_DISK_USAGE_NORMAL_FOREGROUND=35 | |
typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_FOREGROUND=220 | |
typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_FOREGROUND=160 | |
# Thresholds for different levels of disk usage (percentage points). | |
typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_LEVEL=90 | |
typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_LEVEL=95 | |
# If set to true, hide disk usage when below $POWERLEVEL9K_DISK_USAGE_WARNING_LEVEL percent. | |
typeset -g POWERLEVEL9K_DISK_USAGE_ONLY_WARNING=false | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_DISK_USAGE_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
######################################[ ram: free RAM ]####################################### | |
# RAM color. | |
typeset -g POWERLEVEL9K_RAM_FOREGROUND=66 | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_RAM_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
#####################################[ swap: used swap ]###################################### | |
# Swap color. | |
typeset -g POWERLEVEL9K_SWAP_FOREGROUND=96 | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_SWAP_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
######################################[ load: CPU load ]###################################### | |
# Show average CPU load over this many last minutes. Valid values are 1, 5 and 15. | |
typeset -g POWERLEVEL9K_LOAD_WHICH=5 | |
# Load color when load is under 50%. | |
typeset -g POWERLEVEL9K_LOAD_NORMAL_FOREGROUND=66 | |
# Load color when load is between 50% and 70%. | |
typeset -g POWERLEVEL9K_LOAD_WARNING_FOREGROUND=178 | |
# Load color when load is over 70%. | |
typeset -g POWERLEVEL9K_LOAD_CRITICAL_FOREGROUND=166 | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_LOAD_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
################[ todo: todo items (https://github.com/todotxt/todo.txt-cli) ]################ | |
# Todo color. | |
typeset -g POWERLEVEL9K_TODO_FOREGROUND=110 | |
# Hide todo when the total number of tasks is zero. | |
typeset -g POWERLEVEL9K_TODO_HIDE_ZERO_TOTAL=true | |
# Hide todo when the number of tasks after filtering is zero. | |
typeset -g POWERLEVEL9K_TODO_HIDE_ZERO_FILTERED=false | |
# Todo format. The following parameters are available within the expansion. | |
# | |
# - P9K_TODO_TOTAL_TASK_COUNT The total number of tasks. | |
# - P9K_TODO_FILTERED_TASK_COUNT The number of tasks after filtering. | |
# | |
# These variables correspond to the last line of the output of `todo.sh -p ls`: | |
# | |
# TODO: 24 of 42 tasks shown | |
# | |
# Here 24 is P9K_TODO_FILTERED_TASK_COUNT and 42 is P9K_TODO_TOTAL_TASK_COUNT. | |
# | |
# typeset -g POWERLEVEL9K_TODO_CONTENT_EXPANSION='$P9K_TODO_FILTERED_TASK_COUNT' | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_TODO_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
###########[ timewarrior: timewarrior tracking status (https://timewarrior.net/) ]############ | |
# Timewarrior color. | |
typeset -g POWERLEVEL9K_TIMEWARRIOR_FOREGROUND=110 | |
# If the tracked task is longer than 24 characters, truncate and append "…". | |
# Tip: To always display tasks without truncation, delete the following parameter. | |
# Tip: To hide task names and display just the icon when time tracking is enabled, set the | |
# value of the following parameter to "". | |
typeset -g POWERLEVEL9K_TIMEWARRIOR_CONTENT_EXPANSION='${P9K_CONTENT:0:24}${${P9K_CONTENT:24}:+…}' | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_TIMEWARRIOR_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
##############[ taskwarrior: taskwarrior task count (https://taskwarrior.org/) ]############## | |
# Taskwarrior color. | |
typeset -g POWERLEVEL9K_TASKWARRIOR_FOREGROUND=74 | |
# Taskwarrior segment format. The following parameters are available within the expansion. | |
# | |
# - P9K_TASKWARRIOR_PENDING_COUNT The number of pending tasks: `task +PENDING count`. | |
# - P9K_TASKWARRIOR_OVERDUE_COUNT The number of overdue tasks: `task +OVERDUE count`. | |
# | |
# Zero values are represented as empty parameters. | |
# | |
# The default format: | |
# | |
# '${P9K_TASKWARRIOR_OVERDUE_COUNT:+"!$P9K_TASKWARRIOR_OVERDUE_COUNT/"}$P9K_TASKWARRIOR_PENDING_COUNT' | |
# | |
# typeset -g POWERLEVEL9K_TASKWARRIOR_CONTENT_EXPANSION='$P9K_TASKWARRIOR_PENDING_COUNT' | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_TASKWARRIOR_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
##################################[ context: user@hostname ]################################## | |
# Context color when running with privileges. | |
typeset -g POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND=178 | |
# Context color in SSH without privileges. | |
typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_FOREGROUND=180 | |
# Default context color (no privileges, no SSH). | |
typeset -g POWERLEVEL9K_CONTEXT_FOREGROUND=180 | |
# Context format when running with privileges: bold user@hostname. | |
typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE='%B%n@%m' | |
# Context format when in SSH without privileges: user@hostname. | |
typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_TEMPLATE='%n@%m' | |
# Default context format (no privileges, no SSH): user@hostname. | |
typeset -g POWERLEVEL9K_CONTEXT_TEMPLATE='%n@%m' | |
# Don't show context unless running with privileges or in SSH. | |
# Tip: Remove the next line to always show context. | |
typeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_{CONTENT,VISUAL_IDENTIFIER}_EXPANSION= | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_CONTEXT_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# Custom prefix. | |
typeset -g POWERLEVEL9K_CONTEXT_PREFIX='%fwith ' | |
###[ virtualenv: python virtual environment (https://docs.python.org/3/library/venv.html) ]### | |
# Python virtual environment color. | |
typeset -g POWERLEVEL9K_VIRTUALENV_FOREGROUND=37 | |
# Don't show Python version next to the virtual environment name. | |
typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_PYTHON_VERSION=false | |
# If set to "false", won't show virtualenv if pyenv is already shown. | |
# If set to "if-different", won't show virtualenv if it's the same as pyenv. | |
typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_WITH_PYENV=false | |
# Separate environment name from Python version only with a space. | |
typeset -g POWERLEVEL9K_VIRTUALENV_{LEFT,RIGHT}_DELIMITER= | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_VIRTUALENV_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
#####################[ anaconda: conda environment (https://conda.io/) ]###################### | |
# Anaconda environment color. | |
typeset -g POWERLEVEL9K_ANACONDA_FOREGROUND=37 | |
# Anaconda segment format. The following parameters are available within the expansion. | |
# | |
# - CONDA_PREFIX Absolute path to the active Anaconda/Miniconda environment. | |
# - CONDA_DEFAULT_ENV Name of the active Anaconda/Miniconda environment. | |
# - CONDA_PROMPT_MODIFIER Configurable prompt modifier (see below). | |
# - P9K_ANACONDA_PYTHON_VERSION Current python version (python --version). | |
# | |
# CONDA_PROMPT_MODIFIER can be configured with the following command: | |
# | |
# conda config --set env_prompt '({default_env}) ' | |
# | |
# The last argument is a Python format string that can use the following variables: | |
# | |
# - prefix The same as CONDA_PREFIX. | |
# - default_env The same as CONDA_DEFAULT_ENV. | |
# - name The last segment of CONDA_PREFIX. | |
# - stacked_env Comma-separated list of names in the environment stack. The first element is | |
# always the same as default_env. | |
# | |
# Note: '({default_env}) ' is the default value of env_prompt. | |
# | |
# The default value of POWERLEVEL9K_ANACONDA_CONTENT_EXPANSION expands to $CONDA_PROMPT_MODIFIER | |
# without the surrounding parentheses, or to the last path component of CONDA_PREFIX if the former | |
# is empty. | |
typeset -g POWERLEVEL9K_ANACONDA_CONTENT_EXPANSION='${${${${CONDA_PROMPT_MODIFIER#\(}% }%\)}:-${CONDA_PREFIX:t}}' | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_ANACONDA_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
################[ pyenv: python environment (https://github.com/pyenv/pyenv) ]################ | |
# Pyenv color. | |
typeset -g POWERLEVEL9K_PYENV_FOREGROUND=37 | |
# Hide python version if it doesn't come from one of these sources. | |
typeset -g POWERLEVEL9K_PYENV_SOURCES=(shell local global) | |
# If set to false, hide python version if it's the same as global: | |
# $(pyenv version-name) == $(pyenv global). | |
typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false | |
# If set to false, hide python version if it's equal to "system". | |
typeset -g POWERLEVEL9K_PYENV_SHOW_SYSTEM=true | |
# Pyenv segment format. The following parameters are available within the expansion. | |
# | |
# - P9K_CONTENT Current pyenv environment (pyenv version-name). | |
# - P9K_PYENV_PYTHON_VERSION Current python version (python --version). | |
# | |
# The default format has the following logic: | |
# | |
# 1. Display just "$P9K_CONTENT" if it's equal to "$P9K_PYENV_PYTHON_VERSION" or | |
# starts with "$P9K_PYENV_PYTHON_VERSION/". | |
# 2. Otherwise display "$P9K_CONTENT $P9K_PYENV_PYTHON_VERSION". | |
typeset -g POWERLEVEL9K_PYENV_CONTENT_EXPANSION='${P9K_CONTENT}${${P9K_CONTENT:#$P9K_PYENV_PYTHON_VERSION(|/*)}:+ $P9K_PYENV_PYTHON_VERSION}' | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_PYENV_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
################[ goenv: go environment (https://github.com/syndbg/goenv) ]################ | |
# Goenv color. | |
typeset -g POWERLEVEL9K_GOENV_FOREGROUND=37 | |
# Hide go version if it doesn't come from one of these sources. | |
typeset -g POWERLEVEL9K_GOENV_SOURCES=(shell local global) | |
# If set to false, hide go version if it's the same as global: | |
# $(goenv version-name) == $(goenv global). | |
typeset -g POWERLEVEL9K_GOENV_PROMPT_ALWAYS_SHOW=false | |
# If set to false, hide go version if it's equal to "system". | |
typeset -g POWERLEVEL9K_GOENV_SHOW_SYSTEM=true | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_GOENV_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
##########[ nodenv: node.js version from nodenv (https://github.com/nodenv/nodenv) ]########## | |
# Nodenv color. | |
typeset -g POWERLEVEL9K_NODENV_FOREGROUND=70 | |
# Hide node version if it doesn't come from one of these sources. | |
typeset -g POWERLEVEL9K_NODENV_SOURCES=(shell local global) | |
# If set to false, hide node version if it's the same as global: | |
# $(nodenv version-name) == $(nodenv global). | |
typeset -g POWERLEVEL9K_NODENV_PROMPT_ALWAYS_SHOW=false | |
# If set to false, hide node version if it's equal to "system". | |
typeset -g POWERLEVEL9K_NODENV_SHOW_SYSTEM=true | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_NODENV_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
##############[ nvm: node.js version from nvm (https://github.com/nvm-sh/nvm) ]############### | |
# Nvm color. | |
typeset -g POWERLEVEL9K_NVM_FOREGROUND=70 | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_NVM_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
############[ nodeenv: node.js environment (https://github.com/ekalinin/nodeenv) ]############ | |
# Nodeenv color. | |
typeset -g POWERLEVEL9K_NODEENV_FOREGROUND=70 | |
# Don't show Node version next to the environment name. | |
typeset -g POWERLEVEL9K_NODEENV_SHOW_NODE_VERSION=false | |
# Separate environment name from Node version only with a space. | |
typeset -g POWERLEVEL9K_NODEENV_{LEFT,RIGHT}_DELIMITER= | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_NODEENV_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
##############################[ node_version: node.js version ]############################### | |
# Node version color. | |
typeset -g POWERLEVEL9K_NODE_VERSION_FOREGROUND=70 | |
# Show node version only when in a directory tree containing package.json. | |
typeset -g POWERLEVEL9K_NODE_VERSION_PROJECT_ONLY=true | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_NODE_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
#######################[ go_version: go version (https://golang.org) ]######################## | |
# Go version color. | |
typeset -g POWERLEVEL9K_GO_VERSION_FOREGROUND=37 | |
# Show go version only when in a go project subdirectory. | |
typeset -g POWERLEVEL9K_GO_VERSION_PROJECT_ONLY=true | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_GO_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
#################[ rust_version: rustc version (https://www.rust-lang.org) ]################## | |
# Rust version color. | |
typeset -g POWERLEVEL9K_RUST_VERSION_FOREGROUND=37 | |
# Show rust version only when in a rust project subdirectory. | |
typeset -g POWERLEVEL9K_RUST_VERSION_PROJECT_ONLY=true | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_RUST_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
###############[ dotnet_version: .NET version (https://dotnet.microsoft.com) ]################ | |
# .NET version color. | |
typeset -g POWERLEVEL9K_DOTNET_VERSION_FOREGROUND=134 | |
# Show .NET version only when in a .NET project subdirectory. | |
typeset -g POWERLEVEL9K_DOTNET_VERSION_PROJECT_ONLY=true | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_DOTNET_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
#####################[ php_version: php version (https://www.php.net/) ]###################### | |
# PHP version color. | |
typeset -g POWERLEVEL9K_PHP_VERSION_FOREGROUND=99 | |
# Show PHP version only when in a PHP project subdirectory. | |
typeset -g POWERLEVEL9K_PHP_VERSION_PROJECT_ONLY=true | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_PHP_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
##########[ laravel_version: laravel php framework version (https://laravel.com/) ]########### | |
# Laravel version color. | |
typeset -g POWERLEVEL9K_LARAVEL_VERSION_FOREGROUND=161 | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_LARAVEL_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
####################[ java_version: java version (https://www.java.com/) ]#################### | |
# Java version color. | |
typeset -g POWERLEVEL9K_JAVA_VERSION_FOREGROUND=32 | |
# Show java version only when in a java project subdirectory. | |
typeset -g POWERLEVEL9K_JAVA_VERSION_PROJECT_ONLY=true | |
# Show brief version. | |
typeset -g POWERLEVEL9K_JAVA_VERSION_FULL=false | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_JAVA_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
###[ package: name@version from package.json (https://docs.npmjs.com/files/package.json) ]#### | |
# Package color. | |
typeset -g POWERLEVEL9K_PACKAGE_FOREGROUND=117 | |
# Package format. The following parameters are available within the expansion. | |
# | |
# - P9K_PACKAGE_NAME The value of `name` field in package.json. | |
# - P9K_PACKAGE_VERSION The value of `version` field in package.json. | |
# | |
# typeset -g POWERLEVEL9K_PACKAGE_CONTENT_EXPANSION='${P9K_PACKAGE_NAME//\%/%%}@${P9K_PACKAGE_VERSION//\%/%%}' | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_PACKAGE_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
#############[ rbenv: ruby version from rbenv (https://github.com/rbenv/rbenv) ]############## | |
# Rbenv color. | |
typeset -g POWERLEVEL9K_RBENV_FOREGROUND=168 | |
# Hide ruby version if it doesn't come from one of these sources. | |
typeset -g POWERLEVEL9K_RBENV_SOURCES=(shell local global) | |
# If set to false, hide ruby version if it's the same as global: | |
# $(rbenv version-name) == $(rbenv global). | |
typeset -g POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW=false | |
# If set to false, hide ruby version if it's equal to "system". | |
typeset -g POWERLEVEL9K_RBENV_SHOW_SYSTEM=true | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_RBENV_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
#######################[ rvm: ruby version from rvm (https://rvm.io) ]######################## | |
# Rvm color. | |
typeset -g POWERLEVEL9K_RVM_FOREGROUND=168 | |
# Don't show @gemset at the end. | |
typeset -g POWERLEVEL9K_RVM_SHOW_GEMSET=false | |
# Don't show ruby- at the front. | |
typeset -g POWERLEVEL9K_RVM_SHOW_PREFIX=false | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_RVM_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
###########[ fvm: flutter version management (https://github.com/leoafarias/fvm) ]############ | |
# Fvm color. | |
typeset -g POWERLEVEL9K_FVM_FOREGROUND=38 | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_FVM_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
##########[ luaenv: lua version from luaenv (https://github.com/cehoffman/luaenv) ]########### | |
# Lua color. | |
typeset -g POWERLEVEL9K_LUAENV_FOREGROUND=32 | |
# Hide lua version if it doesn't come from one of these sources. | |
typeset -g POWERLEVEL9K_LUAENV_SOURCES=(shell local global) | |
# If set to false, hide lua version if it's the same as global: | |
# $(luaenv version-name) == $(luaenv global). | |
typeset -g POWERLEVEL9K_LUAENV_PROMPT_ALWAYS_SHOW=false | |
# If set to false, hide lua version if it's equal to "system". | |
typeset -g POWERLEVEL9K_LUAENV_SHOW_SYSTEM=true | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_LUAENV_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
###############[ jenv: java version from jenv (https://github.com/jenv/jenv) ]################ | |
# Java color. | |
typeset -g POWERLEVEL9K_JENV_FOREGROUND=32 | |
# Hide java version if it doesn't come from one of these sources. | |
typeset -g POWERLEVEL9K_JENV_SOURCES=(shell local global) | |
# If set to false, hide java version if it's the same as global: | |
# $(jenv version-name) == $(jenv global). | |
typeset -g POWERLEVEL9K_JENV_PROMPT_ALWAYS_SHOW=false | |
# If set to false, hide java version if it's equal to "system". | |
typeset -g POWERLEVEL9K_JENV_SHOW_SYSTEM=true | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_JENV_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
###########[ plenv: perl version from plenv (https://github.com/tokuhirom/plenv) ]############ | |
# Perl color. | |
typeset -g POWERLEVEL9K_PLENV_FOREGROUND=67 | |
# Hide perl version if it doesn't come from one of these sources. | |
typeset -g POWERLEVEL9K_PLENV_SOURCES=(shell local global) | |
# If set to false, hide perl version if it's the same as global: | |
# $(plenv version-name) == $(plenv global). | |
typeset -g POWERLEVEL9K_PLENV_PROMPT_ALWAYS_SHOW=false | |
# If set to false, hide perl version if it's equal to "system". | |
typeset -g POWERLEVEL9K_PLENV_SHOW_SYSTEM=true | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_PLENV_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
###########[ perlbrew: perl version from perlbrew (https://github.com/gugod/App-perlbrew) ]############ | |
# Perlbrew color. | |
typeset -g POWERLEVEL9K_PERLBREW_FOREGROUND=67 | |
# Show perlbrew version only when in a perl project subdirectory. | |
typeset -g POWERLEVEL9K_PERLBREW_PROJECT_ONLY=true | |
# Don't show "perl-" at the front. | |
typeset -g POWERLEVEL9K_PERLBREW_SHOW_PREFIX=false | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_PERLBREW_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
############[ phpenv: php version from phpenv (https://github.com/phpenv/phpenv) ]############ | |
# PHP color. | |
typeset -g POWERLEVEL9K_PHPENV_FOREGROUND=99 | |
# Hide php version if it doesn't come from one of these sources. | |
typeset -g POWERLEVEL9K_PHPENV_SOURCES=(shell local global) | |
# If set to false, hide php version if it's the same as global: | |
# $(phpenv version-name) == $(phpenv global). | |
typeset -g POWERLEVEL9K_PHPENV_PROMPT_ALWAYS_SHOW=false | |
# If set to false, hide php version if it's equal to "system". | |
typeset -g POWERLEVEL9K_PHPENV_SHOW_SYSTEM=true | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_PHPENV_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
#######[ scalaenv: scala version from scalaenv (https://github.com/scalaenv/scalaenv) ]####### | |
# Scala color. | |
typeset -g POWERLEVEL9K_SCALAENV_FOREGROUND=160 | |
# Hide scala version if it doesn't come from one of these sources. | |
typeset -g POWERLEVEL9K_SCALAENV_SOURCES=(shell local global) | |
# If set to false, hide scala version if it's the same as global: | |
# $(scalaenv version-name) == $(scalaenv global). | |
typeset -g POWERLEVEL9K_SCALAENV_PROMPT_ALWAYS_SHOW=false | |
# If set to false, hide scala version if it's equal to "system". | |
typeset -g POWERLEVEL9K_SCALAENV_SHOW_SYSTEM=true | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_SCALAENV_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
##########[ haskell_stack: haskell version from stack (https://haskellstack.org/) ]########### | |
# Haskell color. | |
typeset -g POWERLEVEL9K_HASKELL_STACK_FOREGROUND=172 | |
# Hide haskell version if it doesn't come from one of these sources. | |
# | |
# shell: version is set by STACK_YAML | |
# local: version is set by stack.yaml up the directory tree | |
# global: version is set by the implicit global project (~/.stack/global-project/stack.yaml) | |
typeset -g POWERLEVEL9K_HASKELL_STACK_SOURCES=(shell local) | |
# If set to false, hide haskell version if it's the same as in the implicit global project. | |
typeset -g POWERLEVEL9K_HASKELL_STACK_ALWAYS_SHOW=true | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_HASKELL_STACK_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]############# | |
# Show kubecontext only when the command you are typing invokes one of these tools. | |
# Tip: Remove the next line to always show kubecontext. | |
typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito|k9s|helmfile|flux|fluxctl|stern|kubeseal|skaffold' | |
# Kubernetes context classes for the purpose of using different colors, icons and expansions with | |
# different contexts. | |
# | |
# POWERLEVEL9K_KUBECONTEXT_CLASSES is an array with even number of elements. The first element | |
# in each pair defines a pattern against which the current kubernetes context gets matched. | |
# More specifically, it's P9K_CONTENT prior to the application of context expansion (see below) | |
# that gets matched. If you unset all POWERLEVEL9K_KUBECONTEXT_*CONTENT_EXPANSION parameters, | |
# you'll see this value in your prompt. The second element of each pair in | |
# POWERLEVEL9K_KUBECONTEXT_CLASSES defines the context class. Patterns are tried in order. The | |
# first match wins. | |
# | |
# For example, given these settings: | |
# | |
# typeset -g POWERLEVEL9K_KUBECONTEXT_CLASSES=( | |
# '*prod*' PROD | |
# '*test*' TEST | |
# '*' DEFAULT) | |
# | |
# If your current kubernetes context is "deathray-testing/default", its class is TEST | |
# because "deathray-testing/default" doesn't match the pattern '*prod*' but does match '*test*'. | |
# | |
# You can define different colors, icons and content expansions for different classes: | |
# | |
# typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_FOREGROUND=28 | |
# typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <' | |
typeset -g POWERLEVEL9K_KUBECONTEXT_CLASSES=( | |
# '*prod*' PROD # These values are examples that are unlikely | |
# '*test*' TEST # to match your needs. Customize them as needed. | |
'*' DEFAULT) | |
typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_FOREGROUND=134 | |
# typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# Use POWERLEVEL9K_KUBECONTEXT_CONTENT_EXPANSION to specify the content displayed by kubecontext | |
# segment. Parameter expansions are very flexible and fast, too. See reference: | |
# http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion. | |
# | |
# Within the expansion the following parameters are always available: | |
# | |
# - P9K_CONTENT The content that would've been displayed if there was no content | |
# expansion defined. | |
# - P9K_KUBECONTEXT_NAME The current context's name. Corresponds to column NAME in the | |
# output of `kubectl config get-contexts`. | |
# - P9K_KUBECONTEXT_CLUSTER The current context's cluster. Corresponds to column CLUSTER in the | |
# output of `kubectl config get-contexts`. | |
# - P9K_KUBECONTEXT_NAMESPACE The current context's namespace. Corresponds to column NAMESPACE | |
# in the output of `kubectl config get-contexts`. If there is no | |
# namespace, the parameter is set to "default". | |
# - P9K_KUBECONTEXT_USER The current context's user. Corresponds to column AUTHINFO in the | |
# output of `kubectl config get-contexts`. | |
# | |
# If the context points to Google Kubernetes Engine (GKE) or Elastic Kubernetes Service (EKS), | |
# the following extra parameters are available: | |
# | |
# - P9K_KUBECONTEXT_CLOUD_NAME Either "gke" or "eks". | |
# - P9K_KUBECONTEXT_CLOUD_ACCOUNT Account/project ID. | |
# - P9K_KUBECONTEXT_CLOUD_ZONE Availability zone. | |
# - P9K_KUBECONTEXT_CLOUD_CLUSTER Cluster. | |
# | |
# P9K_KUBECONTEXT_CLOUD_* parameters are derived from P9K_KUBECONTEXT_CLUSTER. For example, | |
# if P9K_KUBECONTEXT_CLUSTER is "gke_my-account_us-east1-a_my-cluster-01": | |
# | |
# - P9K_KUBECONTEXT_CLOUD_NAME=gke | |
# - P9K_KUBECONTEXT_CLOUD_ACCOUNT=my-account | |
# - P9K_KUBECONTEXT_CLOUD_ZONE=us-east1-a | |
# - P9K_KUBECONTEXT_CLOUD_CLUSTER=my-cluster-01 | |
# | |
# If P9K_KUBECONTEXT_CLUSTER is "arn:aws:eks:us-east-1:123456789012:cluster/my-cluster-01": | |
# | |
# - P9K_KUBECONTEXT_CLOUD_NAME=eks | |
# - P9K_KUBECONTEXT_CLOUD_ACCOUNT=123456789012 | |
# - P9K_KUBECONTEXT_CLOUD_ZONE=us-east-1 | |
# - P9K_KUBECONTEXT_CLOUD_CLUSTER=my-cluster-01 | |
typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION= | |
# Show P9K_KUBECONTEXT_CLOUD_CLUSTER if it's not empty and fall back to P9K_KUBECONTEXT_NAME. | |
POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION+='${P9K_KUBECONTEXT_CLOUD_CLUSTER:-${P9K_KUBECONTEXT_NAME}}' | |
# Append the current context's namespace if it's not "default". | |
POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION+='${${:-/$P9K_KUBECONTEXT_NAMESPACE}:#/default}' | |
# Custom prefix. | |
typeset -g POWERLEVEL9K_KUBECONTEXT_PREFIX='%fat ' | |
################[ terraform: terraform workspace (https://www.terraform.io) ]################# | |
# Don't show terraform workspace if it's literally "default". | |
typeset -g POWERLEVEL9K_TERRAFORM_SHOW_DEFAULT=false | |
# POWERLEVEL9K_TERRAFORM_CLASSES is an array with even number of elements. The first element | |
# in each pair defines a pattern against which the current terraform workspace gets matched. | |
# More specifically, it's P9K_CONTENT prior to the application of context expansion (see below) | |
# that gets matched. If you unset all POWERLEVEL9K_TERRAFORM_*CONTENT_EXPANSION parameters, | |
# you'll see this value in your prompt. The second element of each pair in | |
# POWERLEVEL9K_TERRAFORM_CLASSES defines the workspace class. Patterns are tried in order. The | |
# first match wins. | |
# | |
# For example, given these settings: | |
# | |
# typeset -g POWERLEVEL9K_TERRAFORM_CLASSES=( | |
# '*prod*' PROD | |
# '*test*' TEST | |
# '*' OTHER) | |
# | |
# If your current terraform workspace is "project_test", its class is TEST because "project_test" | |
# doesn't match the pattern '*prod*' but does match '*test*'. | |
# | |
# You can define different colors, icons and content expansions for different classes: | |
# | |
# typeset -g POWERLEVEL9K_TERRAFORM_TEST_FOREGROUND=28 | |
# typeset -g POWERLEVEL9K_TERRAFORM_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_TERRAFORM_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <' | |
typeset -g POWERLEVEL9K_TERRAFORM_CLASSES=( | |
# '*prod*' PROD # These values are examples that are unlikely | |
# '*test*' TEST # to match your needs. Customize them as needed. | |
'*' OTHER) | |
typeset -g POWERLEVEL9K_TERRAFORM_OTHER_FOREGROUND=38 | |
# typeset -g POWERLEVEL9K_TERRAFORM_OTHER_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
#############[ terraform_version: terraform version (https://www.terraform.io) ]############## | |
# Terraform version color. | |
typeset -g POWERLEVEL9K_TERRAFORM_VERSION_FOREGROUND=38 | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_TERRAFORM_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
#[ aws: aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) ]# | |
# Show aws only when the command you are typing invokes one of these tools. | |
# Tip: Remove the next line to always show aws. | |
typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|awless|terraform|pulumi|terragrunt' | |
# POWERLEVEL9K_AWS_CLASSES is an array with even number of elements. The first element | |
# in each pair defines a pattern against which the current AWS profile gets matched. | |
# More specifically, it's P9K_CONTENT prior to the application of context expansion (see below) | |
# that gets matched. If you unset all POWERLEVEL9K_AWS_*CONTENT_EXPANSION parameters, | |
# you'll see this value in your prompt. The second element of each pair in | |
# POWERLEVEL9K_AWS_CLASSES defines the profile class. Patterns are tried in order. The | |
# first match wins. | |
# | |
# For example, given these settings: | |
# | |
# typeset -g POWERLEVEL9K_AWS_CLASSES=( | |
# '*prod*' PROD | |
# '*test*' TEST | |
# '*' DEFAULT) | |
# | |
# If your current AWS profile is "company_test", its class is TEST | |
# because "company_test" doesn't match the pattern '*prod*' but does match '*test*'. | |
# | |
# You can define different colors, icons and content expansions for different classes: | |
# | |
# typeset -g POWERLEVEL9K_AWS_TEST_FOREGROUND=28 | |
# typeset -g POWERLEVEL9K_AWS_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_AWS_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <' | |
typeset -g POWERLEVEL9K_AWS_CLASSES=( | |
# '*prod*' PROD # These values are examples that are unlikely | |
# '*test*' TEST # to match your needs. Customize them as needed. | |
'*' DEFAULT) | |
typeset -g POWERLEVEL9K_AWS_DEFAULT_FOREGROUND=208 | |
# typeset -g POWERLEVEL9K_AWS_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# AWS segment format. The following parameters are available within the expansion. | |
# | |
# - P9K_AWS_PROFILE The name of the current AWS profile. | |
# - P9K_AWS_REGION The region associated with the current AWS profile. | |
typeset -g POWERLEVEL9K_AWS_CONTENT_EXPANSION='${P9K_AWS_PROFILE//\%/%%}${P9K_AWS_REGION:+ ${P9K_AWS_REGION//\%/%%}}' | |
#[ aws_eb_env: aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/) ]# | |
# AWS Elastic Beanstalk environment color. | |
typeset -g POWERLEVEL9K_AWS_EB_ENV_FOREGROUND=70 | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_AWS_EB_ENV_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
##########[ azure: azure account name (https://docs.microsoft.com/en-us/cli/azure) ]########## | |
# Show azure only when the command you are typing invokes one of these tools. | |
# Tip: Remove the next line to always show azure. | |
typeset -g POWERLEVEL9K_AZURE_SHOW_ON_COMMAND='az|terraform|pulumi|terragrunt' | |
# Azure account name color. | |
typeset -g POWERLEVEL9K_AZURE_FOREGROUND=32 | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_AZURE_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
##########[ gcloud: google cloud account and project (https://cloud.google.com/) ]########### | |
# Show gcloud only when the command you are typing invokes one of these tools. | |
# Tip: Remove the next line to always show gcloud. | |
typeset -g POWERLEVEL9K_GCLOUD_SHOW_ON_COMMAND='gcloud|gcs|gsutil' | |
# Google cloud color. | |
typeset -g POWERLEVEL9K_GCLOUD_FOREGROUND=32 | |
# Google cloud format. Change the value of POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION and/or | |
# POWERLEVEL9K_GCLOUD_COMPLETE_CONTENT_EXPANSION if the default is too verbose or not informative | |
# enough. You can use the following parameters in the expansions. Each of them corresponds to the | |
# output of `gcloud` tool. | |
# | |
# Parameter | Source | |
# -------------------------|-------------------------------------------------------------------- | |
# P9K_GCLOUD_CONFIGURATION | gcloud config configurations list --format='value(name)' | |
# P9K_GCLOUD_ACCOUNT | gcloud config get-value account | |
# P9K_GCLOUD_PROJECT_ID | gcloud config get-value project | |
# P9K_GCLOUD_PROJECT_NAME | gcloud projects describe $P9K_GCLOUD_PROJECT_ID --format='value(name)' | |
# | |
# Note: ${VARIABLE//\%/%%} expands to ${VARIABLE} with all occurrences of '%' replaced with '%%'. | |
# | |
# Obtaining project name requires sending a request to Google servers. This can take a long time | |
# and even fail. When project name is unknown, P9K_GCLOUD_PROJECT_NAME is not set and gcloud | |
# prompt segment is in state PARTIAL. When project name gets known, P9K_GCLOUD_PROJECT_NAME gets | |
# set and gcloud prompt segment transitions to state COMPLETE. | |
# | |
# You can customize the format, icon and colors of gcloud segment separately for states PARTIAL | |
# and COMPLETE. You can also hide gcloud in state PARTIAL by setting | |
# POWERLEVEL9K_GCLOUD_PARTIAL_VISUAL_IDENTIFIER_EXPANSION and | |
# POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION to empty. | |
typeset -g POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION='${P9K_GCLOUD_PROJECT_ID//\%/%%}' | |
typeset -g POWERLEVEL9K_GCLOUD_COMPLETE_CONTENT_EXPANSION='${P9K_GCLOUD_PROJECT_NAME//\%/%%}' | |
# Send a request to Google (by means of `gcloud projects describe ...`) to obtain project name | |
# this often. Negative value disables periodic polling. In this mode project name is retrieved | |
# only when the current configuration, account or project id changes. | |
typeset -g POWERLEVEL9K_GCLOUD_REFRESH_PROJECT_NAME_SECONDS=60 | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_GCLOUD_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
#[ google_app_cred: google application credentials (https://cloud.google.com/docs/authentication/production) ]# | |
# Show google_app_cred only when the command you are typing invokes one of these tools. | |
# Tip: Remove the next line to always show google_app_cred. | |
typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_SHOW_ON_COMMAND='terraform|pulumi|terragrunt' | |
# Google application credentials classes for the purpose of using different colors, icons and | |
# expansions with different credentials. | |
# | |
# POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES is an array with even number of elements. The first | |
# element in each pair defines a pattern against which the current kubernetes context gets | |
# matched. More specifically, it's P9K_CONTENT prior to the application of context expansion | |
# (see below) that gets matched. If you unset all POWERLEVEL9K_GOOGLE_APP_CRED_*CONTENT_EXPANSION | |
# parameters, you'll see this value in your prompt. The second element of each pair in | |
# POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES defines the context class. Patterns are tried in order. | |
# The first match wins. | |
# | |
# For example, given these settings: | |
# | |
# typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES=( | |
# '*:*prod*:*' PROD | |
# '*:*test*:*' TEST | |
# '*' DEFAULT) | |
# | |
# If your current Google application credentials is "service_account deathray-testing [email protected]", | |
# its class is TEST because it doesn't match the pattern '* *prod* *' but does match '* *test* *'. | |
# | |
# You can define different colors, icons and content expansions for different classes: | |
# | |
# typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_FOREGROUND=28 | |
# typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_CONTENT_EXPANSION='$P9K_GOOGLE_APP_CRED_PROJECT_ID' | |
typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES=( | |
# '*:*prod*:*' PROD # These values are examples that are unlikely | |
# '*:*test*:*' TEST # to match your needs. Customize them as needed. | |
'*' DEFAULT) | |
typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_FOREGROUND=32 | |
# typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# Use POWERLEVEL9K_GOOGLE_APP_CRED_CONTENT_EXPANSION to specify the content displayed by | |
# google_app_cred segment. Parameter expansions are very flexible and fast, too. See reference: | |
# http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion. | |
# | |
# You can use the following parameters in the expansion. Each of them corresponds to one of the | |
# fields in the JSON file pointed to by GOOGLE_APPLICATION_CREDENTIALS. | |
# | |
# Parameter | JSON key file field | |
# ---------------------------------+--------------- | |
# P9K_GOOGLE_APP_CRED_TYPE | type | |
# P9K_GOOGLE_APP_CRED_PROJECT_ID | project_id | |
# P9K_GOOGLE_APP_CRED_CLIENT_EMAIL | client_email | |
# | |
# Note: ${VARIABLE//\%/%%} expands to ${VARIABLE} with all occurrences of '%' replaced by '%%'. | |
typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_CONTENT_EXPANSION='${P9K_GOOGLE_APP_CRED_PROJECT_ID//\%/%%}' | |
##############[ toolbox: toolbox name (https://github.com/containers/toolbox) ]############### | |
# Toolbox color. | |
typeset -g POWERLEVEL9K_TOOLBOX_FOREGROUND=178 | |
# Don't display the name of the toolbox if it matches fedora-toolbox-*. | |
typeset -g POWERLEVEL9K_TOOLBOX_CONTENT_EXPANSION='${P9K_TOOLBOX_NAME:#fedora-toolbox-*}' | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_TOOLBOX_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# Custom prefix. | |
typeset -g POWERLEVEL9K_TOOLBOX_PREFIX='%fin ' | |
###############################[ public_ip: public IP address ]############################### | |
# Public IP color. | |
typeset -g POWERLEVEL9K_PUBLIC_IP_FOREGROUND=94 | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_PUBLIC_IP_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
########################[ vpn_ip: virtual private network indicator ]######################### | |
# VPN IP color. | |
typeset -g POWERLEVEL9K_VPN_IP_FOREGROUND=81 | |
# When on VPN, show just an icon without the IP address. | |
# Tip: To display the private IP address when on VPN, remove the next line. | |
typeset -g POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION= | |
# Regular expression for the VPN network interface. Run `ifconfig` or `ip -4 a show` while on VPN | |
# to see the name of the interface. | |
typeset -g POWERLEVEL9K_VPN_IP_INTERFACE='(gpd|wg|(.*tun)|tailscale)[0-9]*' | |
# If set to true, show one segment per matching network interface. If set to false, show only | |
# one segment corresponding to the first matching network interface. | |
# Tip: If you set it to true, you'll probably want to unset POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION. | |
typeset -g POWERLEVEL9K_VPN_IP_SHOW_ALL=false | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_VPN_IP_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
###########[ ip: ip address and bandwidth usage for a specified network interface ]########### | |
# IP color. | |
typeset -g POWERLEVEL9K_IP_FOREGROUND=38 | |
# The following parameters are accessible within the expansion: | |
# | |
# Parameter | Meaning | |
# ----------------------+------------------------------------------- | |
# P9K_IP_IP | IP address | |
# P9K_IP_INTERFACE | network interface | |
# P9K_IP_RX_BYTES | total number of bytes received | |
# P9K_IP_TX_BYTES | total number of bytes sent | |
# P9K_IP_RX_BYTES_DELTA | number of bytes received since last prompt | |
# P9K_IP_TX_BYTES_DELTA | number of bytes sent since last prompt | |
# P9K_IP_RX_RATE | receive rate (since last prompt) | |
# P9K_IP_TX_RATE | send rate (since last prompt) | |
typeset -g POWERLEVEL9K_IP_CONTENT_EXPANSION='$P9K_IP_IP${P9K_IP_RX_RATE:+ %70F⇣$P9K_IP_RX_RATE}${P9K_IP_TX_RATE:+ %215F⇡$P9K_IP_TX_RATE}' | |
# Show information for the first network interface whose name matches this regular expression. | |
# Run `ifconfig` or `ip -4 a show` to see the names of all network interfaces. | |
typeset -g POWERLEVEL9K_IP_INTERFACE='[ew].*' | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_IP_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
#########################[ proxy: system-wide http/https/ftp proxy ]########################## | |
# Proxy color. | |
typeset -g POWERLEVEL9K_PROXY_FOREGROUND=68 | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_PROXY_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
################################[ battery: internal battery ]################################# | |
# Show battery in red when it's below this level and not connected to power supply. | |
typeset -g POWERLEVEL9K_BATTERY_LOW_THRESHOLD=20 | |
typeset -g POWERLEVEL9K_BATTERY_LOW_FOREGROUND=160 | |
# Show battery in green when it's charging or fully charged. | |
typeset -g POWERLEVEL9K_BATTERY_{CHARGING,CHARGED}_FOREGROUND=70 | |
# Show battery in yellow when it's discharging. | |
typeset -g POWERLEVEL9K_BATTERY_DISCONNECTED_FOREGROUND=178 | |
# Battery pictograms going from low to high level of charge. | |
typeset -g POWERLEVEL9K_BATTERY_STAGES='\uf58d\uf579\uf57a\uf57b\uf57c\uf57d\uf57e\uf57f\uf580\uf581\uf578' | |
# Don't show the remaining time to charge/discharge. | |
typeset -g POWERLEVEL9K_BATTERY_VERBOSE=false | |
#####################################[ wifi: wifi speed ]##################################### | |
# WiFi color. | |
typeset -g POWERLEVEL9K_WIFI_FOREGROUND=68 | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_WIFI_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# Use different colors and icons depending on signal strength ($P9K_WIFI_BARS). | |
# | |
# # Wifi colors and icons for different signal strength levels (low to high). | |
# typeset -g my_wifi_fg=(68 68 68 68 68) # <-- change these values | |
# typeset -g my_wifi_icon=('WiFi' 'WiFi' 'WiFi' 'WiFi' 'WiFi') # <-- change these values | |
# | |
# typeset -g POWERLEVEL9K_WIFI_CONTENT_EXPANSION='%F{${my_wifi_fg[P9K_WIFI_BARS+1]}}$P9K_WIFI_LAST_TX_RATE Mbps' | |
# typeset -g POWERLEVEL9K_WIFI_VISUAL_IDENTIFIER_EXPANSION='%F{${my_wifi_fg[P9K_WIFI_BARS+1]}}${my_wifi_icon[P9K_WIFI_BARS+1]}' | |
# | |
# The following parameters are accessible within the expansions: | |
# | |
# Parameter | Meaning | |
# ----------------------+--------------- | |
# P9K_WIFI_SSID | service set identifier, a.k.a. network name | |
# P9K_WIFI_LINK_AUTH | authentication protocol such as "wpa2-psk" or "none"; empty if unknown | |
# P9K_WIFI_LAST_TX_RATE | wireless transmit rate in megabits per second | |
# P9K_WIFI_RSSI | signal strength in dBm, from -120 to 0 | |
# P9K_WIFI_NOISE | noise in dBm, from -120 to 0 | |
# P9K_WIFI_BARS | signal strength in bars, from 0 to 4 (derived from P9K_WIFI_RSSI and P9K_WIFI_NOISE) | |
####################################[ time: current time ]#################################### | |
# Current time color. | |
typeset -g POWERLEVEL9K_TIME_FOREGROUND=66 | |
# Format for the current time: 09:51:02. See `man 3 strftime`. | |
typeset -g POWERLEVEL9K_TIME_FORMAT='%D{%I:%M:%S %p}' | |
# If set to true, time will update when you hit enter. This way prompts for the past | |
# commands will contain the start times of their commands as opposed to the default | |
# behavior where they contain the end times of their preceding commands. | |
typeset -g POWERLEVEL9K_TIME_UPDATE_ON_COMMAND=false | |
# Custom icon. | |
# typeset -g POWERLEVEL9K_TIME_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# Custom prefix. | |
typeset -g POWERLEVEL9K_TIME_PREFIX='%fat ' | |
# Example of a user-defined prompt segment. Function prompt_example will be called on every | |
# prompt if `example` prompt segment is added to POWERLEVEL9K_LEFT_PROMPT_ELEMENTS or | |
# POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS. It displays an icon and orange text greeting the user. | |
# | |
# Type `p10k help segment` for documentation and a more sophisticated example. | |
function prompt_example() { | |
p10k segment -f 208 -i '⭐' -t 'hello, %n' | |
} | |
# User-defined prompt segments may optionally provide an instant_prompt_* function. Its job | |
# is to generate the prompt segment for display in instant prompt. See | |
# https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt. | |
# | |
# Powerlevel10k will call instant_prompt_* at the same time as the regular prompt_* function | |
# and will record all `p10k segment` calls it makes. When displaying instant prompt, Powerlevel10k | |
# will replay these calls without actually calling instant_prompt_*. It is imperative that | |
# instant_prompt_* always makes the same `p10k segment` calls regardless of environment. If this | |
# rule is not observed, the content of instant prompt will be incorrect. | |
# | |
# Usually, you should either not define instant_prompt_* or simply call prompt_* from it. If | |
# instant_prompt_* is not defined for a segment, the segment won't be shown in instant prompt. | |
function instant_prompt_example() { | |
# Since prompt_example always makes the same `p10k segment` calls, we can call it from | |
# instant_prompt_example. This will give us the same `example` prompt segment in the instant | |
# and regular prompts. | |
prompt_example | |
} | |
# User-defined prompt segments can be customized the same way as built-in segments. | |
# typeset -g POWERLEVEL9K_EXAMPLE_FOREGROUND=208 | |
# typeset -g POWERLEVEL9K_EXAMPLE_VISUAL_IDENTIFIER_EXPANSION='⭐' | |
# Transient prompt works similarly to the builtin transient_rprompt option. It trims down prompt | |
# when accepting a command line. Supported values: | |
# | |
# - off: Don't change prompt when accepting a command line. | |
# - always: Trim down prompt when accepting a command line. | |
# - same-dir: Trim down prompt when accepting a command line unless this is the first command | |
# typed after changing current working directory. | |
typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=always | |
# Instant prompt mode. | |
# | |
# - off: Disable instant prompt. Choose this if you've tried instant prompt and found | |
# it incompatible with your zsh configuration files. | |
# - quiet: Enable instant prompt and don't print warnings when detecting console output | |
# during zsh initialization. Choose this if you've read and understood | |
# https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt. | |
# - verbose: Enable instant prompt and print a warning when detecting console output during | |
# zsh initialization. Choose this if you've never tried instant prompt, haven't | |
# seen the warning, or if you are unsure what this all means. | |
typeset -g POWERLEVEL9K_INSTANT_PROMPT=verbose | |
# Hot reload allows you to change POWERLEVEL9K options after Powerlevel10k has been initialized. | |
# For example, you can type POWERLEVEL9K_BACKGROUND=red and see your prompt turn red. Hot reload | |
# can slow down prompt by 1-2 milliseconds, so it's better to keep it turned off unless you | |
# really need it. | |
typeset -g POWERLEVEL9K_DISABLE_HOT_RELOAD=true | |
# If p10k is already loaded, reload configuration. | |
# This works even with POWERLEVEL9K_DISABLE_HOT_RELOAD=true. | |
(( ! $+functions[p10k] )) || p10k reload | |
} | |
# Tell `p10k configure` which file it should overwrite. | |
typeset -g POWERLEVEL9K_CONFIG_FILE=${${(%):-%x}:a} | |
(( ${#p10k_config_opts} )) && setopt ${p10k_config_opts[@]} | |
'builtin' 'unset' 'p10k_config_opts' |
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
call plug#begin() | |
"Fuzzy search | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
"Status bar and it's themes | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
"For Git Status line and got commands | |
Plug 'tpope/vim-fugitive' | |
call plug#end() | |
"Enable the Tab line | |
let g: airline#extensions#tabline#enabled = 1 | |
"Need cool symbols | |
let g: airline_powerline_fonts = 1 | |
let g: airline_detect_modified = 1 |
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 | |
# If you come from bash you might have to change your $PATH. | |
export PATH=$HOME/bin:/usr/local/bin:$HOME/.local/share/gem/ruby/3.0.0/bin:$HOME/.local/bin:$HOME/go/bin:$PATH | |
export PAGER=most | |
# Path to your oh-my-zsh installation. | |
export ZSH="$HOME/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes | |
ZSH_THEME="powerlevel10k/powerlevel10k" | |
# Set list of themes to pick from when loading at random | |
# Setting this variable when ZSH_THEME=random will cause zsh to load | |
# a theme from this variable instead of looking in $ZSH/themes/ | |
# If set to an empty array, this variable will have no effect. | |
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) | |
# Uncomment the following line to use case-sensitive completion. | |
# CASE_SENSITIVE="true" | |
# Uncomment the following line to use hyphen-insensitive completion. | |
# Case-sensitive completion must be off. _ and - will be interchangeable. | |
# HYPHEN_INSENSITIVE="true" | |
# Uncomment one of the following lines to change the auto-update behavior | |
# zstyle ':omz:update' mode disabled # disable automatic updates | |
# zstyle ':omz:update' mode auto # update automatically without asking | |
# zstyle ':omz:update' mode reminder # just remind me to update when it's time | |
# Uncomment the following line to change how often to auto-update (in days). | |
# zstyle ':omz:update' frequency 13 | |
# Uncomment the following line if pasting URLs and other text is messed up. | |
# DISABLE_MAGIC_FUNCTIONS="true" | |
# Uncomment the following line to disable colors in ls. | |
# DISABLE_LS_COLORS="true" | |
# Uncomment the following line to disable auto-setting terminal title. | |
# DISABLE_AUTO_TITLE="true" | |
# Uncomment the following line to enable command auto-correction. | |
# ENABLE_CORRECTION="true" | |
# Uncomment the following line to display red dots whilst waiting for completion. | |
# You can also set it to another string to have that shown instead of the default red dots. | |
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f" | |
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765) | |
# COMPLETION_WAITING_DOTS="true" | |
# Uncomment the following line if you want to disable marking untracked files | |
# under VCS as dirty. This makes repository status check for large repositories | |
# much, much faster. | |
# DISABLE_UNTRACKED_FILES_DIRTY="true" | |
# Uncomment the following line if you want to change the command execution time | |
# stamp shown in the history command output. | |
# You can set one of the optional three formats: | |
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
# or set a custom format using the strftime function format specifications, | |
# see 'man strftime' for details. | |
# HIST_STAMPS="mm/dd/yyyy" | |
# Would you like to use another custom folder than $ZSH/custom? | |
# ZSH_CUSTOM=/path/to/new-custom-folder | |
# Which plugins would you like to load? | |
# Standard plugins can be found in $ZSH/plugins/ | |
# Custom plugins may be added to $ZSH_CUSTOM/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse) | |
# Add wisely, as too many plugins slow down shell startup. | |
plugins=(git colorize zsh-navigation-tools zsh-interactive-cd zsh-syntax-highlighting zsh-autosuggestions) | |
source $ZSH/oh-my-zsh.sh | |
# User configuration | |
# export MANPATH="/usr/local/man:$MANPATH" | |
# You may need to manually set your language environment | |
# export LANG=en_US.UTF-8 | |
# Preferred editor for local and remote sessions | |
if [[ -n $SSH_CONNECTION ]]; then | |
export EDITOR='vim' | |
else | |
export EDITOR='vim' | |
fi | |
# Compilation flags | |
# export ARCHFLAGS="-arch x86_64" | |
# Set personal aliases, overriding those provided by oh-my-zsh libs, | |
# plugins, and themes. Aliases can be placed here, though oh-my-zsh | |
# users are encouraged to define aliases within the ZSH_CUSTOM folder. | |
# For a full list of active aliases, run `alias`. | |
# | |
# Example aliases | |
# alias zshconfig="mate ~/.zshrc" | |
# alias ohmyzsh="mate ~/.oh-my-zsh" | |
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. | |
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh | |
# colorls config | |
source $(dirname $(gem which colorls))/tab_complete.sh | |
if [ -x "$(command -v colorls)" ]; then | |
alias ls="colorls" | |
alias la="colorls -lA --sd" | |
fi | |
#LFCD bindings | |
LFCD=~/.config/lf/lfcd.sh | |
if [ -f "$LFCD" ]; then | |
source "$LFCD" | |
fi | |
#bind ctrl+o to open lfcd | |
bindkey -s ^o 'lfcd\n' | |
if [ -x "$(command -v alacritty-colorscheme)" ]; then | |
alias ala-col="alacritty-colorscheme" | |
fi | |
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
# Configuration for Alacritty, the GPU enhanced terminal emulator. | |
# Import additional configuration files | |
# | |
# Imports are loaded in order, skipping all missing files, with the importing | |
# file being loaded last. If a field is already present in a previous import, it | |
# will be replaced. | |
# | |
# All imports must either be absolute paths starting with `/`, or paths relative | |
# to the user's home directory starting with `~/`. | |
#import: | |
# - /path/to/alacritty.yml | |
# Any items in the `env` entry below will be added as | |
# environment variables. Some entries may override variables | |
# set by alacritty itself. | |
#env: | |
# TERM variable | |
# | |
# This value is used to set the `$TERM` environment variable for | |
# each instance of Alacritty. If it is not present, alacritty will | |
# check the local terminfo database and use `alacritty` if it is | |
# available, otherwise `xterm-256color` is used. | |
#TERM: alacritty | |
window: | |
# Window dimensions (changes require restart) | |
# | |
# Number of lines/columns (not pixels) in the terminal. The number of columns | |
# must be at least `2`, while using a value of `0` for columns and lines will | |
# fall back to the window manager's recommended size. | |
#dimensions: | |
# columns: 0 | |
# lines: 0 | |
# Window position (changes require restart) | |
# | |
# Specified in number of pixels. | |
# If the position is not set, the window manager will handle the placement. | |
#position: | |
# x: 0 | |
# y: 0 | |
# Window padding (changes require restart) | |
# | |
# Blank space added around the window in pixels. This padding is scaled | |
# by DPI and the specified value is always added at both opposing sides. | |
padding: | |
x: 3 | |
y: 3 | |
# Spread additional padding evenly around the terminal content. | |
#dynamic_padding: false | |
# Window decorations | |
# | |
# Values for `decorations`: | |
# - full: Borders and title bar | |
# - none: Neither borders nor title bar | |
# | |
# Values for `decorations` (macOS only): | |
# - transparent: Title bar, transparent background and title bar buttons | |
# - buttonless: Title bar, transparent background and no title bar buttons | |
#decorations: full | |
# Background opacity | |
# | |
# Window opacity as a floating point number from `0.0` to `1.0`. | |
# The value `0.0` is completely transparent and `1.0` is opaque. | |
opacity: 0.8 | |
# Startup Mode (changes require restart) | |
# | |
# Values for `startup_mode`: | |
# - Windowed | |
# - Maximized | |
# - Fullscreen | |
# | |
# Values for `startup_mode` (macOS only): | |
# - SimpleFullscreen | |
#startup_mode: Windowed | |
# Window title | |
#title: Alacritty | |
# Allow terminal applications to change Alacritty's window title. | |
#dynamic_title: true | |
# Window class (Linux/BSD only): | |
#class: | |
# Application instance name | |
#instance: Alacritty | |
# General application class | |
#general: Alacritty | |
# GTK theme variant (Linux/BSD only) | |
# | |
# Override the variant of the GTK theme. Commonly supported values are `dark` | |
# and `light`. Set this to `None` to use the default theme variant. | |
#gtk_theme_variant: None | |
#scrolling: | |
# Maximum number of lines in the scrollback buffer. | |
# Specifying '0' will disable scrolling. | |
#history: 10000 | |
# Scrolling distance multiplier. | |
#multiplier: 3 | |
# Font configuration | |
font: | |
# Normal (roman) font face | |
normal: | |
# Font family | |
# | |
# Default: | |
# - (macOS) Menlo | |
# - (Linux/BSD) monospace | |
# - (Windows) Consolas | |
family: MesloLGS NF | |
# The `style` can be specified to pick a specific face. | |
#style: Regular | |
# Bold font face | |
#bold: | |
# Font family | |
# | |
# If the bold family is not specified, it will fall back to the | |
# value specified for the normal font. | |
#family: monospace | |
# The `style` can be specified to pick a specific face. | |
#style: Bold | |
# Italic font face | |
#italic: | |
# Font family | |
# | |
# If the italic family is not specified, it will fall back to the | |
# value specified for the normal font. | |
#family: monospace | |
# The `style` can be specified to pick a specific face. | |
#style: Italic | |
# Bold italic font face | |
#bold_italic: | |
# Font family | |
# | |
# If the bold italic family is not specified, it will fall back to the | |
# value specified for the normal font. | |
#family: monospace | |
# The `style` can be specified to pick a specific face. | |
#style: Bold Italic | |
# Point size | |
size: 7.0 | |
# Offset is the extra space around each character. `offset.y` can be thought | |
# of as modifying the line spacing, and `offset.x` as modifying the letter | |
# spacing. | |
#offset: | |
# x: 0 | |
# y: 0 | |
# Glyph offset determines the locations of the glyphs within their cells with | |
# the default being at the bottom. Increasing `x` moves the glyph to the | |
# right, increasing `y` moves the glyph upward. | |
#glyph_offset: | |
# x: 0 | |
# y: 0 | |
# Thin stroke font rendering (macOS only) | |
# | |
# Thin strokes are suitable for retina displays, but for non-retina screens | |
# it is recommended to set `use_thin_strokes` to `false`. | |
#use_thin_strokes: true | |
# Use built-in font for box drawing characters. | |
# | |
# If `true`, Alacritty will use a custom built-in font for box drawing | |
# characters (Unicode points 2500 - 259f). | |
# | |
#builtin_box_drawing: true | |
# If `true`, bold text is drawn using the bright color variants. | |
#draw_bold_text_with_bright_colors: false | |
# Colors (Tomorrow Night) | |
#colors: | |
# Default colors | |
#primary: | |
# background: '#1d1f21' | |
# foreground: '#c5c8c6' | |
# Bright and dim foreground colors | |
# | |
# The dimmed foreground color is calculated automatically if it is not | |
# present. If the bright foreground color is not set, or | |
# `draw_bold_text_with_bright_colors` is `false`, the normal foreground | |
# color will be used. | |
#dim_foreground: '#828482' | |
#bright_foreground: '#eaeaea' | |
# Cursor colors | |
# | |
# Colors which should be used to draw the terminal cursor. | |
# | |
# Allowed values are CellForeground/CellBackground, which reference the | |
# affected cell, or hexadecimal colors like #ff00ff. | |
#cursor: | |
# text: CellBackground | |
# cursor: CellForeground | |
# Vi mode cursor colors | |
# | |
# Colors for the cursor when the vi mode is active. | |
# | |
# Allowed values are CellForeground/CellBackground, which reference the | |
# affected cell, or hexadecimal colors like #ff00ff. | |
#vi_mode_cursor: | |
# text: CellBackground | |
# cursor: CellForeground | |
# Search colors | |
# | |
# Colors used for the search bar and match highlighting. | |
#search: | |
# Allowed values are CellForeground/CellBackground, which reference the | |
# affected cell, or hexadecimal colors like #ff00ff. | |
#matches: | |
# foreground: '#000000' | |
# background: '#ffffff' | |
#focused_match: | |
# foreground: '#ffffff' | |
# background: '#000000' | |
#bar: | |
# background: '#c5c8c6' | |
# foreground: '#1d1f21' | |
# Keyboard regex hints | |
#hints: | |
# First character in the hint label | |
# | |
# Allowed values are CellForeground/CellBackground, which reference the | |
# affected cell, or hexadecimal colors like #ff00ff. | |
#start: | |
# foreground: '#1d1f21' | |
# background: '#e9ff5e' | |
# All characters after the first one in the hint label | |
# | |
# Allowed values are CellForeground/CellBackground, which reference the | |
# affected cell, or hexadecimal colors like #ff00ff. | |
#end: | |
# foreground: '#e9ff5e' | |
# background: '#1d1f21' | |
# Line indicator | |
# | |
# Color used for the indicator displaying the position in history during | |
# search and vi mode. | |
# | |
# By default, these will use the opposing primary color. | |
#line_indicator: | |
# foreground: None | |
# background: None | |
# Selection colors | |
# | |
# Colors which should be used to draw the selection area. | |
# | |
# Allowed values are CellForeground/CellBackground, which reference the | |
# affected cell, or hexadecimal colors like #ff00ff. | |
#selection: | |
# text: CellBackground | |
# background: CellForeground | |
# Normal colors | |
#normal: | |
# black: '#1d1f21' | |
# red: '#cc6666' | |
# green: '#b5bd68' | |
# yellow: '#f0c674' | |
# blue: '#81a2be' | |
# magenta: '#b294bb' | |
# cyan: '#8abeb7' | |
# white: '#c5c8c6' | |
# Bright colors | |
#bright: | |
# black: '#666666' | |
# red: '#d54e53' | |
# green: '#b9ca4a' | |
# yellow: '#e7c547' | |
# blue: '#7aa6da' | |
# magenta: '#c397d8' | |
# cyan: '#70c0b1' | |
# white: '#eaeaea' | |
# Dim colors | |
# | |
# If the dim colors are not set, they will be calculated automatically based | |
# on the `normal` colors. | |
#dim: | |
# black: '#131415' | |
# red: '#864343' | |
# green: '#777c44' | |
# yellow: '#9e824c' | |
# blue: '#556a7d' | |
# magenta: '#75617b' | |
# cyan: '#5b7d78' | |
# white: '#828482' | |
# Indexed Colors | |
# | |
# The indexed colors include all colors from 16 to 256. | |
# When these are not set, they're filled with sensible defaults. | |
# | |
# Example: | |
# `- { index: 16, color: '#ff00ff' }` | |
# | |
#indexed_colors: [] | |
# Transparent cell backgrounds | |
# | |
# Whether or not `window.opacity` applies to all cell backgrounds or only to | |
# the default background. When set to `true` all cells will be transparent | |
# regardless of their background color. | |
#transparent_background_colors: false | |
# Bell | |
# | |
# The bell is rung every time the BEL control character is received. | |
#bell: | |
# Visual Bell Animation | |
# | |
# Animation effect for flashing the screen when the visual bell is rung. | |
# | |
# Values for `animation`: | |
# - Ease | |
# - EaseOut | |
# - EaseOutSine | |
# - EaseOutQuad | |
# - EaseOutCubic | |
# - EaseOutQuart | |
# - EaseOutQuint | |
# - EaseOutExpo | |
# - EaseOutCirc | |
# - Linear | |
#animation: EaseOutExpo | |
# Duration of the visual bell flash in milliseconds. A `duration` of `0` will | |
# disable the visual bell animation. | |
#duration: 0 | |
# Visual bell animation color. | |
#color: '#ffffff' | |
# Bell Command | |
# | |
# This program is executed whenever the bell is rung. | |
# | |
# When set to `command: None`, no command will be executed. | |
# | |
# Example: | |
# command: | |
# program: notify-send | |
# args: ["Hello, World!"] | |
# | |
#command: None | |
#selection: | |
# This string contains all characters that are used as separators for | |
# "semantic words" in Alacritty. | |
#semantic_escape_chars: ",│`|:\"' ()[]{}<>\t" | |
# When set to `true`, selected text will be copied to the primary clipboard. | |
#save_to_clipboard: false | |
#cursor: | |
# Cursor style | |
#style: | |
# Cursor shape | |
# | |
# Values for `shape`: | |
# - ▇ Block | |
# - _ Underline | |
# - | Beam | |
#shape: Block | |
# Cursor blinking state | |
# | |
# Values for `blinking`: | |
# - Never: Prevent the cursor from ever blinking | |
# - Off: Disable blinking by default | |
# - On: Enable blinking by default | |
# - Always: Force the cursor to always blink | |
#blinking: Off | |
# Vi mode cursor style | |
# | |
# If the vi mode cursor style is `None` or not specified, it will fall back to | |
# the style of the active value of the normal cursor. | |
# | |
# See `cursor.style` for available options. | |
#vi_mode_style: None | |
# Cursor blinking interval in milliseconds. | |
#blink_interval: 750 | |
# If this is `true`, the cursor will be rendered as a hollow box when the | |
# window is not focused. | |
#unfocused_hollow: true | |
# Thickness of the cursor relative to the cell width as floating point number | |
# from `0.0` to `1.0`. | |
#thickness: 0.15 | |
# Live config reload (changes require restart) | |
#live_config_reload: true | |
# Shell | |
# | |
# You can set `shell.program` to the path of your favorite shell, e.g. | |
# `/bin/fish`. Entries in `shell.args` are passed unmodified as arguments to the | |
# shell. | |
# | |
# Default: | |
# - (macOS) /bin/bash --login | |
# - (Linux/BSD) user login shell | |
# - (Windows) powershell | |
shell: | |
program: /bin/zsh | |
# args: | |
# - --login | |
# Startup directory | |
# | |
# Directory the shell is started in. If this is unset, or `None`, the working | |
# directory of the parent process will be used. | |
#working_directory: None | |
# Send ESC (\x1b) before characters when alt is pressed. | |
#alt_send_esc: true | |
# Offer IPC using `alacritty msg` (unix only) | |
#ipc_socket: true | |
#mouse: | |
# Click settings | |
# | |
# The `double_click` and `triple_click` settings control the time | |
# alacritty should wait for accepting multiple clicks as one double | |
# or triple click. | |
#double_click: { threshold: 300 } | |
#triple_click: { threshold: 300 } | |
# If this is `true`, the cursor is temporarily hidden when typing. | |
#hide_when_typing: false | |
# Regex hints | |
# | |
# Terminal hints can be used to find text in the visible part of the terminal | |
# and pipe it to other applications. | |
#hints: | |
# Keys used for the hint labels. | |
#alphabet: "jfkdls;ahgurieowpq" | |
# List with all available hints | |
# | |
# Each hint must have a `regex` and either an `action` or a `command` field. | |
# The fields `mouse`, `binding` and `post_processing` are optional. | |
# | |
# The fields `command`, `binding.key`, `binding.mods`, `binding.mode` and | |
# `mouse.mods` accept the same values as they do in the `key_bindings` section. | |
# | |
# The `mouse.enabled` field controls if the hint should be underlined while | |
# the mouse with all `mouse.mods` keys held or the vi mode cursor is above it. | |
# | |
# If the `post_processing` field is set to `true`, heuristics will be used to | |
# shorten the match if there are characters likely not to be part of the hint | |
# (e.g. a trailing `.`). This is most useful for URIs. | |
# | |
# Values for `action`: | |
# - Copy | |
# Copy the hint's text to the clipboard. | |
# - Paste | |
# Paste the hint's text to the terminal or search. | |
# - Select | |
# Select the hint's text. | |
# - MoveViModeCursor | |
# Move the vi mode cursor to the beginning of the hint. | |
#enabled: | |
# - regex: "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\ | |
# [^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+" | |
# command: xdg-open | |
# post_processing: true | |
# mouse: | |
# enabled: true | |
# mods: None | |
# binding: | |
# key: U | |
# mods: Control|Shift | |
# Mouse bindings | |
# | |
# Mouse bindings are specified as a list of objects, much like the key | |
# bindings further below. | |
# | |
# To trigger mouse bindings when an application running within Alacritty | |
# captures the mouse, the `Shift` modifier is automatically added as a | |
# requirement. | |
# | |
# Each mouse binding will specify a: | |
# | |
# - `mouse`: | |
# | |
# - Middle | |
# - Left | |
# - Right | |
# - Numeric identifier such as `5` | |
# | |
# - `action` (see key bindings for actions not exclusive to mouse mode) | |
# | |
# - Mouse exclusive actions: | |
# | |
# - ExpandSelection | |
# Expand the selection to the current mouse cursor location. | |
# | |
# And optionally: | |
# | |
# - `mods` (see key bindings) | |
#mouse_bindings: | |
# - { mouse: Right, action: ExpandSelection } | |
# - { mouse: Right, mods: Control, action: ExpandSelection } | |
# - { mouse: Middle, mode: ~Vi, action: PasteSelection } | |
# Key bindings | |
# | |
# Key bindings are specified as a list of objects. For example, this is the | |
# default paste binding: | |
# | |
# `- { key: V, mods: Control|Shift, action: Paste }` | |
# | |
# Each key binding will specify a: | |
# | |
# - `key`: Identifier of the key pressed | |
# | |
# - A-Z | |
# - F1-F24 | |
# - Key0-Key9 | |
# | |
# A full list with available key codes can be found here: | |
# https://docs.rs/glutin/*/glutin/event/enum.VirtualKeyCode.html#variants | |
# | |
# Instead of using the name of the keys, the `key` field also supports using | |
# the scancode of the desired key. Scancodes have to be specified as a | |
# decimal number. This command will allow you to display the hex scancodes | |
# for certain keys: | |
# | |
# `showkey --scancodes`. | |
# | |
# Then exactly one of: | |
# | |
# - `chars`: Send a byte sequence to the running application | |
# | |
# The `chars` field writes the specified string to the terminal. This makes | |
# it possible to pass escape sequences. To find escape codes for bindings | |
# like `PageUp` (`"\x1b[5~"`), you can run the command `showkey -a` outside | |
# of tmux. Note that applications use terminfo to map escape sequences back | |
# to keys. It is therefore required to update the terminfo when changing an | |
# escape sequence. | |
# | |
# - `action`: Execute a predefined action | |
# | |
# - ToggleViMode | |
# - SearchForward | |
# Start searching toward the right of the search origin. | |
# - SearchBackward | |
# Start searching toward the left of the search origin. | |
# - Copy | |
# - Paste | |
# - IncreaseFontSize | |
# - DecreaseFontSize | |
# - ResetFontSize | |
# - ScrollPageUp | |
# - ScrollPageDown | |
# - ScrollHalfPageUp | |
# - ScrollHalfPageDown | |
# - ScrollLineUp | |
# - ScrollLineDown | |
# - ScrollToTop | |
# - ScrollToBottom | |
# - ClearHistory | |
# Remove the terminal's scrollback history. | |
# - Hide | |
# Hide the Alacritty window. | |
# - Minimize | |
# Minimize the Alacritty window. | |
# - Quit | |
# Quit Alacritty. | |
# - ToggleFullscreen | |
# - SpawnNewInstance | |
# Spawn a new instance of Alacritty. | |
# - CreateNewWindow | |
# Create a new Alacritty window from the current process. | |
# - ClearLogNotice | |
# Clear Alacritty's UI warning and error notice. | |
# - ClearSelection | |
# Remove the active selection. | |
# - ReceiveChar | |
# - None | |
# | |
# - Vi mode exclusive actions: | |
# | |
# - Open | |
# Perform the action of the first matching hint under the vi mode cursor | |
# with `mouse.enabled` set to `true`. | |
# - ToggleNormalSelection | |
# - ToggleLineSelection | |
# - ToggleBlockSelection | |
# - ToggleSemanticSelection | |
# Toggle semantic selection based on `selection.semantic_escape_chars`. | |
# | |
# - Vi mode exclusive cursor motion actions: | |
# | |
# - Up | |
# One line up. | |
# - Down | |
# One line down. | |
# - Left | |
# One character left. | |
# - Right | |
# One character right. | |
# - First | |
# First column, or beginning of the line when already at the first column. | |
# - Last | |
# Last column, or beginning of the line when already at the last column. | |
# - FirstOccupied | |
# First non-empty cell in this terminal row, or first non-empty cell of | |
# the line when already at the first cell of the row. | |
# - High | |
# Top of the screen. | |
# - Middle | |
# Center of the screen. | |
# - Low | |
# Bottom of the screen. | |
# - SemanticLeft | |
# Start of the previous semantically separated word. | |
# - SemanticRight | |
# Start of the next semantically separated word. | |
# - SemanticLeftEnd | |
# End of the previous semantically separated word. | |
# - SemanticRightEnd | |
# End of the next semantically separated word. | |
# - WordLeft | |
# Start of the previous whitespace separated word. | |
# - WordRight | |
# Start of the next whitespace separated word. | |
# - WordLeftEnd | |
# End of the previous whitespace separated word. | |
# - WordRightEnd | |
# End of the next whitespace separated word. | |
# - Bracket | |
# Character matching the bracket at the cursor's location. | |
# - SearchNext | |
# Beginning of the next match. | |
# - SearchPrevious | |
# Beginning of the previous match. | |
# - SearchStart | |
# Start of the match to the left of the vi mode cursor. | |
# - SearchEnd | |
# End of the match to the right of the vi mode cursor. | |
# | |
# - Search mode exclusive actions: | |
# - SearchFocusNext | |
# Move the focus to the next search match. | |
# - SearchFocusPrevious | |
# Move the focus to the previous search match. | |
# - SearchConfirm | |
# - SearchCancel | |
# - SearchClear | |
# Reset the search regex. | |
# - SearchDeleteWord | |
# Delete the last word in the search regex. | |
# - SearchHistoryPrevious | |
# Go to the previous regex in the search history. | |
# - SearchHistoryNext | |
# Go to the next regex in the search history. | |
# | |
# - macOS exclusive actions: | |
# - ToggleSimpleFullscreen | |
# Enter fullscreen without occupying another space. | |
# | |
# - Linux/BSD exclusive actions: | |
# | |
# - CopySelection | |
# Copy from the selection buffer. | |
# - PasteSelection | |
# Paste from the selection buffer. | |
# | |
# - `command`: Fork and execute a specified command plus arguments | |
# | |
# The `command` field must be a map containing a `program` string and an | |
# `args` array of command line parameter strings. For example: | |
# `{ program: "alacritty", args: ["-e", "vttest"] }` | |
# | |
# And optionally: | |
# | |
# - `mods`: Key modifiers to filter binding actions | |
# | |
# - Command | |
# - Control | |
# - Option | |
# - Super | |
# - Shift | |
# - Alt | |
# | |
# Multiple `mods` can be combined using `|` like this: | |
# `mods: Control|Shift`. | |
# Whitespace and capitalization are relevant and must match the example. | |
# | |
# - `mode`: Indicate a binding for only specific terminal reported modes | |
# | |
# This is mainly used to send applications the correct escape sequences | |
# when in different modes. | |
# | |
# - AppCursor | |
# - AppKeypad | |
# - Search | |
# - Alt | |
# - Vi | |
# | |
# A `~` operator can be used before a mode to apply the binding whenever | |
# the mode is *not* active, e.g. `~Alt`. | |
# | |
# Bindings are always filled by default, but will be replaced when a new | |
# binding with the same triggers is defined. To unset a default binding, it can | |
# be mapped to the `ReceiveChar` action. Alternatively, you can use `None` for | |
# a no-op if you do not wish to receive input characters for that binding. | |
# | |
# If the same trigger is assigned to multiple actions, all of them are executed | |
# in the order they were defined in. | |
key_bindings: | |
# Manual Bindings | |
- { key: Return, mods: Control|Shift, action: SpawnNewInstance } | |
#- { key: Paste, action: Paste } | |
#- { key: Copy, action: Copy } | |
#- { key: L, mods: Control, action: ClearLogNotice } | |
#- { key: L, mods: Control, mode: ~Vi|~Search, chars: "\x0c" } | |
#- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp, } | |
#- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown } | |
#- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, } | |
#- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom } | |
# Vi Mode | |
#- { key: Space, mods: Shift|Control, mode: ~Search, action: ToggleViMode } | |
#- { key: Space, mods: Shift|Control, mode: Vi|~Search, action: ScrollToBottom } | |
#- { key: Escape, mode: Vi|~Search, action: ClearSelection } | |
#- { key: I, mode: Vi|~Search, action: ToggleViMode } | |
#- { key: I, mode: Vi|~Search, action: ScrollToBottom } | |
#- { key: C, mods: Control, mode: Vi|~Search, action: ToggleViMode } | |
#- { key: Y, mods: Control, mode: Vi|~Search, action: ScrollLineUp } | |
#- { key: E, mods: Control, mode: Vi|~Search, action: ScrollLineDown } | |
#- { key: G, mode: Vi|~Search, action: ScrollToTop } | |
#- { key: G, mods: Shift, mode: Vi|~Search, action: ScrollToBottom } | |
#- { key: B, mods: Control, mode: Vi|~Search, action: ScrollPageUp } | |
#- { key: F, mods: Control, mode: Vi|~Search, action: ScrollPageDown } | |
#- { key: U, mods: Control, mode: Vi|~Search, action: ScrollHalfPageUp } | |
#- { key: D, mods: Control, mode: Vi|~Search, action: ScrollHalfPageDown } | |
#- { key: Y, mode: Vi|~Search, action: Copy } | |
#- { key: Y, mode: Vi|~Search, action: ClearSelection } | |
#- { key: Copy, mode: Vi|~Search, action: ClearSelection } | |
#- { key: V, mode: Vi|~Search, action: ToggleNormalSelection } | |
#- { key: V, mods: Shift, mode: Vi|~Search, action: ToggleLineSelection } | |
#- { key: V, mods: Control, mode: Vi|~Search, action: ToggleBlockSelection } | |
#- { key: V, mods: Alt, mode: Vi|~Search, action: ToggleSemanticSelection } | |
#- { key: Return, mode: Vi|~Search, action: Open } | |
#- { key: K, mode: Vi|~Search, action: Up } | |
#- { key: J, mode: Vi|~Search, action: Down } | |
#- { key: H, mode: Vi|~Search, action: Left } | |
#- { key: L, mode: Vi|~Search, action: Right } | |
#- { key: Up, mode: Vi|~Search, action: Up } | |
#- { key: Down, mode: Vi|~Search, action: Down } | |
#- { key: Left, mode: Vi|~Search, action: Left } | |
#- { key: Right, mode: Vi|~Search, action: Right } | |
#- { key: Key0, mode: Vi|~Search, action: First } | |
#- { key: Key4, mods: Shift, mode: Vi|~Search, action: Last } | |
#- { key: Key6, mods: Shift, mode: Vi|~Search, action: FirstOccupied } | |
#- { key: H, mods: Shift, mode: Vi|~Search, action: High } | |
#- { key: M, mods: Shift, mode: Vi|~Search, action: Middle } | |
#- { key: L, mods: Shift, mode: Vi|~Search, action: Low } | |
#- { key: B, mode: Vi|~Search, action: SemanticLeft } | |
#- { key: W, mode: Vi|~Search, action: SemanticRight } | |
#- { key: E, mode: Vi|~Search, action: SemanticRightEnd } | |
#- { key: B, mods: Shift, mode: Vi|~Search, action: WordLeft } | |
#- { key: W, mods: Shift, mode: Vi|~Search, action: WordRight } | |
#- { key: E, mods: Shift, mode: Vi|~Search, action: WordRightEnd } | |
#- { key: Key5, mods: Shift, mode: Vi|~Search, action: Bracket } | |
#- { key: Slash, mode: Vi|~Search, action: SearchForward } | |
#- { key: Slash, mods: Shift, mode: Vi|~Search, action: SearchBackward } | |
#- { key: N, mode: Vi|~Search, action: SearchNext } | |
#- { key: N, mods: Shift, mode: Vi|~Search, action: SearchPrevious } | |
# Search Mode | |
#- { key: Return, mode: Search|Vi, action: SearchConfirm } | |
#- { key: Escape, mode: Search, action: SearchCancel } | |
#- { key: C, mods: Control, mode: Search, action: SearchCancel } | |
#- { key: U, mods: Control, mode: Search, action: SearchClear } | |
#- { key: W, mods: Control, mode: Search, action: SearchDeleteWord } | |
#- { key: P, mods: Control, mode: Search, action: SearchHistoryPrevious } | |
#- { key: N, mods: Control, mode: Search, action: SearchHistoryNext } | |
#- { key: Up, mode: Search, action: SearchHistoryPrevious } | |
#- { key: Down, mode: Search, action: SearchHistoryNext } | |
#- { key: Return, mode: Search|~Vi, action: SearchFocusNext } | |
#- { key: Return, mods: Shift, mode: Search|~Vi, action: SearchFocusPrevious } | |
# (Windows, Linux, and BSD only) | |
#- { key: V, mods: Control|Shift, mode: ~Vi, action: Paste } | |
#- { key: C, mods: Control|Shift, action: Copy } | |
#- { key: F, mods: Control|Shift, mode: ~Search, action: SearchForward } | |
#- { key: B, mods: Control|Shift, mode: ~Search, action: SearchBackward } | |
#- { key: C, mods: Control|Shift, mode: Vi|~Search, action: ClearSelection } | |
#- { key: Insert, mods: Shift, action: PasteSelection } | |
#- { key: Key0, mods: Control, action: ResetFontSize } | |
#- { key: Equals, mods: Control, action: IncreaseFontSize } | |
#- { key: Plus, mods: Control, action: IncreaseFontSize } | |
#- { key: NumpadAdd, mods: Control, action: IncreaseFontSize } | |
#- { key: Minus, mods: Control, action: DecreaseFontSize } | |
#- { key: NumpadSubtract, mods: Control, action: DecreaseFontSize } | |
# (Windows only) | |
#- { key: Return, mods: Alt, action: ToggleFullscreen } | |
# (macOS only) | |
#- { key: K, mods: Command, mode: ~Vi|~Search, chars: "\x0c" } | |
#- { key: K, mods: Command, mode: ~Vi|~Search, action: ClearHistory } | |
#- { key: Key0, mods: Command, action: ResetFontSize } | |
#- { key: Equals, mods: Command, action: IncreaseFontSize } | |
#- { key: Plus, mods: Command, action: IncreaseFontSize } | |
#- { key: NumpadAdd, mods: Command, action: IncreaseFontSize } | |
#- { key: Minus, mods: Command, action: DecreaseFontSize } | |
#- { key: NumpadSubtract, mods: Command, action: DecreaseFontSize } | |
#- { key: V, mods: Command, action: Paste } | |
#- { key: C, mods: Command, action: Copy } | |
#- { key: C, mods: Command, mode: Vi|~Search, action: ClearSelection } | |
#- { key: H, mods: Command, action: Hide } | |
#- { key: H, mods: Command|Alt, action: HideOtherApplications } | |
#- { key: M, mods: Command, action: Minimize } | |
#- { key: Q, mods: Command, action: Quit } | |
#- { key: W, mods: Command, action: Quit } | |
#- { key: N, mods: Command, action: SpawnNewInstance } | |
#- { key: F, mods: Command|Control, action: ToggleFullscreen } | |
#- { key: F, mods: Command, mode: ~Search, action: SearchForward } | |
#- { key: B, mods: Command, mode: ~Search, action: SearchBackward } | |
#debug: | |
# Display the time it takes to redraw each frame. | |
#render_timer: false | |
# Keep the log file after quitting Alacritty. | |
#persistent_logging: false | |
# Log level | |
# | |
# Values for `log_level`: | |
# - Off | |
# - Error | |
# - Warn | |
# - Info | |
# - Debug | |
# - Trace | |
#log_level: Warn | |
# Print all received window events. | |
#print_events: false | |
colors: | |
# COLORSCHEME: iterm.yaml | |
# Default colors | |
primary: | |
# hard contrast: background = '0x1d2021' | |
background: '0x101421' | |
foreground: '0xfffbf6' | |
# Normal colors | |
cursor: | |
text: '0xF81CE5' | |
cursor: '0xffffff' | |
# Normal colors | |
normal: | |
black: '0x2e2e2e' | |
red: '0xeb4129' | |
green: '0xabe047' | |
yellow: '0xf6c744' | |
blue: '0x47a0f3' | |
magenta: '0x7b5cb0' | |
cyan: '0x64dbed' | |
white: '0xe5e9f0' | |
# Bright colors | |
bright: | |
black: '0x565656' | |
red: '0xec5357' | |
green: '0xc0e17d' | |
yellow: '0xf9da6a' | |
blue: '0x49a4f8' | |
magenta: '0xa47de9' | |
cyan: '0x99faf2' | |
white: '0xffffff' | |
dim: | |
black: '0x31363b' | |
red: '0x783228' | |
green: '0x17a262' | |
yellow: '0xb65619' | |
blue: '0x1b668f' | |
magenta: '0x614a73' | |
cyan: '0x186c60' | |
white: '0x63686d' |
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
alacritty | |
alsa-utils | |
archlinux-appstream-data | |
archlinux-keyring | |
autoconf | |
automake | |
base | |
bash-completion | |
binutils | |
bison | |
bluez | |
bluez-utils | |
btrfs-progs | |
cmake | |
cppcheck | |
cups | |
cups-pdf | |
debugedit | |
dosfstools | |
efibootmgr | |
extra-cmake-modules | |
fakeroot | |
file | |
findutils | |
firefox | |
flex | |
fontforge | |
fzf | |
gawk | |
gcc | |
gettext | |
git | |
go | |
grep | |
groff | |
grub | |
grub-btrfs | |
grub-customizer | |
gtk2 | |
gzip | |
highlight | |
htop | |
hwinfo | |
inetutils | |
intel-ucode | |
iwd | |
kde-accessibility-meta | |
kde-graphics-meta | |
kde-gtk-config | |
kde-pim-meta | |
kde-system-meta | |
kde-utilities-meta | |
kdenetwork-filesharing | |
kdepim-addons | |
kdeplasma-addons | |
kgamma5 | |
kget | |
khotkeys | |
kinit | |
kio-gdrive | |
kio-zeroconf | |
krdc | |
krfb | |
ksshaskpass | |
ktorrent | |
kwallet-pam | |
kwayland-integration | |
kwrited | |
lib32-mesa | |
lib32-pipewire-jack | |
libtool | |
linux | |
linux-firmware | |
linux-headers | |
m4 | |
make | |
man-db | |
meson | |
most | |
mtools | |
nano | |
neofetch | |
net-tools | |
networkmanager | |
ninja | |
npm | |
nss-mdns | |
ntfs-3g | |
nvidia | |
nvidia-prime | |
nvidia-settings | |
nvidia-utils | |
os-prober | |
oxygen | |
packagekit-qt5 | |
pacman | |
patch | |
pavucontrol | |
pipewire-alsa | |
pipewire-pulse | |
pkgconf | |
plasma-browser-integration | |
plasma-desktop | |
plasma-disks | |
plasma-firewall | |
plasma-pa | |
plasma-systemmonitor | |
plasma-thunderbolt | |
plasma-vault | |
python-pip | |
qt-gstreamer | |
qt5pas | |
reflector | |
rsync | |
ruby | |
ruby-addressable | |
ruby-manpages | |
ruby-rainbow | |
sddm | |
sddm-kcm | |
sed | |
snapper | |
sof-firmware | |
steam | |
steam-native-runtime | |
sudo | |
system-config-printer | |
telepathy-gabble | |
telepathy-haze | |
telepathy-morse | |
telepathy-salut | |
terminus-font | |
texinfo | |
vim | |
vlc | |
vulkan-headers | |
vulkan-intel | |
vulkan-mesa-layers | |
wget | |
which | |
xdg-user-dirs | |
xdg-utils | |
xf86-video-intel | |
xf86-video-vesa | |
xorg-bdftopcf | |
xorg-docs | |
xorg-font-util | |
xorg-fonts-100dpi | |
xorg-fonts-75dpi | |
xorg-fonts-encodings | |
xorg-iceauth | |
xorg-mkfontscale | |
xorg-server | |
xorg-server-common | |
xorg-server-devel | |
xorg-server-xephyr | |
xorg-server-xnest | |
xorg-server-xvfb | |
xorg-sessreg | |
xorg-setxkbmap | |
xorg-smproxy | |
xorg-x11perf | |
xorg-xauth | |
xorg-xbacklight | |
xorg-xcmsdb | |
xorg-xcursorgen | |
xorg-xdpyinfo | |
xorg-xdriinfo | |
xorg-xev | |
xorg-xgamma | |
xorg-xhost | |
xorg-xinput | |
xorg-xkbcomp | |
xorg-xkbevd | |
xorg-xkbutils | |
xorg-xkill | |
xorg-xlsatoms | |
xorg-xlsclients | |
xorg-xmodmap | |
xorg-xpr | |
xorg-xrandr | |
xorg-xrdb | |
xorg-xrefresh | |
xorg-xsetroot | |
xorg-xvinfo | |
xorg-xwayland | |
xorg-xwd | |
xorg-xwininfo | |
xorg-xwud | |
yarn | |
zsh |
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
#oh-my-zsh https://github.com/ohmyzsh/ohmyzsh | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
#powerlevel10k https://github.com/romkatv/powerlevel10k | |
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k | |
#fzf https://github.com/junegunn/fzf | |
sudo pacman -S fzf | |
#colorls https://github.com/athityakumar/colorls#installation | |
gem install colorls | |
#pygments https://github.com/pygments/pygments | |
pip install Pygments | |
#LF Terminal File Manager https://github.com/gokcehan/lf | |
env CGO_ENABLED=0 go install -ldflags="-s -w" github.com/gokcehan/lf@latest | |
#Alacritty color theme |
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
# Change working dir in shell to last dir in lf on exit (adapted from ranger). | |
# | |
# You need to either copy the content of this file to your shell rc file | |
# (e.g. ~/.bashrc) or source this file directly: | |
# | |
# LFCD="/path/to/lfcd.sh" | |
# if [ -f "$LFCD" ]; then | |
# source "$LFCD" | |
# fi | |
# | |
# You may also like to assign a key to this command: | |
# | |
# bind '"\C-o":"lfcd\C-m"' # bash | |
# bindkey -s '^o' 'lfcd\n' # zsh | |
# | |
lfcd () { | |
tmp="$(mktemp)" | |
lf -last-dir-path="$tmp" "$@" | |
if [ -f "$tmp" ]; then | |
dir="$(cat "$tmp")" | |
rm -f "$tmp" | |
if [ -d "$dir" ]; then | |
if [ "$dir" != "$(pwd)" ]; then | |
cd "$dir" | |
fi | |
fi | |
fi | |
} |
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
###custom options set by me | |
#show hidden files | |
set hidden true | |
#show icons | |
set icons true | |
#show info | |
set info 'size:time' | |
#set preview | |
set preview true | |
set previewer ~/.config/lf/pv.sh | |
#set the mapping for the previewer | |
map i ~/.config/lf/pv.sh $f | |
#set drowbox | |
set drawbox | |
# interpreter for shell commands | |
set shell sh | |
# set '-eu' options for shell commands | |
# These options are used to have safer shell commands. Option '-e' is used to | |
# exit on error and option '-u' is used to give error for unset variables. | |
# Option '-f' disables pathname expansion which can be useful when $f, $fs, and | |
# $fx variables contain names with '*' or '?' characters. However, this option | |
# is used selectively within individual commands as it can be limiting at | |
# times. | |
set shellopts '-eu' | |
# set internal field separator (IFS) to "\n" for shell commands | |
# This is useful to automatically split file names in $fs and $fx properly | |
# since default file separator used in these variables (i.e. 'filesep' option) | |
# is newline. You need to consider the values of these options and create your | |
# commands accordingly. | |
set ifs "\n" | |
# leave some space at the top and the bottom of the screen | |
set scrolloff 10 | |
# use enter for shell commands | |
map <enter> shell | |
# execute current file (must be executable) | |
map x $$f | |
map X !$f | |
# dedicated keys for file opener actions | |
map o &mimeopen $f | |
map O $mimeopen --ask $f | |
# define a custom 'open' command | |
# This command is called when current file is not a directory. You may want to | |
# use either file extensions and/or mime types here. Below uses an editor for | |
# text files and a file opener for the rest. | |
cmd open ${{ | |
case $(file --mime-type -Lb $f) in | |
text/*) $EDITOR $fx;; | |
*) for f in $fx; do setsid $OPENER $f > /dev/null 2> /dev/null & done;; | |
esac | |
}} | |
# define a custom 'rename' command without prompt for overwrite | |
# cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1 | |
# map r push :rename<space> | |
# make sure trash folder exists | |
%mkdir -p ~/.trash | |
# move current file or selected files to trash folder | |
# (also see 'man mv' for backup/overwrite options) | |
cmd trash %set -f; mv $fx ~/.trash | |
# define a custom 'delete' command | |
# cmd delete ${{ | |
# set -f | |
# printf "$fx\n" | |
# printf "delete?[y/n]" | |
# read ans | |
# [ "$ans" = "y" ] && rm -rf $fx | |
# }} | |
# use '<delete>' key for either 'trash' or 'delete' command | |
map <delete> trash | |
# map <delete> delete | |
# extract the current file with the right command | |
# (xkcd link: https://xkcd.com/1168/) | |
cmd extract ${{ | |
set -f | |
case $f in | |
*.tar.bz|*.tar.bz2|*.tbz|*.tbz2) tar xjvf $f;; | |
*.tar.gz|*.tgz) tar xzvf $f;; | |
*.tar.xz|*.txz) tar xJvf $f;; | |
*.zip) unzip $f;; | |
*.rar) unrar x $f;; | |
*.7z) 7z x $f;; | |
esac | |
}} | |
# compress current file or selected files with tar and gunzip | |
cmd tar ${{ | |
set -f | |
mkdir $1 | |
cp -r $fx $1 | |
tar czf $1.tar.gz $1 | |
rm -rf $1 | |
}} | |
# compress current file or selected files with zip | |
cmd zip ${{ | |
set -f | |
mkdir $1 | |
cp -r $fx $1 | |
zip -r $1.zip $1 | |
rm -rf $1 | |
}} | |
#dynamically set the number of columns | |
cmd recol ${{ | |
w=$(tput cols) | |
if [ $w -le 80 ]; then | |
lf -remote "send $id set ratios 1:2" | |
elif [ $w -le 160 ]; then | |
lf -remote "send $id set ratios 1:2:3" | |
else | |
lf -remote "send $id set ratios 1:2:3:5" | |
fi | |
}} | |
# recol one time on startup | |
recol | |
#Progress bar for paste | |
cmd paste &{{ | |
set -- $(cat ~/.local/share/lf/files) | |
mode="$1" | |
shift | |
case "$mode" in | |
copy) | |
rsync -av --ignore-existing --progress -- "$@" . | | |
stdbuf -i0 -o0 -e0 tr '\r' '\n' | | |
while IFS= read -r line; do | |
lf -remote "send $id echo $line" | |
done | |
;; | |
move) mv -n -- "$@" .;; | |
esac | |
rm ~/.local/share/lf/files | |
lf -remote "send clear" | |
}} | |
#Fuzzy search and jump to dir | |
cmd fzf_jump ${{ | |
res="$(find . -maxdepth 2 | fzf --reverse --header='Jump to location' | sed 's/\\/\\\\/g;s/"/\\"/g')" | |
if [ -d "$res" ] ; then | |
cmd="cd" | |
elif [ -f "$res" ] ; then | |
cmd="select" | |
else | |
exit 0 | |
fi | |
lf -remote "send $id $cmd \"$res\"" | |
}} | |
map <c-f> :fzf_jump | |
#Go Home | |
map h cd ~ |
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
### MangoHud configuration file | |
### Uncomment any options you wish to enable. Default options are left uncommented | |
### Use some_parameter=0 to disable a parameter (only works with on/off parameters) | |
### Everything below can be used / overridden with the environment variable MANGOHUD_CONFIG instead | |
################ PERFORMANCE ################# | |
### Limit the application FPS. Comma-separated list of one or more FPS values (e.g. 0,30,60). 0 means unlimited (unless VSynced) | |
# fps_limit= | |
### VSync [0-3] 0 = adaptive; 1 = off; 2 = mailbox; 3 = on | |
# vsync= | |
### OpenGL VSync [0-N] 0 = off; >=1 = wait for N v-blanks, N > 1 acts as a FPS limiter (FPS = display refresh rate / N) | |
# gl_vsync= | |
################### VISUAL ################### | |
### Legacy layout | |
# legacy_layout=false | |
### Display custom centered text, useful for a header | |
# custom_text_center= | |
### Display the current system time | |
# time | |
### Time formatting examples | |
# time_format=%H:%M | |
# time_format=[ %T %F ] | |
# time_format=%X # locally formatted time, because of limited glyph range, missing characters may show as '?' (e.g. Japanese) | |
### Display MangoHud version | |
# version | |
### Display the current GPU information | |
## Note: gpu_mem_clock also needs "vram" to be enabled | |
gpu_stats | |
# gpu_temp | |
# gpu_core_clock | |
# gpu_mem_clock | |
# gpu_power | |
# gpu_text=GPU | |
# gpu_load_change | |
# gpu_load_value=60,90 | |
# gpu_load_color=39F900,FDFD09,B22222 | |
### Display the current CPU information | |
cpu_stats | |
# cpu_temp | |
# cpu_power | |
# cpu_text=CPU | |
# cpu_mhz | |
# cpu_load_change | |
# cpu_load_value=60,90 | |
# cpu_load_color=39F900,FDFD09,B22222 | |
### Display the current CPU load & frequency for each core | |
# core_load | |
# core_load_change | |
### Display IO read and write for the app (not system) | |
# io_stats | |
# io_read | |
# io_write | |
### Display system vram / ram / swap space usage | |
# vram | |
# ram | |
# swap | |
### Display per process memory usage | |
## Show resident memory and other types, if enabled | |
# procmem | |
# procmem_shared | |
# procmem_virt | |
### Display battery information | |
# battery | |
# battery_icon | |
# gamepad_battery | |
# gamepad_battery_icon | |
### Display FPS and frametime | |
fps | |
# fps_sampling_period=500 | |
# fps_color_change | |
# fps_value=30,60 | |
# fps_color=B22222,FDFD09,39F900 | |
frametime | |
# frame_count | |
### Display miscellaneous information | |
# engine_version | |
# gpu_name | |
# vulkan_driver | |
# wine | |
### Display loaded MangoHud architecture | |
# arch | |
### Display the frametime line graph | |
frame_timing | |
# histogram | |
### Display GameMode / vkBasalt running status | |
# gamemode | |
# vkbasalt | |
### Display current FPS limit | |
# show_fps_limit | |
### Display the current resolution | |
# resolution | |
### Display custom text | |
# custom_text= | |
### Display output of Bash command in next column | |
# exec= | |
### Display media player metadata | |
# media_player | |
# media_player_name=spotify | |
## Format metadata, lines are delimited by ; (wip) | |
# media_player_format={title};{artist};{album} | |
# media_player_format=Track:;{title};By:;{artist};From:;{album} | |
### Change the hud font size | |
# font_size=24 | |
# font_scale=1.0 | |
# font_size_text=24 | |
# font_scale_media_player=0.55 | |
# no_small_font | |
### Change default font (set location to TTF/OTF file) | |
## Set font for the whole hud | |
# font_file= | |
## Set font only for text like media player metadata | |
# font_file_text= | |
## Set font glyph ranges. Defaults to Latin-only. Don't forget to set font_file/font_file_text to font that supports these | |
## Probably don't enable all at once because of memory usage and hardware limits concerns | |
## If you experience crashes or text is just squares, reduce glyph range or reduce font size | |
# font_glyph_ranges=korean,chinese,chinese_simplified,japanese,cyrillic,thai,vietnamese,latin_ext_a,latin_ext_b | |
### Change the hud position | |
# position=top-left | |
### Change the corner roundness | |
# round_corners= | |
### Disable / hide the hud by default | |
# no_display | |
### Hud position offset | |
# offset_x= | |
# offset_y= | |
### Hud dimensions | |
# width= | |
# height= | |
# table_columns= | |
# cellpadding_y= | |
### Hud transparency / alpha | |
# background_alpha=0.5 | |
# alpha= | |
### FCAT overlay | |
### This enables an FCAT overlay to perform frametime analysis on the final image stream. | |
### Enable the overlay | |
# fcat | |
### Set the width of the FCAT overlay. | |
### 24 is a performance optimization on AMD GPUs that should not have adverse effects on nVidia GPUs. | |
### A minimum of 20 pixels is recommended by nVidia. | |
# fcat_overlay_width=24 | |
### Set the screen edge, this can be useful for special displays that don't update from top edge to bottom. This goes from 0 (left side) to 3 (top edge), counter-clockwise. | |
# fcat_screen_edge=0 | |
### Color customization | |
# text_color=FFFFFF | |
# gpu_color=2E9762 | |
# cpu_color=2E97CB | |
# vram_color=AD64C1 | |
# ram_color=C26693 | |
# engine_color=EB5B5B | |
# io_color=A491D3 | |
# frametime_color=00FF00 | |
# background_color=020202 | |
# media_player_color=FFFFFF | |
# wine_color=EB5B5B | |
# battery_color=FF9078 | |
### Specify GPU with PCI bus ID for AMDGPU and NVML stats | |
### Set to 'domain:bus:slot.function' | |
# pci_dev=0:0a:0.0 | |
### Blacklist | |
# blacklist= | |
### Control over socket | |
### Enable and set socket name, '%p' is replaced with process id | |
# control = mangohud | |
# control = mangohud-%p | |
################ WORKAROUNDS ################# | |
### Options starting with "gl_*" are for OpenGL | |
### Specify what to use for getting display size. Options are "viewport", "scissorbox" or disabled. Defaults to using glXQueryDrawable | |
# gl_size_query=viewport | |
### (Re)bind given framebuffer before MangoHud gets drawn. Helps with Crusader Kings III | |
# gl_bind_framebuffer=0 | |
### Don't swap origin if using GL_UPPER_LEFT. Helps with Ryujinx | |
# gl_dont_flip=1 | |
################ INTERACTION ################# | |
### Change toggle keybinds for the hud & logging | |
# toggle_hud=Shift_R+F12 | |
# toggle_fps_limit=Shift_L+F1 | |
# toggle_logging=Shift_L+F2 | |
# reload_cfg=Shift_L+F4 | |
# upload_log=Shift_L+F3 | |
#################### LOG ##################### | |
### Automatically start the log after X seconds | |
# autostart_log=1 | |
### Set amount of time in seconds that the logging will run for | |
# log_duration= | |
### Change the default log interval, 100 is default | |
# log_interval=100 | |
### Set location of the output files (required for logging) | |
# output_folder=/home/<USERNAME>/mangologs | |
### Permit uploading logs directly to FlightlessMango.com | |
# permit_upload=1 | |
### Define a '+'-separated list of percentiles shown in the benchmark results | |
### Use "AVG" to get a mean average. Default percentiles are 97+AVG+1+0.1 | |
# benchmark_percentiles=97,AVG,1,0.1 | |
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
adobe-source-han-fonts | |
afdko | |
alpm_octopi_utils | |
amarok | |
astrill | |
inxi | |
kwin-bismuth-git | |
lib32-lzo | |
mangohud | |
mangohud-common | |
octopi | |
optimus-manager | |
optimus-manager-qt | |
powerline-fonts-git | |
psautohint | |
python-booleanoperations | |
python-defcon | |
python-fontmath | |
python-fontparts | |
python-fontpens | |
python-mutatormath | |
python-pyclipper | |
python-ufonormalizer | |
python-ufoprocessor | |
ruby-unicode-display_width | |
snap-pac-grub | |
snapper-gui-git | |
taglib-extras | |
visual-studio-code-bin | |
yay-bin |
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
#List Explicitly installed packages | |
pacman -Qe | |
#List installed packages not found on sync db (yay,etc) | |
pacman -Qqm | |
#packages from arch | |
pacman -Qqen > arch_packages.lst | |
#packages not from arch | |
pacman -Qqm > not_arch_packages.lst | |
#install packages from list from packman or yay | |
pacman -Sy --needed $(cat arch_packages.lst) | |
yay -Sy $(cat not_arch_packages.lst) |
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
#!/bin/sh | |
## Script for Preview In Termial File Manager | |
pygmentize_fn(){ | |
lexer=$(pygmentize -N "$1") | |
if [[ $lexer != text ]]; then | |
pygmentize -O style="emacs" -l "$lexer" "$1" | |
else | |
pygmentize -O style="emacs" -g "$1" | |
fi | |
} | |
case "$1" in | |
*.tar*) tar tf "$1";; | |
*.zip) unzip -l "$1";; | |
*.rar) unrar l "$1";; | |
*.7z) 7z l "$1";; | |
*.pdf) pdftotext "$1" -;; | |
*) pygmentize_fn "$1" || true;; | |
esac |
Enjoy!!
beautiful
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Don't leave us hanging!!! (i love public gists)