From aab1694198f310d3a839f6adb76133ab6232bcd0 Mon Sep 17 00:00:00 2001 From: js0ny Date: Fri, 1 Nov 2024 03:39:02 +0000 Subject: [PATCH] Update WSL zshrc --- win/Microsoft.PowerShell_profile.ps1 | 5 ++--- wsl/.zshrc | 27 +++++++-------------------- 2 files changed, 9 insertions(+), 23 deletions(-) diff --git a/win/Microsoft.PowerShell_profile.ps1 b/win/Microsoft.PowerShell_profile.ps1 index f818130..579133e 100644 --- a/win/Microsoft.PowerShell_profile.ps1 +++ b/win/Microsoft.PowerShell_profile.ps1 @@ -22,9 +22,8 @@ Set-Alias "pwshcfg" "shcfg" # ${function:clang++} = { clang -std=c++2b $args[0] } # WSL # -${function:wsl1} = {wsl.exe --distribution Debian} +${function:wsl1} = {wsl.exe --distribution Arch} ${function:wsl2} = {wsl.exe --distribution Ubuntu-22.04} -New-PSDrive -Name WSL -PSProvider FileSystem -Root \\wsl.localhost\Ubuntu-22.04 # Search Software # function Find-AppPackageListRemote { @@ -41,7 +40,7 @@ function Find-AppPackageListRemote { Write-Host "=== choco ===" choco search $Name } -Set-Alias "pkgsearch" "Get-AppPackageListRemote" +Set-Alias "pkgsearch" "Find-AppPackageListRemote" function Get-AppPackageListLocal { winget list choco list diff --git a/wsl/.zshrc b/wsl/.zshrc index 0114436..b8e8331 100644 --- a/wsl/.zshrc +++ b/wsl/.zshrc @@ -3,7 +3,9 @@ ### Variables ### export DOTFILES="$HOME/.dotfiles" -source $DOTFILES/zsh/*.zsh +for file in $DOTFILES/zsh/*.zsh; do + source $file +done export ARCHFLAGS="-arch x86_64" # Absolute navigation @@ -60,27 +62,12 @@ fi unset __conda_setup # <<< conda initialize <<< -# Ubuntu Command Not Found # -if [[ -x /usr/lib/command-not-found ]] ; then - if (( ! ${+functions[command_not_found_handler]} )) ; then - function command_not_found_handler { - [[ -x /usr/lib/command-not-found ]] || return 1 - /usr/lib/command-not-found -- ${1+"$1"} && : - } - fi +if [ -f /usr/share/doc/pkgfile/command-not-found.sh ]; then + source /usr/share/doc/pkgfile/command-not-found.sh fi -# LinuxBrew # -eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" -# Set PATH, MANPATH, etc., for Homebrew. +# vcpkg -# >>> juliaup initialize >>> - -# !! Contents within this block are managed by juliaup !! - -path=('/home/js0ny/.juliaup/bin' $path) -export PATH - -# <<< juliaup initialize <<< +export VCPKG_ROOT=~/vcpkg \ No newline at end of file