Skip to content

Commit

Permalink
make prompt transient (improve Starship & ble config)
Browse files Browse the repository at this point in the history
  • Loading branch information
georglauterbach authored Jul 16, 2024
1 parent 8ec2b6e commit 9eade55
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 19 deletions.
25 changes: 16 additions & 9 deletions data/unversioned/no_gui/data/home/.config/bash/ble.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,38 +34,45 @@ bg_orange='#E16F23'

# actual ble.sh options

bleopt accept_line_threshold=-1

# Make CTRL+BACKSPACE delete a whole word (in Alacritty)
ble-bind -f 'M-C-?' kill-backward-cword

# syntax highlighting
bleopt highlight_syntax=true
bleopt highlight_filename=true
bleopt highlight_variable=true

# transient prompt
bleopt prompt_ps1_final='$(starship module character)'

# completion
bleopt complete_auto_complete=true
bleopt complete_auto_history=true
bleopt complete_ambiguous=true
bleopt complete_menu_complete=true
bleopt complete_menu_filter=true

bleopt complete_menu_style=align-nowrap
bleopt menu_align_max=20
bleopt complete_menu_maxlines=3

# line & history lenght limits
bleopt line_limit_length=10000
bleopt history_limit_length=10000

# markings & bells
bleopt prompt_eol_mark=
bleopt exec_errexit_mark=
bleopt exec_elapsed_mark=
bleopt edit_abell=
bleopt edit_vbell=

# charsets & encoding
bleopt char_width_mode='west'
bleopt input_encoding='UTF-8'
bleopt edit_abell=

# miscellaneous
bleopt history_share=true
bleopt edit_vbell=

bleopt line_limit_length=10000
bleopt history_limit_length=10000
bleopt menu_align_max=20
bleopt accept_line_threshold=-1

# line coloring

Expand Down
22 changes: 12 additions & 10 deletions data/unversioned/no_gui/data/home/.config/bash/starship.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# StarShip -- a cross-platform prompt (https://starship.rs)
# For symbols, see https://www.nerdfonts.com/cheat-sheet

format='$username$hostname$git_branch$directory$rust$python$character'
add_newline = false
format='''$username@[tower](purple) $directory $git_branch$rust$python
$character'''
add_newline = true
scan_timeout = 10
command_timeout = 100
palette = 'gruvbox-material'
Expand Down Expand Up @@ -69,8 +70,8 @@ bg_orange = '#E16F23'
disabled = false
show_always = false
format = '[$user]($style)'
style_user = 'yellow'
style_root = 'yellow bold'
style_user = 'aqua'
style_root = 'aqua bold'

[hostname]
disabled = false
Expand All @@ -79,15 +80,16 @@ ssh_only = true
ssh_symbol = "SSH"

[git_branch]
format = '[\[$symbol $branch\]](blue) '
format = '[\[$symbol $branch\]](yellow)'
symbol = ''

[rust]
format = ' [\[$symbol $version\]](red)'
symbol = '🦀'
symbol = ''

[python]
format = ' [\[$symbol$version( in $virtualenv)\]](yellow)'
format = ' [\[$symbol $version( in $virtualenv)\]](yellow)'
symbol = ''

[directory]
disabled = false
Expand All @@ -100,10 +102,10 @@ truncate_to_repo = true
read_only_style = 'red bold'
read_only = ''

repo_root_format = '[$read_only]($read_only_style)[$repo_root]($repo_root_style)[$path](blue)'
repo_root_format = '[$read_only]($read_only_style)[$repo_root]($repo_root_style)[$path](blue)'
repo_root_style = 'blue bold'

[character]
disabled = false
success_symbol = ' [➜](green)'
error_symbol = ' [➜](red)'
success_symbol = '[➜](green)'
error_symbol = '[➜](red)'

0 comments on commit 9eade55

Please sign in to comment.