mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
Sync from WSL
This commit is contained in:
parent
ee4b1ba440
commit
ed7d66fce1
6 changed files with 40 additions and 8 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
# ~/.config/glow/glow.yaml
|
||||||
|
# ln -sf $DOTFILES/glow/glow.yaml ~/.config/glow/glow.yaml
|
||||||
# style name or JSON path (default "auto")
|
# style name or JSON path (default "auto")
|
||||||
style: "auto"
|
style: "auto"
|
||||||
# mouse support (TUI-mode only)
|
# mouse support (TUI-mode only)
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,12 @@
|
||||||
# ln -s $DOTFILES/wsl/.zshrc $XDG_CONFIG_HOME/zsh/.zshrc
|
# ln -s $DOTFILES/wsl/.zshrc $XDG_CONFIG_HOME/zsh/.zshrc
|
||||||
### Variables ###
|
### Variables ###
|
||||||
|
|
||||||
|
export IS_WSL=true
|
||||||
export DOTFILES="$HOME/.dotfiles"
|
export DOTFILES="$HOME/.dotfiles"
|
||||||
for file in $DOTFILES/zsh/*.zsh; do
|
for file in $DOTFILES/zsh/*.zsh; do
|
||||||
source $file
|
source $file
|
||||||
done
|
done
|
||||||
|
source $DOTFILES/wsl/winterop.zsh
|
||||||
export ARCHFLAGS="-arch x86_64"
|
export ARCHFLAGS="-arch x86_64"
|
||||||
|
|
||||||
# Absolute navigation
|
# Absolute navigation
|
||||||
|
|
@ -77,4 +79,4 @@ export VCPKG_ROOT=~/vcpkg
|
||||||
alias pac="sudo pacman"
|
alias pac="sudo pacman"
|
||||||
alias paci="sudo pacman -S"
|
alias paci="sudo pacman -S"
|
||||||
alias pacr="sudo pacman -R"
|
alias pacr="sudo pacman -R"
|
||||||
alias pacu="sudo pacman -Ss"
|
alias pacu="sudo pacman -Syu"
|
||||||
|
|
|
||||||
15
wsl/winterop.zsh
Normal file
15
wsl/winterop.zsh
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
alias clip="clip.exe"
|
||||||
|
alias xclip="clip.exe"
|
||||||
|
alias paste='pwsh.exe -NoProfile -Command "Get-Clipboard"'
|
||||||
|
alias dark-mode='pwsh.exe -Command "dark-mode" 2>&1 /dev/null'
|
||||||
|
alias winfetch='pwsh.exe -NoProfile -Command "winfetch"'
|
||||||
|
alias psw="tasklist.exe"
|
||||||
|
alias killw="taskkill.exe"
|
||||||
|
alias shutdownw="shutdown.exe /s /t 0"
|
||||||
|
alias rebootw="shutdown.exe /r /t 0"
|
||||||
|
alias ipconfig="ipconfig.exe"
|
||||||
|
alias netstatw="netstat.exe"
|
||||||
|
alias diskpart="diskpart.exe"
|
||||||
|
alias winget="winget.exe"
|
||||||
|
alias pastew='pwsh.exe -NoProfile -Command "Get-Clipboard"'
|
||||||
|
alias ollama="ollama.exe"
|
||||||
|
|
@ -6,8 +6,12 @@ HIST_STAMPS="yyyy-mm-dd"
|
||||||
# Plugins (Manually Managed) #
|
# Plugins (Manually Managed) #
|
||||||
# $ZDOTDIR/plugins
|
# $ZDOTDIR/plugins
|
||||||
|
|
||||||
source $ZDOTDIR/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
# echo "[DEBUG] Loading plugins..."
|
||||||
|
# echo $ZDOTDIR
|
||||||
|
# Load zsh-syntax-highlighting before zsh-history-substring-search
|
||||||
|
# Reference: https://github.com/zsh-users/zsh-history-substring-search?tab=readme-ov-file#usage
|
||||||
source $ZDOTDIR/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
source $ZDOTDIR/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
|
source $ZDOTDIR/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
source $ZDOTDIR/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
|
source $ZDOTDIR/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
|
||||||
|
|
||||||
# Tools Related Environment Variables #
|
# Tools Related Environment Variables #
|
||||||
|
|
@ -65,6 +69,10 @@ alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'
|
||||||
# ~/.z -> $XDG_DATA_HOME/z
|
# ~/.z -> $XDG_DATA_HOME/z
|
||||||
export _Z_DATA="$XDG_DATA_HOME/z"
|
export _Z_DATA="$XDG_DATA_HOME/z"
|
||||||
# ~/.zcompdump* -> $XDG_CACHE_HOME/zsh/zcompdump*
|
# ~/.zcompdump* -> $XDG_CACHE_HOME/zsh/zcompdump*
|
||||||
compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION"
|
# compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION"
|
||||||
# ~/.zsh_history -> $XDG_STATE_HOME/zsh/history
|
# ~/.zsh_history -> $XDG_STATE_HOME/zsh/history
|
||||||
export HISTFILE="$XDG_STATE_HOME"/zsh/history
|
export HISTFILE="$XDG_STATE_HOME"/zsh/history
|
||||||
|
|
||||||
|
# https://unix.stackexchange.com/questions/33994/
|
||||||
|
# Use `set -k` to mark leading `#` as a comment character
|
||||||
|
set -k
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@ bindkey -v # Vi Keybindings
|
||||||
|
|
||||||
# Colemak hnei
|
# Colemak hnei
|
||||||
# bindkey -M vicmd 'h' vi-backward-char # No change
|
# bindkey -M vicmd 'h' vi-backward-char # No change
|
||||||
bindkey -M vicmd 'n' down-line-or-history
|
bindkey -M vicmd 'n' down-line-or-history
|
||||||
bindkey -M vicmd 'e' up-line-or-history
|
bindkey -M vicmd 'e' up-line-or-history
|
||||||
bindkey -M vicmd 'i' vi-forward-char
|
bindkey -M vicmd 'i' vi-forward-char
|
||||||
|
|
||||||
# Similar position to [i] in QWERTY
|
# Similar position to [i] in QWERTY
|
||||||
bindkey -M vicmd 'l' vi-insert
|
bindkey -M vicmd 'l' vi-insert
|
||||||
|
|
@ -17,4 +17,7 @@ bindkey -M vicmd 'K' vi-rev-repeat-search
|
||||||
bindkey -M vicmd 'j' vi-forward-word-end
|
bindkey -M vicmd 'j' vi-forward-word-end
|
||||||
bindkey -M vicmd 'J' vi-forward-blank-word-end
|
bindkey -M vicmd 'J' vi-forward-blank-word-end
|
||||||
# Use N to Join
|
# Use N to Join
|
||||||
bindkey -M vicmd 'N' vi-join
|
bindkey -M vicmd 'N' vi-join
|
||||||
|
|
||||||
|
# Search History with [r]everse (default emacs keybinding)
|
||||||
|
bindkey '^R' history-incremental-search-backward
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,6 @@ alias ....="cd ../../.."
|
||||||
alias .....="cd ../../../.."
|
alias .....="cd ../../../.."
|
||||||
alias ......="cd ../../../../.."
|
alias ......="cd ../../../../.."
|
||||||
|
|
||||||
eval "$(zoxide init zsh)"
|
function - { cd - }
|
||||||
|
|
||||||
|
eval "$(zoxide init zsh)"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue