From 05e28b250fb80fe214ee8adace6c10751519f4ae Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Sun, 28 Jul 2024 16:12:20 +0200 Subject: [PATCH] Usability improvements - Starship removed unused modules from prompt - Added aliases --- fish/dot-config/fish/config.fish | 11 +++++++++- starship/dot-config/starship.toml | 34 ++++++------------------------- 2 files changed, 16 insertions(+), 29 deletions(-) diff --git a/fish/dot-config/fish/config.fish b/fish/dot-config/fish/config.fish index 0933bfd..9f9cb7a 100755 --- a/fish/dot-config/fish/config.fish +++ b/fish/dot-config/fish/config.fish @@ -7,7 +7,11 @@ set -xU MANROFFOPT -c set -x SHELL /usr/bin/fish set -x GOPATH $HOME/.local/share/go set -x GOBIN $GOPATH/bin -set PATH $GOBIN $PATH + +## Add custom paths on shell PATH +for p in $GOBIN + set PATH $p $PATH +end ## Export variable need for qt-theme if type qtile >>/dev/null 2>&1 @@ -144,6 +148,9 @@ alias cat 'bat --style header --style snip --style changes --style header' # Replace df command tool alias df='duf' +# Safety rm command +alias rm 'trash -v' + # Common use alias .. 'cd ..' alias ... 'cd ../..' @@ -163,3 +170,5 @@ alias untar 'tar -zxvf ' alias vdir 'vdir --color=auto' alias wget 'wget -c ' alias stow 'stow --dotfiles -d ~/.dotfiles ' +alias openport 'netstat -nape --inet' +alias kssh 'kitty +kitten ssh' diff --git a/starship/dot-config/starship.toml b/starship/dot-config/starship.toml index 0721f87..42e361e 100644 --- a/starship/dot-config/starship.toml +++ b/starship/dot-config/starship.toml @@ -1,29 +1,18 @@ format = """ -$username\ $directory\ $vcsh\ -$fossil_branch\ -$fossil_metrics\ $git_branch\ $git_commit\ $git_state\ $git_metrics\ $git_status\ $hg_branch\ -$pijul_channel\ $package\ $bun\ $c\ $cmake\ -$cobol\ -$daml\ -$dart\ -$deno\ -$dotnet\ $elixir\ -$elm\ $erlang\ -$fennel\ $gleam\ $golang\ $gradle\ @@ -31,31 +20,18 @@ $haskell\ $haxe\ $helm\ $java\ -$julia\ $kotlin\ $lua\ -$nim\ $nodejs\ $ocaml\ -$odin\ -$opa\ $perl\ $php\ -$pulumi\ -$purescript\ $python\ -$quarto\ -$raku\ -$rlang\ -$red\ $ruby\ $rust\ $scala\ -$solidity\ $swift\ $terraform\ -$typst\ -$vlang\ $vagrant\ $zig\ $docker_context\ @@ -66,16 +42,14 @@ $conda\ $meson\ $spack\ $memory_usage\ -$crystal\ $direnv\ $env_var\ -$singularity\ $custom\ $sudo\ $cmd_duration\ $line_break\ +$username\ $jobs\ -$battery\ $time\ $status\ $container\ @@ -212,7 +186,7 @@ crust = "#11111b" [character] # Note the use of Catppuccin color 'maroon' -success_symbol = "[[♥](green) ❯](maroon)" +success_symbol = "[[♥](peach) ❯](maroon)" error_symbol = "[❯](red)" vimcmd_symbol = "[❮](green)" @@ -403,5 +377,9 @@ symbol = " " [swift] symbol = " " +[username] +show_always = true +format = "[$user]($style) on " + [zig] symbol = " "