mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
Sync from Windows
This commit is contained in:
parent
8a7397c426
commit
d5f8d807b9
80 changed files with 6079 additions and 5097 deletions
18
wsl/.bashrc
Normal file
18
wsl/.bashrc
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Append to original bashrc for minimal setup
|
||||
# echo $DOTFILES/wsl/.bashrc >> ~/.bashrc
|
||||
set -o vi
|
||||
|
||||
bind '"\en": "\C-j"'
|
||||
bind '"\ee": "\C-k"'
|
||||
bind '"\ei": "\C-l"'
|
||||
|
||||
bind '"\el": "\ei"'
|
||||
bind '"\eL": "\eI"'
|
||||
|
||||
bind '"\ek": "\en"'
|
||||
bind '"\eK": "\eN"'
|
||||
|
||||
bind '"\ej": "\ee"'
|
||||
bind '"\eJ": "\eE"'
|
||||
|
||||
bind '"\eY": "\ey$"'
|
||||
144
wsl/.zshrc
144
wsl/.zshrc
|
|
@ -1,73 +1,73 @@
|
|||
# $XDG_CONFIG_HOME/zsh/.zshrc
|
||||
# ln -s $DOTFILES/wsl/.zshrc $XDG_CONFIG_HOME/zsh/.zshrc
|
||||
### Variables ###
|
||||
|
||||
export DOTFILES="$HOME/.dotfiles"
|
||||
for file in $DOTFILES/zsh/*.zsh; do
|
||||
source $file
|
||||
done
|
||||
export ARCHFLAGS="-arch x86_64"
|
||||
|
||||
# Absolute navigation
|
||||
alias src="cd ~/Source && ls"
|
||||
alias dotfiles="cd $DOTFILES && ls"
|
||||
|
||||
|
||||
### WSL Options ###
|
||||
|
||||
# WSL open
|
||||
open() {
|
||||
local target=$1
|
||||
|
||||
if command -v explorer.exe > /dev/null; then
|
||||
explorer.exe "$target"
|
||||
else
|
||||
command open "$target"
|
||||
fi
|
||||
}
|
||||
|
||||
# WSL Neovide
|
||||
gvi() {
|
||||
local target=$1
|
||||
|
||||
if command -v neovide.exe > /dev/null; then
|
||||
neovide.exe "$target"
|
||||
else
|
||||
if command -v neovide > /dev/null; then
|
||||
neovide "$target"
|
||||
else
|
||||
echo "neovide is not installed"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
### Misc ###
|
||||
|
||||
export PATH=/opt/bin:$PATH
|
||||
|
||||
# Conda #
|
||||
|
||||
# >>> conda initialize >>>
|
||||
# !! Contents within this block are managed by 'conda init' !!
|
||||
__conda_setup="$('/home/js0ny/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
|
||||
if [ $? -eq 0 ]; then
|
||||
eval "$__conda_setup"
|
||||
else
|
||||
if [ -f "/home/js0ny/miniconda3/etc/profile.d/conda.sh" ]; then
|
||||
. "/home/js0ny/miniconda3/etc/profile.d/conda.sh"
|
||||
else
|
||||
export PATH="/home/js0ny/miniconda3/bin:$PATH"
|
||||
fi
|
||||
fi
|
||||
unset __conda_setup
|
||||
# <<< conda initialize <<<
|
||||
|
||||
|
||||
if [ -f /usr/share/doc/pkgfile/command-not-found.sh ]; then
|
||||
source /usr/share/doc/pkgfile/command-not-found.sh
|
||||
fi
|
||||
|
||||
|
||||
# vcpkg
|
||||
|
||||
# $XDG_CONFIG_HOME/zsh/.zshrc
|
||||
# ln -s $DOTFILES/wsl/.zshrc $XDG_CONFIG_HOME/zsh/.zshrc
|
||||
### Variables ###
|
||||
|
||||
export DOTFILES="$HOME/.dotfiles"
|
||||
for file in $DOTFILES/zsh/*.zsh; do
|
||||
source $file
|
||||
done
|
||||
export ARCHFLAGS="-arch x86_64"
|
||||
|
||||
# Absolute navigation
|
||||
alias src="cd ~/Source && ls"
|
||||
alias dotfiles="cd $DOTFILES && ls"
|
||||
|
||||
|
||||
### WSL Options ###
|
||||
|
||||
# WSL open
|
||||
open() {
|
||||
local target=$1
|
||||
|
||||
if command -v explorer.exe > /dev/null; then
|
||||
explorer.exe "$target"
|
||||
else
|
||||
command open "$target"
|
||||
fi
|
||||
}
|
||||
|
||||
# WSL Neovide
|
||||
gvi() {
|
||||
local target=$1
|
||||
|
||||
if command -v neovide.exe > /dev/null; then
|
||||
neovide.exe "$target"
|
||||
else
|
||||
if command -v neovide > /dev/null; then
|
||||
neovide "$target"
|
||||
else
|
||||
echo "neovide is not installed"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
### Misc ###
|
||||
|
||||
export PATH=/opt/bin:$PATH
|
||||
|
||||
# Conda #
|
||||
|
||||
# >>> conda initialize >>>
|
||||
# !! Contents within this block are managed by 'conda init' !!
|
||||
__conda_setup="$('/home/js0ny/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
|
||||
if [ $? -eq 0 ]; then
|
||||
eval "$__conda_setup"
|
||||
else
|
||||
if [ -f "/home/js0ny/miniconda3/etc/profile.d/conda.sh" ]; then
|
||||
. "/home/js0ny/miniconda3/etc/profile.d/conda.sh"
|
||||
else
|
||||
export PATH="/home/js0ny/miniconda3/bin:$PATH"
|
||||
fi
|
||||
fi
|
||||
unset __conda_setup
|
||||
# <<< conda initialize <<<
|
||||
|
||||
|
||||
if [ -f /usr/share/doc/pkgfile/command-not-found.sh ]; then
|
||||
source /usr/share/doc/pkgfile/command-not-found.sh
|
||||
fi
|
||||
|
||||
|
||||
# vcpkg
|
||||
|
||||
export VCPKG_ROOT=~/vcpkg
|
||||
Loading…
Add table
Add a link
Reference in a new issue