Merge branch 'UtkarshVerma-master'

pull/2146/head
Roman Perepelitsa 2 years ago
commit c08975d0f6

@ -338,6 +338,7 @@ enable as many segments as you like. It won't slow down your prompt or Zsh start
| `midnight_commander` | [midnight commander](https://midnight-commander.org/) shell | | `midnight_commander` | [midnight commander](https://midnight-commander.org/) shell |
| `nix_shell` | [nix shell](https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html) indicator | | `nix_shell` | [nix shell](https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html) indicator |
| `nnn` | [nnn](https://github.com/jarun/nnn) shell | | `nnn` | [nnn](https://github.com/jarun/nnn) shell |
| `lf` | [lf](https://github.com/gokcehan/lf) shell |
| `nodeenv` | node.js environment from [nodeenv](https://github.com/ekalinin/nodeenv) | | `nodeenv` | node.js environment from [nodeenv](https://github.com/ekalinin/nodeenv) |
| `nodenv` | node.js environment from [nodenv](https://github.com/nodenv/nodenv) | | `nodenv` | node.js environment from [nodenv](https://github.com/nodenv/nodenv) |
| `node_version` | [node.js](https://nodejs.org/) version | | `node_version` | [node.js](https://nodejs.org/) version |
@ -426,7 +427,7 @@ echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
``` ```
Users in China can use the official mirror on gitee.com for faster download.<br> Users in China can use the official mirror on gitee.com for faster download.<br>
中国大陆用户可以使用 gitee.com 上的官方镜像加速下载. 中国用户可以使用 gitee.com 上的官方镜像加速下载.
```zsh ```zsh
git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ~/powerlevel10k git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ~/powerlevel10k
@ -444,7 +445,7 @@ make sure to disable the current theme in your plugin manager. See
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
``` ```
Users in China can use the official mirror on gitee.com for faster download.<br> Users in China can use the official mirror on gitee.com for faster download.<br>
中国大陆用户可以使用 gitee.com 上的官方镜像加速下载. 中国用户可以使用 gitee.com 上的官方镜像加速下载.
```zsh ```zsh
git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

@ -82,6 +82,7 @@
nordvpn # nordvpn connection status, linux only (https://nordvpn.com/) nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
ranger # ranger shell (https://github.com/ranger/ranger) ranger # ranger shell (https://github.com/ranger/ranger)
nnn # nnn shell (https://github.com/jarun/nnn) nnn # nnn shell (https://github.com/jarun/nnn)
lf # lf shell (https://github.com/gokcehan/lf)
xplr # xplr shell (https://github.com/sayanarijit/xplr) xplr # xplr shell (https://github.com/sayanarijit/xplr)
vim_shell # vim shell indicator (:sh) vim_shell # vim shell indicator (:sh)
midnight_commander # midnight commander shell (https://midnight-commander.org/) midnight_commander # midnight commander shell (https://midnight-commander.org/)
@ -723,6 +724,12 @@
# Custom icon. # Custom icon.
# typeset -g POWERLEVEL9K_NNN_VISUAL_IDENTIFIER_EXPANSION='⭐' # typeset -g POWERLEVEL9K_NNN_VISUAL_IDENTIFIER_EXPANSION='⭐'
######################[ lf: lf shell (https://github.com/gokcehan/lf) ]#######################
# lf shell color.
typeset -g POWERLEVEL9K_LF_FOREGROUND=72
# Custom icon.
# typeset -g POWERLEVEL9K_LF_VISUAL_IDENTIFIER_EXPANSION='⭐'
##################[ xplr: xplr shell (https://github.com/sayanarijit/xplr) ]################## ##################[ xplr: xplr shell (https://github.com/sayanarijit/xplr) ]##################
# xplr shell color. # xplr shell color.
typeset -g POWERLEVEL9K_XPLR_FOREGROUND=72 typeset -g POWERLEVEL9K_XPLR_FOREGROUND=72

@ -82,6 +82,7 @@
nordvpn # nordvpn connection status, linux only (https://nordvpn.com/) nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
ranger # ranger shell (https://github.com/ranger/ranger) ranger # ranger shell (https://github.com/ranger/ranger)
nnn # nnn shell (https://github.com/jarun/nnn) nnn # nnn shell (https://github.com/jarun/nnn)
lf # lf shell (https://github.com/gokcehan/lf)
xplr # xplr shell (https://github.com/sayanarijit/xplr) xplr # xplr shell (https://github.com/sayanarijit/xplr)
vim_shell # vim shell indicator (:sh) vim_shell # vim shell indicator (:sh)
midnight_commander # midnight commander shell (https://midnight-commander.org/) midnight_commander # midnight commander shell (https://midnight-commander.org/)
@ -721,6 +722,12 @@
# Custom icon. # Custom icon.
# typeset -g POWERLEVEL9K_NNN_VISUAL_IDENTIFIER_EXPANSION='⭐' # typeset -g POWERLEVEL9K_NNN_VISUAL_IDENTIFIER_EXPANSION='⭐'
######################[ lf: lf shell (https://github.com/gokcehan/lf) ]#######################
# lf shell color.
typeset -g POWERLEVEL9K_LF_FOREGROUND=3
# Custom icon.
# typeset -g POWERLEVEL9K_LF_VISUAL_IDENTIFIER_EXPANSION='⭐'
##################[ xplr: xplr shell (https://github.com/sayanarijit/xplr) ]################## ##################[ xplr: xplr shell (https://github.com/sayanarijit/xplr) ]##################
# xplr shell color. # xplr shell color.
typeset -g POWERLEVEL9K_XPLR_FOREGROUND=3 typeset -g POWERLEVEL9K_XPLR_FOREGROUND=3

@ -82,6 +82,7 @@
nordvpn # nordvpn connection status, linux only (https://nordvpn.com/) nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
ranger # ranger shell (https://github.com/ranger/ranger) ranger # ranger shell (https://github.com/ranger/ranger)
nnn # nnn shell (https://github.com/jarun/nnn) nnn # nnn shell (https://github.com/jarun/nnn)
lf # lf shell (https://github.com/gokcehan/lf)
xplr # xplr shell (https://github.com/sayanarijit/xplr) xplr # xplr shell (https://github.com/sayanarijit/xplr)
vim_shell # vim shell indicator (:sh) vim_shell # vim shell indicator (:sh)
midnight_commander # midnight commander shell (https://midnight-commander.org/) midnight_commander # midnight commander shell (https://midnight-commander.org/)
@ -717,6 +718,11 @@
# Custom icon. # Custom icon.
# typeset -g POWERLEVEL9K_NNN_VISUAL_IDENTIFIER_EXPANSION='⭐' # typeset -g POWERLEVEL9K_NNN_VISUAL_IDENTIFIER_EXPANSION='⭐'
# lf shell color.
typeset -g POWERLEVEL9K_LF_FOREGROUND=72
# Custom icon.
# typeset -g POWERLEVEL9K_LF_VISUAL_IDENTIFIER_EXPANSION='⭐'
##################[ xplr: xplr shell (https://github.com/sayanarijit/xplr) ]################## ##################[ xplr: xplr shell (https://github.com/sayanarijit/xplr) ]##################
# xplr shell color. # xplr shell color.
typeset -g POWERLEVEL9K_XPLR_FOREGROUND=72 typeset -g POWERLEVEL9K_XPLR_FOREGROUND=72

@ -82,6 +82,7 @@
nordvpn # nordvpn connection status, linux only (https://nordvpn.com/) nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
ranger # ranger shell (https://github.com/ranger/ranger) ranger # ranger shell (https://github.com/ranger/ranger)
nnn # nnn shell (https://github.com/jarun/nnn) nnn # nnn shell (https://github.com/jarun/nnn)
lf # lf shell (https://github.com/gokcehan/lf)
xplr # xplr shell (https://github.com/sayanarijit/xplr) xplr # xplr shell (https://github.com/sayanarijit/xplr)
vim_shell # vim shell indicator (:sh) vim_shell # vim shell indicator (:sh)
midnight_commander # midnight commander shell (https://midnight-commander.org/) midnight_commander # midnight commander shell (https://midnight-commander.org/)
@ -743,6 +744,13 @@
# Custom icon. # Custom icon.
# typeset -g POWERLEVEL9K_NNN_VISUAL_IDENTIFIER_EXPANSION='⭐' # typeset -g POWERLEVEL9K_NNN_VISUAL_IDENTIFIER_EXPANSION='⭐'
######################[ lf: lf shell (https://github.com/gokcehan/lf) ]#######################
# lf shell color.
typeset -g POWERLEVEL9K_LF_FOREGROUND=0
typeset -g POWERLEVEL9K_LF_BACKGROUND=6
# Custom icon.
# typeset -g POWERLEVEL9K_LF_VISUAL_IDENTIFIER_EXPANSION='⭐'
##################[ xplr: xplr shell (https://github.com/sayanarijit/xplr) ]################## ##################[ xplr: xplr shell (https://github.com/sayanarijit/xplr) ]##################
# xplr shell color. # xplr shell color.
typeset -g POWERLEVEL9K_XPLR_FOREGROUND=0 typeset -g POWERLEVEL9K_XPLR_FOREGROUND=0

@ -134,6 +134,7 @@ function _p9k_init_icons() {
LUA_ICON 'lua' LUA_ICON 'lua'
PERL_ICON 'perl' PERL_ICON 'perl'
NNN_ICON 'nnn' NNN_ICON 'nnn'
LF_ICON 'lf'
XPLR_ICON 'xplr' XPLR_ICON 'xplr'
TIMEWARRIOR_ICON 'tw' TIMEWARRIOR_ICON 'tw'
TASKWARRIOR_ICON 'task' TASKWARRIOR_ICON 'task'
@ -267,6 +268,7 @@ function _p9k_init_icons() {
LUA_ICON 'lua' LUA_ICON 'lua'
PERL_ICON 'perl' PERL_ICON 'perl'
NNN_ICON 'nnn' NNN_ICON 'nnn'
LF_ICON 'lf'
XPLR_ICON 'xplr' XPLR_ICON 'xplr'
TIMEWARRIOR_ICON 'tw' TIMEWARRIOR_ICON 'tw'
TASKWARRIOR_ICON 'task' TASKWARRIOR_ICON 'task'
@ -403,6 +405,7 @@ function _p9k_init_icons() {
LUA_ICON 'lua' LUA_ICON 'lua'
PERL_ICON 'perl' PERL_ICON 'perl'
NNN_ICON 'nnn' NNN_ICON 'nnn'
LF_ICON 'lf'
XPLR_ICON 'xplr' XPLR_ICON 'xplr'
TIMEWARRIOR_ICON 'tw' TIMEWARRIOR_ICON 'tw'
TASKWARRIOR_ICON 'task' TASKWARRIOR_ICON 'task'
@ -537,6 +540,7 @@ function _p9k_init_icons() {
LUA_ICON '\uE620' #  LUA_ICON '\uE620' # 
PERL_ICON '\uE769' #  PERL_ICON '\uE769' # 
NNN_ICON 'nnn' NNN_ICON 'nnn'
LF_ICON 'lf'
XPLR_ICON 'xplr' XPLR_ICON 'xplr'
TIMEWARRIOR_ICON '\uF49B' #  TIMEWARRIOR_ICON '\uF49B' # 
TASKWARRIOR_ICON '\uF4A0 ' #  TASKWARRIOR_ICON '\uF4A0 ' # 
@ -668,6 +672,7 @@ function _p9k_init_icons() {
LUA_ICON 'lua' LUA_ICON 'lua'
PERL_ICON 'perl' PERL_ICON 'perl'
NNN_ICON 'nnn' NNN_ICON 'nnn'
LF_ICON 'lf'
XPLR_ICON 'xplr' XPLR_ICON 'xplr'
TIMEWARRIOR_ICON 'tw' TIMEWARRIOR_ICON 'tw'
TASKWARRIOR_ICON 'task' TASKWARRIOR_ICON 'task'
@ -801,6 +806,7 @@ function _p9k_init_icons() {
LUA_ICON 'lua' LUA_ICON 'lua'
PERL_ICON 'perl' PERL_ICON 'perl'
NNN_ICON 'nnn' NNN_ICON 'nnn'
LF_ICON 'lf'
XPLR_ICON 'xplr' XPLR_ICON 'xplr'
TIMEWARRIOR_ICON 'tw' TIMEWARRIOR_ICON 'tw'
TASKWARRIOR_ICON 'task' TASKWARRIOR_ICON 'task'

@ -4921,6 +4921,18 @@ function instant_prompt_nnn() {
_p9k_prompt_segment prompt_nnn 6 $_p9k_color1 NNN_ICON 1 '${NNNLVL:#0}' '$NNNLVL' _p9k_prompt_segment prompt_nnn 6 $_p9k_color1 NNN_ICON 1 '${NNNLVL:#0}' '$NNNLVL'
} }
function prompt_lf() {
_p9k_prompt_segment $0 6 $_p9k_color1 LF_ICON 0 '' $LF_LEVEL
}
_p9k_prompt_lf_init() {
typeset -g "_p9k__segment_cond_${_p9k__prompt_side}[_p9k__segment_index]"='${LF_LEVEL:#0}'
}
function instant_prompt_lf() {
_p9k_prompt_segment prompt_lf 6 $_p9k_color1 LF_ICON 1 '${LF_LEVEL:#0}' '$LF_LEVEL'
}
function prompt_xplr() { function prompt_xplr() {
local -i len=$#_p9k__prompt _p9k__has_upglob local -i len=$#_p9k__prompt _p9k__has_upglob
_p9k_prompt_segment $0 6 $_p9k_color1 XPLR_ICON 0 '' '' _p9k_prompt_segment $0 6 $_p9k_color1 XPLR_ICON 0 '' ''

Loading…
Cancel
Save