mirror of
https://github.com/ION606/config-backup.git
synced 2026-05-14 22:16:58 +00:00
114 lines
3.1 KiB
Fish
114 lines
3.1 KiB
Fish
# Source completions and builtins
|
|
if test -f ~/.config/fish/completions/glow.fish
|
|
source ~/.config/fish/completions/glow.fish
|
|
end
|
|
|
|
if test -f ~/.config/fish/functions/commands.fish
|
|
source ~/.config/fish/functions/commands.fish
|
|
end
|
|
|
|
if test -f ~/.config/fish/functions/builtins.fish
|
|
source ~/.config/fish/functions/builtins.fish
|
|
end
|
|
|
|
# ------------------------------------------------------------------------------
|
|
# 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
|
|
end
|
|
|
|
set -x HISTCONTROL "shutdown *:ignoredups:erasedups"
|
|
set -x CC /usr/bin/gcc
|
|
set -x CXX /usr/bin/g++
|
|
set -x CFLAGS "--sysroot=/usr/share/wasi-sysroot"
|
|
set -x EDITOR nvim
|
|
|
|
set -gx PATH /opt/cuda/bin $PATH
|
|
set -gx LD_LIBRARY_PATH /opt/cuda/lib64 $LD_LIBRARY_PATH
|
|
set -gx JAVA_HOME /usr/lib/jvm/java-21-openjdk
|
|
set -gx PATH $JAVA_HOME/bin:$PATH
|
|
|
|
# GTK and Qt themes
|
|
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
|
|
|
|
# Ani-CLI
|
|
set -x ANI_CLI_PLAYER vlc
|
|
set -x ANI_CLI_DOWNLOAD_DIR ~/Videos/Anime
|
|
|
|
# SDKMAN init
|
|
if test -s "$SDKMAN_DIR/bin/sdkman-init.sh"
|
|
source "$SDKMAN_DIR/bin/sdkman-init.sh"
|
|
end
|
|
|
|
# ------------------------------------------------------------------------------
|
|
# Aliases
|
|
# ------------------------------------------------------------------------------
|
|
alias postgres="pg_ctl -D /var/lib/postgres/data -l logfile start"
|
|
alias temperature="sensors"
|
|
|
|
# ------------------------------------------------------------------------------
|
|
# Functions
|
|
# ------------------------------------------------------------------------------
|
|
function clearhist
|
|
builtin history clear
|
|
end
|
|
|
|
function killvesktop
|
|
kill -9 (ps aux | grep vesktop | grep -v grep | awk '{print $2}' | head -n 1)
|
|
ps aux | grep vesktop
|
|
end
|
|
|
|
function killwebex
|
|
bash /home/ion606/killwebex.sh
|
|
ps aux | grep webex
|
|
end
|
|
|
|
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
|
|
end
|
|
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"
|
|
end
|
|
|
|
function submitty
|
|
bash ~/runsubmitty.sh
|
|
end
|
|
|
|
function showinfo
|
|
bash ~/.customscripts/swaybackup/auto/shownotif.sh info $argv
|
|
end
|
|
|
|
function sway
|
|
sway --unsupported-gpu
|
|
end
|
|
|
|
function minecraft
|
|
portablemc start forge:1.20.1-recommended -l itamar137@outlook.com
|
|
end
|
|
|
|
# ------------------------------------------------------------------------------
|
|
# Prompt & colors
|
|
# ------------------------------------------------------------------------------
|
|
starship init fish | source
|
|
if test -f ~/.config/fish/conf.d/colors.fish
|
|
source ~/.config/fish/conf.d/colors.fish
|
|
end
|
|
|
|
# bun
|
|
set --export BUN_INSTALL "$HOME/.bun"
|
|
set --export PATH $BUN_INSTALL/bin $PATH
|