Update fish configuration and Starship prompt

This commit is contained in:
Fabio Scotto di Santolo
2024-05-29 20:09:39 +02:00
parent 6c21b51906
commit 87a9a52283
26 changed files with 1000 additions and 267 deletions

View File

@@ -37,6 +37,15 @@ end
## Advanced command-not-found hook
#source /usr/share/doc/find-the-command/ftc.fish
set -l xdg_data_home $XDG_DATA_HOME ~/.local/share
set -gx --path XDG_DATA_DIRS $xdg_data_home[1]/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
for flatpakdir in ~/.local/share/flatpak/exports/bin /var/lib/flatpak/exports/bin
if test -d $flatpakdir
contains $flatpakdir $PATH; or set -a PATH $flatpakdir
end
end
## Functions
# Functions needed for !! and !$ https://github.com/oh-my-fish/plugin-bang-bang
function __history_previous_command
@@ -124,6 +133,7 @@ alias tarnow 'tar -acf '
alias untar 'tar -zxvf '
alias vdir 'vdir --color=auto'
alias wget 'wget -c '
alias vi 'nvim'
# Get the error messages from journalctl
alias jctl 'journalctl -p 3 -xb'