Skip to content

Instantly share code, notes, and snippets.

@euxn23
Last active May 3, 2024 00:03
Show Gist options
  • Save euxn23/ada83be33e253aa0115757e6cb0876da to your computer and use it in GitHub Desktop.
Save euxn23/ada83be33e253aa0115757e6cb0876da to your computer and use it in GitHub Desktop.
.zshrc.env
#!/urs/bin/env zsh
export EDITOR=nvim
export XDG_RUNTIME_DIR=/run/user/$(id -u)
# WSL
export BROWSER='pwsh.exe /c start'
alias chrome='/mnt/c/Program\ Files/Google/Chrome/Application/chrome.exe'
alias wezterm=wezterm.exe
alias wezterm-mux-server=wezterm-mux-server.exe
webstorm() {
/mnt/c/jetbrains/WebStorm/bin/webstorm64.exe $1 &>/dev/null &
}
open() {
if [[ $1 =~ ^https?:// ]]; then
xgd-open $1
else
explorer.exe $1
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment