Update fish configuration and Starship prompt
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user