bash: ble.sh tweaks and starship ricing
This commit is contained in:
parent
9153af8809
commit
a50ae3df10
|
@ -30,7 +30,6 @@ in {
|
||||||
# Syntax highlighting, auto suggestions, vim modes, etc.
|
# Syntax highlighting, auto suggestions, vim modes, etc.
|
||||||
# https://github.com/akinomyoga/ble.sh/wiki/Manual-A1-Installation#user-content-nixpkgs
|
# https://github.com/akinomyoga/ble.sh/wiki/Manual-A1-Installation#user-content-nixpkgs
|
||||||
source "$(blesh-share)" --attach=none
|
source "$(blesh-share)" --attach=none
|
||||||
[[ ''${BLE_VERSION-} ]] && ble-attach
|
|
||||||
# ctrl + space to accept autocomplete suggestion
|
# ctrl + space to accept autocomplete suggestion
|
||||||
ble-bind -m 'auto_complete' -f 'C-@' 'auto_complete/insert-on-end'
|
ble-bind -m 'auto_complete' -f 'C-@' 'auto_complete/insert-on-end'
|
||||||
# Meta (Alt) + Backspace to delete a word
|
# Meta (Alt) + Backspace to delete a word
|
||||||
|
@ -46,9 +45,19 @@ in {
|
||||||
ble-bind -f down 'history-search-forward hide-status:immediate-accept:empty=emulate-readline:point=end'
|
ble-bind -f down 'history-search-forward hide-status:immediate-accept:empty=emulate-readline:point=end'
|
||||||
ble-bind -f C-n 'history-search-forward hide-status:immediate-accept:empty=emulate-readline:point=end'
|
ble-bind -f C-n 'history-search-forward hide-status:immediate-accept:empty=emulate-readline:point=end'
|
||||||
|
|
||||||
|
function my/complete-load-hook {
|
||||||
|
bleopt complete_auto_delay=300
|
||||||
|
}
|
||||||
|
blehook/eval-after-load complete my/complete-load-hook
|
||||||
|
|
||||||
|
bleopt exec_errexit_mark=
|
||||||
|
bleopt history_share=1
|
||||||
bleopt filename_ls_colors="$LS_COLORS"
|
bleopt filename_ls_colors="$LS_COLORS"
|
||||||
|
|
||||||
source ${config.age.secrets.environment-secrets.path}
|
source ${config.age.secrets.environment-secrets.path}
|
||||||
|
|
||||||
|
# end of .bashrc
|
||||||
|
[[ ''${BLE_VERSION-} ]] && ble-attach
|
||||||
'';
|
'';
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
format = "$directory($git_branch$git_commit$git_state$git_status)($c$deno$golang$haskell$nix_shell$nodejs$php$python$ruby$rust$terraform[](fg:#86BBD8 bg:#06969A))($docker_context[](fg:#06969A))($container)$fill(\${custom.triton})[ ](fg:#F85E84)$line_break$character";
|
format = "$directory($git_branch$git_commit$git_state$git_status)($c$deno$golang$haskell$nodejs$php$python$ruby$rust$terraform[](fg:#86BBD8 bg:#06969A))($docker_context[](fg:#06969A))($container)$fill(\${custom.triton})$nix_shell$status[ |](fg:#F85E84)$line_break$character";
|
||||||
|
|
||||||
# Disable the blank line at the start of the prompt
|
# Disable the blank line at the start of the prompt
|
||||||
add_newline = false;
|
add_newline = false;
|
||||||
|
@ -13,13 +13,18 @@
|
||||||
#};
|
#};
|
||||||
character = {
|
character = {
|
||||||
success_symbol = "[❯](bold purple)";
|
success_symbol = "[❯](bold purple)";
|
||||||
error_symbol = "[✗](#ff4b00)";
|
error_symbol = "[✗](#FF4B00)";
|
||||||
vicmd_symbol = "[❮](bold purple)";
|
};
|
||||||
|
|
||||||
|
status = {
|
||||||
|
disabled = false;
|
||||||
|
style = "#FF4B00";
|
||||||
};
|
};
|
||||||
|
|
||||||
fill = {
|
fill = {
|
||||||
symbol = "-";
|
symbol = "-";
|
||||||
style = "bold green";
|
#style = "bold green";
|
||||||
|
style = "black";
|
||||||
};
|
};
|
||||||
|
|
||||||
directory = {
|
directory = {
|
||||||
|
@ -118,10 +123,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
nix_shell = {
|
nix_shell = {
|
||||||
format = ''[$symbol$state]($style) '';
|
format = ''[$symbol]($style) '';
|
||||||
symbol = " ";
|
symbol = " ";
|
||||||
pure_msg = "λ";
|
|
||||||
impure_msg = "⎔";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nodejs = {
|
nodejs = {
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
final: prev: {
|
final: prev: {
|
||||||
blesh = prev.blesh.overrideAttrs (oldAttrs: rec {
|
blesh = prev.blesh.overrideAttrs (oldAttrs: rec {
|
||||||
version = "unstable-2022-12-15";
|
version = "unstable-2023-02-01";
|
||||||
src = prev.fetchFromGitHub {
|
src = prev.fetchFromGitHub {
|
||||||
owner = "akinomyoga";
|
owner = "akinomyoga";
|
||||||
repo = "ble.sh";
|
repo = "ble.sh";
|
||||||
rev = "32277dae20f004c3a65aeb3adae881b8b8e0318f";
|
rev = "0ceb0cb38157c2c37650ffb069098783338eb02c";
|
||||||
hash = "sha256-qh5z0rkDOKhgi4/LQX2WHShzqwlOUpe+CuJArEmuKMo=";
|
hash = "sha256-f3w3gHKysRafBGcZbCPUvy9e/fOrQc9TBZAjb0ioxpo=";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
leaveDotGit = true;
|
leaveDotGit = true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue