Compare commits
2 commits
2cdaf369d8
...
688a5d7867
Author | SHA1 | Date | |
---|---|---|---|
688a5d7867 | |||
4ec3c9ade3 |
3 changed files with 8 additions and 51 deletions
12
flake.lock
generated
12
flake.lock
generated
|
@ -7,11 +7,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1707074442,
|
||||
"narHash": "sha256-+VOe+26+rK6ETNpVvwkFYlfC/skZe2XI2TixbsC6utE=",
|
||||
"lastModified": 1707175763,
|
||||
"narHash": "sha256-0MKHC6tQ4KEuM5rui6DjKZ/VNiSANB4E+DJ/+wPS1PU=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "4ab01785b85aac4dd0f0414f7c0ca4c007e64054",
|
||||
"rev": "f99eace7c167b8a6a0871849493b1c613d0f1b80",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -22,11 +22,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1706913249,
|
||||
"narHash": "sha256-x3M7iV++CsvRXI1fpyFPduGELUckZEhSv0XWnUopAG8=",
|
||||
"lastModified": 1707092692,
|
||||
"narHash": "sha256-ZbHsm+mGk/izkWtT4xwwqz38fdlwu7nUUKXTOmm4SyE=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e92b6015881907e698782c77641aa49298330223",
|
||||
"rev": "faf912b086576fd1a15fca610166c98d47bc667e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
google-cloud-sdk
|
||||
gradle
|
||||
htop
|
||||
# telnet
|
||||
inetutils
|
||||
imagemagick
|
||||
jadx
|
||||
jdk21
|
||||
|
|
|
@ -58,7 +58,6 @@
|
|||
virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html)
|
||||
# =========================[ Line #2 ]=========================
|
||||
newline
|
||||
# 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.
|
||||
|
@ -511,16 +510,6 @@
|
|||
# Custom icon.
|
||||
# typeset -g POWERLEVEL9K_VIRTUALENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||
|
||||
# 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='⭐'
|
||||
|
||||
#######################[ rvm: ruby version from rvm (https://rvm.io) ]########################
|
||||
# Rvm color.
|
||||
typeset -g POWERLEVEL9K_RVM_FOREGROUND=7
|
||||
|
@ -544,40 +533,6 @@
|
|||
# Custom prefix.
|
||||
# typeset -g POWERLEVEL9K_TIME_PREFIX='at '
|
||||
|
||||
# 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 yellow text on red background
|
||||
# greeting the user.
|
||||
#
|
||||
# Type `p10k help segment` for documentation and a more sophisticated example.
|
||||
function prompt_example() {
|
||||
p10k segment -b 1 -f 3 -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=3
|
||||
typeset -g POWERLEVEL9K_EXAMPLE_BACKGROUND=1
|
||||
# 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:
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue