some fixes

This commit is contained in:
Hannes
2026-05-11 23:39:20 +02:00
parent 95cf86ae5f
commit d02587437d
8 changed files with 98 additions and 10 deletions
+28
View File
@@ -100,6 +100,34 @@ function mkvenv
end
end
function src
# Check if venv directory exists
if not test -d .venv
echo "Cannot activate: .venv directory does not exist."
return 1
end
if not test -d .venv/bin
echo "Cannot activate: .venv/bin directory does not exist."
return 1
end
# Prefer Fish activation script
if test -f .venv/bin/activate.fish
source .venv/bin/activate.fish
return 0
end
# Fallback to bash activation via bass
if test -f .venv/bin/activate.bash
bass source .venv/bin/activate.bash
return 0
end
echo "No usable activation script found in .venv/bin/"
return 1
end
# Check if eza exists in either location
if test -x /usr/bin/eza -o -x $HOME/.cargo/bin/eza
function ls
-2
View File
@@ -77,8 +77,6 @@ function cleanup
end
end
set -x QT_QPA_PLATFORMTHEME qt5ct
set -x XCURSOR_THEME "DJ-FOX-C"
set -x XCURSOR_SIZE 24
+7
View File
@@ -0,0 +1,7 @@
#
# ~/.config/fish/configs/env.fish
#
if test -d $HOME/.bin
set -U fish_user_paths $HOME/.bin $fish_user_paths
end
+7 -7
View File
@@ -1,14 +1,14 @@
if test -x /usr/bin/pacman
if test -d ~/Nextcloud/UNI/26_TI/RISC-V
set -U fish_user_paths ~/mount/Storage/Nextcloud/UNI/26_TI/RISC-V/xpack-riscv-none-elf-gcc-15.2.0-1-linux-x64/xpack-riscv-none-elf-gcc-15.2.0-1/bin $fish_user_paths
set -U fish_user_paths ~/mount/Storage/Nextcloud/UNI/26_TI/RISC-V/verible-v0.0-4053-g89d4d98a-linux-static-x86_64/verible-v0.0-4053-g89d4d98a/bin $fish_user_paths
set -U fish_user_paths ~/Nextcloud/UNI/26_TI/RISC-V/xpack-riscv-none-elf-gcc-15.2.0-1-linux-x64/xpack-riscv-none-elf-gcc-15.2.0-1/bin $fish_user_paths
set -U fish_user_paths ~/Nextcloud/UNI/26_TI/RISC-V/verible-v0.0-4053-g89d4d98a-linux-static-x86_64/verible-v0.0-4053-g89d4d98a/bin $fish_user_paths
end
if test -d ~/projects/RISC-V
set -gx XILINX_VIVADO ~/projects/RISC-V/vivado/Vivado/2022.2
set -U fish_user_paths ~/projects/RISC-V/vivado/Vivado/2022.2/bin $fish_user_paths
set -gx LM_LICENSE_FILE ~/projects/RISC-V/intel/LR-160568_License.dat
if test -d ~/Projects/RISC-V
set -gx XILINX_VIVADO ~/Projects/RISC-V/vivado/Vivado/2022.2
set -U fish_user_paths ~/Projects/RISC-V/vivado/Vivado/2022.2/bin $fish_user_paths
set -gx LM_LICENSE_FILE ~/Projects/RISC-V/intel/LR-160568_License.dat
set -gx SALT_LICENSE_SERVER $LM_LICENSE_FILE
set -U fish_user_paths ~/projects/RISC-V/intel/questa_fse/bin $fish_user_paths
set -U fish_user_paths ~/Projects/RISC-V/intel/questa_fse/bin $fish_user_paths
end
end