Update gitignore and add wslrc for sourcing on wsl
This commit is contained in:
parent
88d1681f4d
commit
56ccea6a7b
5
.gitignore
vendored
5
.gitignore
vendored
@ -6,12 +6,10 @@
|
|||||||
|
|
||||||
!.config/neofetch/*
|
!.config/neofetch/*
|
||||||
|
|
||||||
!.config/nvim/init.lua
|
!.config/nvim/*
|
||||||
!.config/nvim/lua/**
|
|
||||||
|
|
||||||
!.config/tmux/tmux.conf
|
!.config/tmux/tmux.conf
|
||||||
!.config/tmux/catppuccin.conf
|
!.config/tmux/catppuccin.conf
|
||||||
.config/tmux/local.tmux.config
|
|
||||||
|
|
||||||
!.config/waybar/*
|
!.config/waybar/*
|
||||||
|
|
||||||
@ -20,3 +18,4 @@
|
|||||||
!.zinit.zsh
|
!.zinit.zsh
|
||||||
!.zshrc
|
!.zshrc
|
||||||
!.zstyle.zsh
|
!.zstyle.zsh
|
||||||
|
!.wslrc.zsh
|
||||||
|
|||||||
15
.wslrc.zsh
Normal file
15
.wslrc.zsh
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# Fix HOME, END, and DEL keys for zsh
|
||||||
|
bindkey "^[[H" beginning-of-line
|
||||||
|
bindkey "^[[F" end-of-line
|
||||||
|
bindkey "^[[3~" delete-char
|
||||||
|
|
||||||
|
# Fix HOME and END for tmux
|
||||||
|
bindkey "\E[1~" beginning-of-line
|
||||||
|
bindkey "\E[4~" end-of-line
|
||||||
|
|
||||||
|
# Set vals for C-Right, C-S-Right, C-Left, C-S-Left
|
||||||
|
# To move through words
|
||||||
|
bindkey "^[[1;6D" vi-backward-word
|
||||||
|
bindkey "^[[1;5D" backward-word
|
||||||
|
bindkey "^[[1;6C" vi-forward-word
|
||||||
|
bindkey "^[[1;5C" emacs-forward-word
|
||||||
4
.zshrc
4
.zshrc
@ -49,4 +49,8 @@ alias vim="nvim"
|
|||||||
alias vi="nvim"
|
alias vi="nvim"
|
||||||
alias python="python3"
|
alias python="python3"
|
||||||
|
|
||||||
|
# If wsl.conf exists we're probably in WSL and need some changes for terminal commands to work correctly
|
||||||
|
[[ ! -f /etc/wsl.conf ]] || source ~/.wslrc.zsh
|
||||||
|
|
||||||
[[ ! -f ~/.localrc.zsh ]] || source ~/.localrc.zsh
|
[[ ! -f ~/.localrc.zsh ]] || source ~/.localrc.zsh
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user