Update and clean up fish configs.

- DEBUGINFOD_* is for debuginfod.
- Switch from starship to my own prompt.
This commit is contained in:
Érico Nogueira 2021-03-11 02:31:00 -03:00
parent 8bcc4335a6
commit a2e1002061
4 changed files with 12 additions and 102 deletions

View File

@ -13,3 +13,5 @@ for i in ~/.local/bin ~/.cargo/bin ~/.emacs.d/bin
end
set -x LANG pt_BR.UTF-8
set -x DEBUGINFOD_URLS "https://debuginfod.s.voidlinux.org http://localhost:8002"
set -x DEBUGINFOD_TIMEOUT "5"

View File

@ -1,5 +1,10 @@
if [ $CHROOTED ]
alias fish_prompt='echo "[chroot]" (pwd) "> "'
else
source ("starship" init fish --print-full-init | psub)
function fish_prompt
set -l _exit_status $status
set -l _prompt_args
if [ -n "$CHROOTED" ]
set -a _prompt_args -c
end
ep $_prompt_args -j (count (jobs --pid)) -e $_exit_status -d $CMD_DURATION
end

View File

@ -1,97 +0,0 @@
# _
# ___ _ __ (_) ___ ___ _ __ _ __
# / _ \| '__|| | / __| / _ \ | '_ \ | '__|
# | __/| | | || (__ | (_) || | | || |
# \___||_| |_| \___| \___/ |_| |_||_|
#
add_newline = false
format = """
$username\
$hostname\
$shlvl\
$kubernetes\
$directory\
$git_branch\
$git_commit\
$git_state\
$hg_branch\
$docker_context\
$package\
$dart\
$dotnet\
$elixir\
$elm\
$erlang\
$golang\
$helm\
$java\
$julia\
$nim\
$nodejs\
$ocaml\
$perl\
$php\
$purescript\
$python\
$ruby\
$rust\
$swift\
$terraform\
$zig\
$nix_shell\
$conda\
$memory_usage\
$aws\
$gcloud\
$env_var\
$crystal\
$cmd_duration\
$custom\
$line_break\
$jobs\
$battery\
$time\
$status\
$character"""
[character]
format = "$symbol "
success_symbol = "[➜](bold green)"
error_symbol = "[➜](bold red)"
[directory]
truncation_length = 1
fish_style_pwd_dir_length = 1
[git_branch]
symbol = ""
[git_status]
modified_count.enabled = true
modified_count.style = "green"
staged_count.enabled = true
show_sync_count = true
[package]
style="bright-green"
[golang]
format="$symbol"
style="bold yellow"
[java]
format="$symbol"
[perl]
format="$symbol"
[python]
format="$symbol"
[rust]
format="$symbol"
[line_break]
disabled = true

View File

@ -62,7 +62,7 @@ _browser="ncdu ranger fzf"
_device="usbutils"
_monitor="bmon htop"
_net="curl git gnupg2 aerc asciinema lynx weechat"
_shell="fish-shell lolcat-c starship tmux"
_shell="fish-shell lolcat-c tmux"
_tools="bat bsdtar dos2unix fd mdcat neovim p7zip parallel ripgrep stow execline s6"
_void="vsv xtools graphviz"
_info="man-pages-devel man-pages-posix"