Add some stuff for the initializer to work on another computer

This commit is contained in:
Segcolt 2024-09-18 21:36:41 -03:00
parent 755ddf5f2f
commit 0b98cfe77c
2 changed files with 6 additions and 9 deletions

View File

@ -8,6 +8,8 @@ if status is-interactive
set fish_cursor_default block set fish_cursor_default block
set -Ux SHELL /bin/fish set -Ux SHELL /bin/fish
set -Ux LD_LIBRARY_PATH "$LD_LIBRARY_PATH:$HOME/local/.lib"
set -Ux FZF_DEFAULT_OPTS "\ set -Ux FZF_DEFAULT_OPTS "\
--color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8 \ --color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8 \
--color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc \ --color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc \
@ -16,15 +18,6 @@ if status is-interactive
fzf_key_bindings fzf_key_bindings
fish_hybrid_key_bindings fish_hybrid_key_bindings
sh -c '
if [ ! -f "/run/user/$EUID/fish.please.lock" ]; then
please
touch "/run/user/$EUID/fish.please.lock"
else
fortune -o | ponysay -b round
fi
'
starship init fish | source starship init fish | source
end end
set fish_greeting set fish_greeting

4
functions/compile.fish Normal file
View File

@ -0,0 +1,4 @@
function compile --wraps='g++ -O0 -g -fsanitize=address,undefined -o fds -std=c++17' --description 'alias compile g++ -O0 -g -fsanitize=address,undefined -o fds -std=c++17'
g++ -O0 -g -fsanitize=address,undefined -o fds -std=c++17 $argv
end