40 lines
1.1 KiB
Fish
40 lines
1.1 KiB
Fish
function fish_greeting
|
|
fortune
|
|
end
|
|
|
|
function !!
|
|
set var (history | head -n 1)
|
|
if test $argv
|
|
if test $argv = sudo #; or "any other command you want to prepend"
|
|
eval $argv $var
|
|
else
|
|
eval $var $argv
|
|
end
|
|
else
|
|
eval $var
|
|
end
|
|
end
|
|
|
|
set path_append "/home/sortion/.luarocks/bin:/home/sortion/.julia/bin:/home/sortion/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/opt/quarto/quarto-1.2.335/bin:/home/sortion/.local/bin::/home/sortion/Documents/cours/tools/bin/"
|
|
for path in (string split ":" $path_append)
|
|
fish_add_path $path
|
|
end
|
|
|
|
# >>> conda initialize >>>
|
|
# !! Contents within this block are managed by 'conda init' !!
|
|
if test -f /home/sortion/.local/share/mambaforge/bin/conda
|
|
eval /home/sortion/.local/share/mambaforge/bin/conda "shell.fish" hook $argv | source
|
|
end
|
|
|
|
if test -f "/home/sortion/.local/share/mambaforge/etc/fish/conf.d/mamba.fish"
|
|
source "/home/sortion/.local/share/mambaforge/etc/fish/conf.d/mamba.fish"
|
|
end
|
|
# <<< conda initialize <<
|
|
|
|
function __conda_add_prompt
|
|
end # Avoid conda prompt
|
|
|
|
source ~/.aliases.fish
|
|
|
|
starship init fish | source
|