mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
Update WSL zshrc
This commit is contained in:
parent
3c335539a5
commit
aab1694198
2 changed files with 9 additions and 23 deletions
|
|
@ -22,9 +22,8 @@ Set-Alias "pwshcfg" "shcfg"
|
||||||
# ${function:clang++} = { clang -std=c++2b $args[0] }
|
# ${function:clang++} = { clang -std=c++2b $args[0] }
|
||||||
|
|
||||||
# WSL #
|
# WSL #
|
||||||
${function:wsl1} = {wsl.exe --distribution Debian}
|
${function:wsl1} = {wsl.exe --distribution Arch}
|
||||||
${function:wsl2} = {wsl.exe --distribution Ubuntu-22.04}
|
${function:wsl2} = {wsl.exe --distribution Ubuntu-22.04}
|
||||||
New-PSDrive -Name WSL -PSProvider FileSystem -Root \\wsl.localhost\Ubuntu-22.04
|
|
||||||
|
|
||||||
# Search Software #
|
# Search Software #
|
||||||
function Find-AppPackageListRemote {
|
function Find-AppPackageListRemote {
|
||||||
|
|
@ -41,7 +40,7 @@ function Find-AppPackageListRemote {
|
||||||
Write-Host "=== choco ==="
|
Write-Host "=== choco ==="
|
||||||
choco search $Name
|
choco search $Name
|
||||||
}
|
}
|
||||||
Set-Alias "pkgsearch" "Get-AppPackageListRemote"
|
Set-Alias "pkgsearch" "Find-AppPackageListRemote"
|
||||||
function Get-AppPackageListLocal {
|
function Get-AppPackageListLocal {
|
||||||
winget list
|
winget list
|
||||||
choco list
|
choco list
|
||||||
|
|
|
||||||
27
wsl/.zshrc
27
wsl/.zshrc
|
|
@ -3,7 +3,9 @@
|
||||||
### Variables ###
|
### Variables ###
|
||||||
|
|
||||||
export DOTFILES="$HOME/.dotfiles"
|
export DOTFILES="$HOME/.dotfiles"
|
||||||
source $DOTFILES/zsh/*.zsh
|
for file in $DOTFILES/zsh/*.zsh; do
|
||||||
|
source $file
|
||||||
|
done
|
||||||
export ARCHFLAGS="-arch x86_64"
|
export ARCHFLAGS="-arch x86_64"
|
||||||
|
|
||||||
# Absolute navigation
|
# Absolute navigation
|
||||||
|
|
@ -60,27 +62,12 @@ fi
|
||||||
unset __conda_setup
|
unset __conda_setup
|
||||||
# <<< conda initialize <<<
|
# <<< conda initialize <<<
|
||||||
|
|
||||||
# Ubuntu Command Not Found #
|
|
||||||
|
|
||||||
if [[ -x /usr/lib/command-not-found ]] ; then
|
if [ -f /usr/share/doc/pkgfile/command-not-found.sh ]; then
|
||||||
if (( ! ${+functions[command_not_found_handler]} )) ; then
|
source /usr/share/doc/pkgfile/command-not-found.sh
|
||||||
function command_not_found_handler {
|
|
||||||
[[ -x /usr/lib/command-not-found ]] || return 1
|
|
||||||
/usr/lib/command-not-found -- ${1+"$1"} && :
|
|
||||||
}
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# LinuxBrew #
|
|
||||||
|
|
||||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
# vcpkg
|
||||||
# Set PATH, MANPATH, etc., for Homebrew.
|
|
||||||
|
|
||||||
# >>> juliaup initialize >>>
|
export VCPKG_ROOT=~/vcpkg
|
||||||
|
|
||||||
# !! Contents within this block are managed by juliaup !!
|
|
||||||
|
|
||||||
path=('/home/js0ny/.juliaup/bin' $path)
|
|
||||||
export PATH
|
|
||||||
|
|
||||||
# <<< juliaup initialize <<<
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue