Files

114 lines
3.1 KiB
Fish
Raw Permalink Normal View History

2025-04-28 18:19:42 -04:00
# Source completions and builtins
2025-02-04 09:14:26 -05:00
if test -f ~/.config/fish/completions/glow.fish
2025-04-28 18:19:42 -04:00
source ~/.config/fish/completions/glow.fish
2024-12-26 15:49:22 +02:00
end
2025-02-04 09:14:26 -05:00
if test -f ~/.config/fish/functions/commands.fish
2025-04-28 18:19:42 -04:00
source ~/.config/fish/functions/commands.fish
2024-12-26 15:49:22 +02:00
end
2025-04-28 18:19:42 -04:00
if test -f ~/.config/fish/functions/builtins.fish
source ~/.config/fish/functions/builtins.fish
2024-12-26 15:49:22 +02:00
end
2025-04-28 18:19:42 -04:00
# ------------------------------------------------------------------------------
# Environment variables & PATHs
# ------------------------------------------------------------------------------
set -x PATH ~/Downloads/flutter/bin ~/Android/Sdk/platform-tools $PATH
set -x PATH_TO_FX "~/javafx-sdk-22.0.1/lib"
set -x SDKMAN_DIR "$HOME/.sdkman"
set -x PNPM_HOME "~/.local/share/pnpm"
if not contains "$PNPM_HOME" $PATH
set -x PATH $PNPM_HOME $PATH
2024-12-26 15:49:22 +02:00
end
set -x HISTCONTROL "shutdown *:ignoredups:erasedups"
set -x CC /usr/bin/gcc
2025-04-28 18:19:42 -04:00
set -x CXX /usr/bin/g++
set -x CFLAGS "--sysroot=/usr/share/wasi-sysroot"
2024-12-26 15:49:22 +02:00
set -x EDITOR nvim
2025-04-28 18:19:42 -04:00
set -gx PATH /opt/cuda/bin $PATH
set -gx LD_LIBRARY_PATH /opt/cuda/lib64 $LD_LIBRARY_PATH
2026-02-08 18:10:42 +09:00
set -gx JAVA_HOME /usr/lib/jvm/java-21-openjdk
set -gx PATH $JAVA_HOME/bin:$PATH
2024-12-26 15:49:22 +02:00
2025-04-28 18:19:42 -04:00
# GTK and Qt themes
2024-12-26 15:49:22 +02:00
set -x GTK_THEME "Adwaita:dark"
set -x GTK2_RC_FILES "/usr/share/themes/Adwaita-dark/gtk-2.0/gtkrc"
set -x QT_STYLE_OVERRIDE Adwaita-Dark
2026-02-08 18:10:42 +09:00
# Ani-CLI
set -x ANI_CLI_PLAYER vlc
set -x ANI_CLI_DOWNLOAD_DIR ~/Videos/Anime
2025-04-28 18:19:42 -04:00
# SDKMAN init
if test -s "$SDKMAN_DIR/bin/sdkman-init.sh"
source "$SDKMAN_DIR/bin/sdkman-init.sh"
2024-12-26 15:49:22 +02:00
end
2025-04-28 18:19:42 -04:00
# ------------------------------------------------------------------------------
# Aliases
# ------------------------------------------------------------------------------
2024-12-26 15:49:22 +02:00
alias postgres="pg_ctl -D /var/lib/postgres/data -l logfile start"
alias temperature="sensors"
2025-04-28 18:19:42 -04:00
# ------------------------------------------------------------------------------
# Functions
# ------------------------------------------------------------------------------
function clearhist
builtin history clear
2024-12-26 15:49:22 +02:00
end
2025-04-28 18:19:42 -04:00
function killvesktop
kill -9 (ps aux | grep vesktop | grep -v grep | awk '{print $2}' | head -n 1)
ps aux | grep vesktop
2024-12-26 15:49:22 +02:00
end
2026-02-08 18:10:42 +09:00
function killwebex
bash /home/ion606/killwebex.sh
ps aux | grep webex
end
2025-04-28 18:19:42 -04:00
function updateDiscord
set target_dir ~/Discord
set tar_file (find . -type f -name "discord-*.tar.gz" | head -n 1)
if test -z "$tar_file"
echo "No matching tar.gz file found."
return 1
2024-12-26 15:49:22 +02:00
end
2025-04-28 18:19:42 -04:00
tar -xzf "$tar_file"
set extracted_dir (string replace ".tar.gz" "" $tar_file)
cp -rT "$extracted_dir" "$target_dir"
rm "$tar_file"
echo "Contents copied to $target_dir"
2024-12-26 15:49:22 +02:00
end
2025-04-28 18:19:42 -04:00
function submitty
bash ~/runsubmitty.sh
2024-12-26 15:49:22 +02:00
end
2025-04-28 18:19:42 -04:00
function showinfo
bash ~/.customscripts/swaybackup/auto/shownotif.sh info $argv
2024-12-26 15:49:22 +02:00
end
2025-04-28 18:19:42 -04:00
function sway
sway --unsupported-gpu
2024-12-26 15:49:22 +02:00
end
2025-04-28 18:19:42 -04:00
function minecraft
portablemc start forge:1.20.1-recommended -l itamar137@outlook.com
2024-12-26 15:49:22 +02:00
end
2025-04-28 18:19:42 -04:00
# ------------------------------------------------------------------------------
# Prompt & colors
# ------------------------------------------------------------------------------
2024-12-26 15:49:22 +02:00
starship init fish | source
2025-02-04 09:14:26 -05:00
if test -f ~/.config/fish/conf.d/colors.fish
2025-04-28 18:19:42 -04:00
source ~/.config/fish/conf.d/colors.fish
2024-12-26 15:49:22 +02:00
end
2026-02-08 18:10:42 +09:00
# bun
set --export BUN_INSTALL "$HOME/.bun"
set --export PATH $BUN_INSTALL/bin $PATH