Starship Config Update
- Update starship config to follow pastel powerline preset with dracula color scheme and some small personal tweaks - Update doom-emacs, dracula-gtk, and dracula-vortex submodules - Remove fish shell notification as this is now handled by starship - Add whitespace and toml src code block type to README.org
This commit is contained in:
Submodule .config/doom-emacs updated: 4071d27263...bc32e2ec4c
@@ -1,18 +0,0 @@
|
|||||||
# This function allows you to switch to a different task
|
|
||||||
# when an interactive command takes too long
|
|
||||||
# by notifying you when it is finished.
|
|
||||||
#
|
|
||||||
# It is invoked by the fish shell automatically using its event system.
|
|
||||||
function __postexec_notify_on_long_running_commands --on-event fish_postexec
|
|
||||||
set --function interactive_commands 'vim' 'vlc' 'zathura' 'gitk' 'man' 'less'
|
|
||||||
set --function command (string split ' ' $argv[1])
|
|
||||||
if contains $command $interactive_commands
|
|
||||||
# We quit interactive commands manually,
|
|
||||||
# no need for a notification.
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
if test $CMD_DURATION -gt 5000
|
|
||||||
notify-send 'command finished' "$argv"
|
|
||||||
end
|
|
||||||
end
|
|
@@ -1,96 +1,158 @@
|
|||||||
# Don't print a new line at the start of the prompt
|
format = """
|
||||||
|
[](#44475A)\
|
||||||
|
$directory\
|
||||||
|
[](fg:#44475A bg:#6272a4)\
|
||||||
|
$git_branch\
|
||||||
|
$git_status\
|
||||||
|
[](fg:#6272a4 bg:#BD93F9)\
|
||||||
|
$c\
|
||||||
|
$elixir\
|
||||||
|
$elm\
|
||||||
|
$golang\
|
||||||
|
$haskell\
|
||||||
|
$java\
|
||||||
|
$julia\
|
||||||
|
$nodejs\
|
||||||
|
$nim\
|
||||||
|
$rust\
|
||||||
|
[](fg:#BD93F9 bg:#FF79C6)\
|
||||||
|
$docker_context\
|
||||||
|
[](fg:#FF79C6 bg:#FF5555)\
|
||||||
|
$cmd_duration\
|
||||||
|
[ ](fg:#FF5555)\
|
||||||
|
\n$character
|
||||||
|
"""
|
||||||
|
|
||||||
|
# Enable/disable the blank line at the start of the prompt
|
||||||
add_newline = false
|
add_newline = false
|
||||||
|
|
||||||
format = "[◆](bold green) $all"
|
|
||||||
|
|
||||||
[aws]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[battery]
|
|
||||||
full_symbol = ""
|
|
||||||
charging_symbol = ""
|
|
||||||
discharging_symbol = ""
|
|
||||||
|
|
||||||
[character]
|
[character]
|
||||||
format = "$symbol"
|
format = "$symbol"
|
||||||
success_symbol = "[❯](bold purple)[❯](bold cyan)[❯](bold green) "
|
success_symbol = "[ ❯❯❯](bold green) "
|
||||||
error_symbol = "[❯❯❯](bold red) "
|
error_symbol = "[ ❯❯❯](bold red) "
|
||||||
|
|
||||||
[cmd_duration]
|
# You can also replace your username with a neat symbol like to save some space
|
||||||
min_time = 10_000
|
[username]
|
||||||
|
show_always = true
|
||||||
[conda]
|
style_user = "bg:#44475A"
|
||||||
symbol = " "
|
style_root = "bg:#44475A"
|
||||||
|
format = '[ ]($style)'
|
||||||
[dart]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[directory]
|
[directory]
|
||||||
format = "[$path]($style)[$read_only]($read_only_style) "
|
style = "bg:#44475A"
|
||||||
|
format = "[ $path ]($style)"
|
||||||
truncation_length = 4
|
truncation_length = 4
|
||||||
truncate_to_repo = false
|
truncate_to_repo = true
|
||||||
truncation_symbol = "…/"
|
truncation_symbol = "…/"
|
||||||
read_only = ""
|
read_only = ""
|
||||||
|
|
||||||
|
# Here is how you can shorten some long paths by text replacement
|
||||||
|
# similar to mapped_locations in Oh My Posh:
|
||||||
|
[directory.substitutions]
|
||||||
|
"~" = " "
|
||||||
|
".config" = " "
|
||||||
|
"config" = " "
|
||||||
|
"Config" = " "
|
||||||
|
"Calibre_Library" = " "
|
||||||
|
"Calibre Library" = " "
|
||||||
|
"Desktop" = " "
|
||||||
|
"Documents" = " "
|
||||||
|
"Finances" = " ﴝ "
|
||||||
|
"Downloads" = " "
|
||||||
|
"Games" = " "
|
||||||
|
"PolyMC" = " "
|
||||||
|
"Steam" = " "
|
||||||
|
"ISOs" = " "
|
||||||
|
"Music" = " "
|
||||||
|
"Spotify" = " "
|
||||||
|
"Pictures" = " "
|
||||||
|
"Projects" = " "
|
||||||
|
"Personal" = " "
|
||||||
|
"System" = " "
|
||||||
|
"Videos" = " "
|
||||||
|
"dropbox" = " "
|
||||||
|
"google-drive" = " "
|
||||||
|
"onedrive" = " "
|
||||||
|
"Attachments" = " "
|
||||||
|
# Keep in mind that the order matters. For example:
|
||||||
|
# "Important Documents" = " "
|
||||||
|
# will not be replaced, because "Documents" was already substituted before.
|
||||||
|
# So either put "Important Documents" before "Documents" or use the substituted version:
|
||||||
|
# "Important " = " "
|
||||||
|
|
||||||
|
[c]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#BD93F9"
|
||||||
|
format = '[[ $symbol ($version) ](bg:#BD93F9)]($style)'
|
||||||
|
|
||||||
|
[cmd_duration]
|
||||||
|
min_time = 0
|
||||||
|
style = "bg:#FF5555"
|
||||||
|
format = '[[ 祥 $duration ](bg:#FF5555)]($style)'
|
||||||
|
show_notifications = true
|
||||||
|
min_time_to_notify = 5_000
|
||||||
|
|
||||||
[docker_context]
|
[docker_context]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
|
style = "bg:#FF79C6"
|
||||||
|
format = '[[ $symbol $context ](bg:#FF79C6)]($style) $path'
|
||||||
|
|
||||||
[elixir]
|
[elixir]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
|
style = "bg:#BD93F9"
|
||||||
|
format = '[[ $symbol ($version) ](bg:#BD93F9)]($style)'
|
||||||
|
|
||||||
[elm]
|
[elm]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
|
style = "bg:#BD93F9"
|
||||||
|
format = '[[ $symbol ($version) ](bg:#BD93F9)]($style)'
|
||||||
|
|
||||||
[git_branch]
|
[git_branch]
|
||||||
symbol = " "
|
symbol = ""
|
||||||
|
style = "bg:#6272a4"
|
||||||
|
format = '[[ $symbol $branch ](bg:#6272a4)]($style)'
|
||||||
|
|
||||||
|
[git_status]
|
||||||
|
style = "bg:#6272a4"
|
||||||
|
format = '[[($all_status$ahead_behind )](bg:#6272a4)]($style)'
|
||||||
|
|
||||||
[golang]
|
[golang]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
|
style = "bg:#BD93F9"
|
||||||
|
format = '[[ $symbol ($version) ](bg:#BD93F9)]($style)'
|
||||||
|
|
||||||
# [haskell]
|
[haskell]
|
||||||
# symbol = " "
|
symbol = " "
|
||||||
|
style = "bg:#BD93F9"
|
||||||
[hg_branch]
|
format = '[[ $symbol ($version) ](bg:#BD93F9)]($style)'
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[java]
|
[java]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
|
style = "bg:#BD93F9"
|
||||||
|
format = '[[ $symbol ($version) ](bg:#BD93F9)]($style)'
|
||||||
|
|
||||||
[julia]
|
[julia]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
|
style = "bg:#BD93F9"
|
||||||
|
format = '[[ $symbol ($version) ](bg:#BD93F9)]($style)'
|
||||||
|
|
||||||
[line_break]
|
[nodejs]
|
||||||
disabled = false
|
symbol = ""
|
||||||
|
style = "bg:#BD93F9"
|
||||||
[memory_usage]
|
format = '[[ $symbol ($version) ](bg:#BD93F9)]($style)'
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[nim]
|
[nim]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
|
style = "bg:#BD93F9"
|
||||||
[nix_shell]
|
format = '[[ $symbol ($version) ](bg:#BD93F9)]($style)'
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[nodejs]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[package]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[perl]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[php]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[python]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[ruby]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[rust]
|
[rust]
|
||||||
symbol = " "
|
symbol = ""
|
||||||
|
style = "bg:#BD93F9"
|
||||||
|
format = '[[ $symbol ($version) ](bg:#BD93F9)]($style)'
|
||||||
|
|
||||||
[swift]
|
[time]
|
||||||
symbol = "ﯣ "
|
disabled = false
|
||||||
|
time_format = "%X" # Hour:Minute Format
|
||||||
|
style = "bg:#FFB86C"
|
||||||
|
format = '[[ $time ](bg:#FFB86C)]($style)'
|
||||||
|
Submodule .themes/dracula-gtk updated: f5314f2849...87d2e6e5c4
Submodule .themes/dracula-vortex updated: 480777e8c9...2388c9ed0e
204
README.org
204
README.org
@@ -3074,105 +3074,168 @@ postlock() {
|
|||||||
* Terminal & Shell
|
* Terminal & Shell
|
||||||
|
|
||||||
** Prompt
|
** Prompt
|
||||||
|
|
||||||
*** Starship
|
*** Starship
|
||||||
|
|
||||||
#+BEGIN_SRC conf :tangle .config/starship.toml
|
#+BEGIN_SRC toml :tangle .config/starship.toml
|
||||||
# Don't print a new line at the start of the prompt
|
format = """
|
||||||
|
[](#44475A)\
|
||||||
|
$directory\
|
||||||
|
[](fg:#44475A bg:#6272a4)\
|
||||||
|
$git_branch\
|
||||||
|
$git_status\
|
||||||
|
[](fg:#6272a4 bg:#BD93F9)\
|
||||||
|
$c\
|
||||||
|
$elixir\
|
||||||
|
$elm\
|
||||||
|
$golang\
|
||||||
|
$haskell\
|
||||||
|
$java\
|
||||||
|
$julia\
|
||||||
|
$nodejs\
|
||||||
|
$nim\
|
||||||
|
$rust\
|
||||||
|
[](fg:#BD93F9 bg:#FF79C6)\
|
||||||
|
$docker_context\
|
||||||
|
[](fg:#FF79C6 bg:#FF5555)\
|
||||||
|
$cmd_duration\
|
||||||
|
[ ](fg:#FF5555)\
|
||||||
|
\n$character
|
||||||
|
"""
|
||||||
|
|
||||||
|
# Enable/disable the blank line at the start of the prompt
|
||||||
add_newline = false
|
add_newline = false
|
||||||
|
|
||||||
format = "[◆](bold green) $all"
|
|
||||||
|
|
||||||
[aws]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[battery]
|
|
||||||
full_symbol = ""
|
|
||||||
charging_symbol = ""
|
|
||||||
discharging_symbol = ""
|
|
||||||
|
|
||||||
[character]
|
[character]
|
||||||
format = "$symbol"
|
format = "$symbol"
|
||||||
success_symbol = "[❯](bold purple)[❯](bold cyan)[❯](bold green) "
|
success_symbol = "[ ❯❯❯](bold green) "
|
||||||
error_symbol = "[❯❯❯](bold red) "
|
error_symbol = "[ ❯❯❯](bold red) "
|
||||||
|
|
||||||
[cmd_duration]
|
# You can also replace your username with a neat symbol like to save some space
|
||||||
min_time = 10_000
|
[username]
|
||||||
|
show_always = true
|
||||||
[conda]
|
style_user = "bg:#44475A"
|
||||||
symbol = " "
|
style_root = "bg:#44475A"
|
||||||
|
format = '[ ]($style)'
|
||||||
[dart]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[directory]
|
[directory]
|
||||||
format = "[$path]($style)[$read_only]($read_only_style) "
|
style = "bg:#44475A"
|
||||||
|
format = "[ $path ]($style)"
|
||||||
truncation_length = 4
|
truncation_length = 4
|
||||||
truncate_to_repo = false
|
truncate_to_repo = true
|
||||||
truncation_symbol = "…/"
|
truncation_symbol = "…/"
|
||||||
read_only = ""
|
read_only = ""
|
||||||
|
|
||||||
|
# Here is how you can shorten some long paths by text replacement
|
||||||
|
# similar to mapped_locations in Oh My Posh:
|
||||||
|
[directory.substitutions]
|
||||||
|
"~" = " "
|
||||||
|
".config" = " "
|
||||||
|
"config" = " "
|
||||||
|
"Config" = " "
|
||||||
|
"Calibre_Library" = " "
|
||||||
|
"Calibre Library" = " "
|
||||||
|
"Desktop" = " "
|
||||||
|
"Documents" = " "
|
||||||
|
"Finances" = " ﴝ "
|
||||||
|
"Downloads" = " "
|
||||||
|
"Games" = " "
|
||||||
|
"PolyMC" = " "
|
||||||
|
"Steam" = " "
|
||||||
|
"ISOs" = " "
|
||||||
|
"Music" = " "
|
||||||
|
"Spotify" = " "
|
||||||
|
"Pictures" = " "
|
||||||
|
"Projects" = " "
|
||||||
|
"Personal" = " "
|
||||||
|
"System" = " "
|
||||||
|
"Videos" = " "
|
||||||
|
"dropbox" = " "
|
||||||
|
"google-drive" = " "
|
||||||
|
"onedrive" = " "
|
||||||
|
"Attachments" = " "
|
||||||
|
# Keep in mind that the order matters. For example:
|
||||||
|
# "Important Documents" = " "
|
||||||
|
# will not be replaced, because "Documents" was already substituted before.
|
||||||
|
# So either put "Important Documents" before "Documents" or use the substituted version:
|
||||||
|
# "Important " = " "
|
||||||
|
|
||||||
|
[c]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#BD93F9"
|
||||||
|
format = '[[ $symbol ($version) ](bg:#BD93F9)]($style)'
|
||||||
|
|
||||||
|
[cmd_duration]
|
||||||
|
min_time = 0
|
||||||
|
style = "bg:#FF5555"
|
||||||
|
format = '[[ 祥 $duration ](bg:#FF5555)]($style)'
|
||||||
|
show_notifications = true
|
||||||
|
min_time_to_notify = 5_000
|
||||||
|
|
||||||
[docker_context]
|
[docker_context]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
|
style = "bg:#FF79C6"
|
||||||
|
format = '[[ $symbol $context ](bg:#FF79C6)]($style) $path'
|
||||||
|
|
||||||
[elixir]
|
[elixir]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
|
style = "bg:#BD93F9"
|
||||||
|
format = '[[ $symbol ($version) ](bg:#BD93F9)]($style)'
|
||||||
|
|
||||||
[elm]
|
[elm]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
|
style = "bg:#BD93F9"
|
||||||
|
format = '[[ $symbol ($version) ](bg:#BD93F9)]($style)'
|
||||||
|
|
||||||
[git_branch]
|
[git_branch]
|
||||||
symbol = " "
|
symbol = ""
|
||||||
|
style = "bg:#6272a4"
|
||||||
|
format = '[[ $symbol $branch ](bg:#6272a4)]($style)'
|
||||||
|
|
||||||
|
[git_status]
|
||||||
|
style = "bg:#6272a4"
|
||||||
|
format = '[[($all_status$ahead_behind )](bg:#6272a4)]($style)'
|
||||||
|
|
||||||
[golang]
|
[golang]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
|
style = "bg:#BD93F9"
|
||||||
|
format = '[[ $symbol ($version) ](bg:#BD93F9)]($style)'
|
||||||
|
|
||||||
# [haskell]
|
[haskell]
|
||||||
# symbol = " "
|
symbol = " "
|
||||||
|
style = "bg:#BD93F9"
|
||||||
[hg_branch]
|
format = '[[ $symbol ($version) ](bg:#BD93F9)]($style)'
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[java]
|
[java]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
|
style = "bg:#BD93F9"
|
||||||
|
format = '[[ $symbol ($version) ](bg:#BD93F9)]($style)'
|
||||||
|
|
||||||
[julia]
|
[julia]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
|
style = "bg:#BD93F9"
|
||||||
|
format = '[[ $symbol ($version) ](bg:#BD93F9)]($style)'
|
||||||
|
|
||||||
[line_break]
|
[nodejs]
|
||||||
disabled = false
|
symbol = ""
|
||||||
|
style = "bg:#BD93F9"
|
||||||
[memory_usage]
|
format = '[[ $symbol ($version) ](bg:#BD93F9)]($style)'
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[nim]
|
[nim]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
|
style = "bg:#BD93F9"
|
||||||
[nix_shell]
|
format = '[[ $symbol ($version) ](bg:#BD93F9)]($style)'
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[nodejs]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[package]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[perl]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[php]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[python]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[ruby]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[rust]
|
[rust]
|
||||||
symbol = " "
|
symbol = ""
|
||||||
|
style = "bg:#BD93F9"
|
||||||
|
format = '[[ $symbol ($version) ](bg:#BD93F9)]($style)'
|
||||||
|
|
||||||
[swift]
|
[time]
|
||||||
symbol = "ﯣ "
|
disabled = false
|
||||||
|
time_format = "%X" # Hour:Minute Format
|
||||||
|
style = "bg:#FFB86C"
|
||||||
|
format = '[[ $time ](bg:#FFB86C)]($style)'
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** Neofetch
|
*** Neofetch
|
||||||
@@ -4484,29 +4547,6 @@ set -g fish_pager_color_completion $foreground
|
|||||||
set -g fish_pager_color_description $comment
|
set -g fish_pager_color_description $comment
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
**** Notification
|
|
||||||
|
|
||||||
#+BEGIN_SRC fish :tangle .config/fish/conf.d/notification.fish
|
|
||||||
# This function allows you to switch to a different task
|
|
||||||
# when an interactive command takes too long
|
|
||||||
# by notifying you when it is finished.
|
|
||||||
#
|
|
||||||
# It is invoked by the fish shell automatically using its event system.
|
|
||||||
function __postexec_notify_on_long_running_commands --on-event fish_postexec
|
|
||||||
set --function interactive_commands 'vim' 'vlc' 'zathura' 'gitk' 'man' 'less'
|
|
||||||
set --function command (string split ' ' $argv[1])
|
|
||||||
if contains $command $interactive_commands
|
|
||||||
# We quit interactive commands manually,
|
|
||||||
# no need for a notification.
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
if test $CMD_DURATION -gt 5000
|
|
||||||
notify-send 'command finished' "$argv"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
** Terminal
|
** Terminal
|
||||||
*** Kitty
|
*** Kitty
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user