diff --git a/fake_home/.bashrc b/fake_home/.bashrc index 7e755db..badb4f4 100644 --- a/fake_home/.bashrc +++ b/fake_home/.bashrc @@ -142,6 +142,6 @@ ex () source ~/.shell_aliases . "$HOME/.cargo/env" -export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm -[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion +# export NVM_DIR="$HOME/.nvm" +# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion diff --git a/fake_home/.local/share/Steam/steamapps/compatdata/2379780/pfx/drive_c/users/steamuser/AppData/Roaming/Balatro/Mods/EscapeExitButton.lua b/fake_home/.local/share/Steam/steamapps/compatdata/2379780/pfx/drive_c/users/steamuser/AppData/Roaming/Balatro/Mods/EscapeExitButton.lua deleted file mode 100644 index 558a695..0000000 --- a/fake_home/.local/share/Steam/steamapps/compatdata/2379780/pfx/drive_c/users/steamuser/AppData/Roaming/Balatro/Mods/EscapeExitButton.lua +++ /dev/null @@ -1,31 +0,0 @@ ---- STEAMODDED HEADER ---- MOD_NAME: Escape Exit Button ---- MOD_ID: EscapeExitButton ---- MOD_AUTHOR: [Steamo] ---- MOD_DESCRIPTION: Add an "Exit" button into the "Escape" menu - ----------------------------------------------- -------------MOD CODE ------------------------- - -function G.FUNCS.exit_button(arg_736_0) - G.SETTINGS.paused = true - - love.event.quit() -end - -local createOptionsRef = create_UIBox_options -function create_UIBox_options() - contents = createOptionsRef() - local exit_button = UIBox_button({ - minw = 5, - button = "exit_button", - label = { - "Exit Game" - } - }) - table.insert(contents.nodes[1].nodes[1].nodes[1].nodes, #contents.nodes[1].nodes[1].nodes[1].nodes + 1, exit_button) - return contents -end - ----------------------------------------------- -------------MOD CODE END---------------------- diff --git a/fake_home/.shell_aliases b/fake_home/.shell_aliases index 99cfb2b..6e0aec0 100755 --- a/fake_home/.shell_aliases +++ b/fake_home/.shell_aliases @@ -206,7 +206,11 @@ function wf { if [[ "$@" != "" ]]; then local fzf_args="-q $@" fi - echo ~/wiki/"$(rg --with-filename --no-heading . ~/wiki | sed 's@/home/sage/wiki/@@' | fzf -i $fzf_args -1 --preview='bat ~/wiki/$(echo {} | sed "s/:.*//")' | sed 's/:.*//')" + local wiki_dir="$HOME/wiki/" + if [[ "$WIKI_DIR" != "" ]]; then + wiki_dir="$WIKI_DIR" + fi + echo $wiki_dir/"$(rg --with-filename --no-heading . "$wiki_dir" | sed "s@$wiki_dir@@" | fzf -i $fzf_args -1 --preview="bat $wiki_dir/\$(echo {} | sed 's/:.*//')" | sed 's/:.*//')" } function ws { @@ -217,7 +221,11 @@ function ws { } function ww { - ws $(rg --no-line-number --no-filename . ~/wiki | sed 's/[^a-zA-Z0-9]\+/\n/g' | grep -v "^$" | sort -f | uniq -ci | sort -hr | fzf -i | cut -c 9-) + local wiki_dir="$HOME/wiki/" + if [[ "$WIKI_DIR" != "" ]]; then + wiki_dir="$WIKI_DIR" + fi + ws $(rg --no-line-number --no-filename . "$wiki_dir" | sed 's/[^a-zA-Z0-9]\+/\n/g' | grep -v "^$" | sort -f | uniq -ci | sort -hr | fzf -i | cut -c 9-) } if command -v bat &> /dev/null; then diff --git a/fake_home/.zshrc b/fake_home/.zshrc index 5555443..8f84b1f 100644 --- a/fake_home/.zshrc +++ b/fake_home/.zshrc @@ -148,15 +148,18 @@ function merge-hist { } function sync-history { + echo "Downloading shared history..." if ! scp -P 11275 'sage@sagev.space:~/histfile' "$HOME/.tmp/.histfile"; then + echo "Shared history download failed!" scp -P 11275 "$HOME/.histfile" 'sage@sagev.space:~/histfile' return fi fc -W # Write to history file merge-hist "$HOME/.histfile" "$HOME/.tmp/.histfile" > "$HOME/.tmp/$(whoami).histfile" mv "$HOME/.tmp/$(whoami).histfile" "$HOME/.histfile" - scp -P 11275 "$HOME/.histfile" 'sage@sagev.space:~/histfile' fc -R # Read from new history file + echo "Uploading new shared history..." + scp -P 11275 "$HOME/.histfile" 'sage@sagev.space:~/histfile' } function install-extension { @@ -294,7 +297,7 @@ test -f "$HOME/.asdf/asdf.sh" && . "$HOME/.asdf/asdf.sh" test -f ~/.cargo/env && source ~/.cargo/env # bun completions -[ -s "/home/sage/.bun/_bun" ] && source "/home/sage/.bun/_bun" +[ -s "$HOME/.bun/_bun" ] && source "$HOME/.bun/_bun" # bun export BUN_INSTALL="$HOME/.bun"