diff --git a/config.fish b/config.fish index 288d4b1..533bb84 100755 --- a/config.fish +++ b/config.fish @@ -8,6 +8,8 @@ if status is-interactive set fish_cursor_default block set -Ux SHELL /bin/fish + set -Ux LD_LIBRARY_PATH "$LD_LIBRARY_PATH:$HOME/local/.lib" + set -Ux FZF_DEFAULT_OPTS "\ --color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8 \ --color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc \ @@ -16,15 +18,6 @@ if status is-interactive fzf_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 end set fish_greeting diff --git a/functions/compile.fish b/functions/compile.fish new file mode 100644 index 0000000..e0e2d6a --- /dev/null +++ b/functions/compile.fish @@ -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