Migrate everything to GNU Stow locations instead of homeshick
This commit is contained in:
parent
54587a49ff
commit
82c930f4d5
24 changed files with 1 additions and 5 deletions
17
.zsh/interactive/aliases
Normal file
17
.zsh/interactive/aliases
Normal file
|
@ -0,0 +1,17 @@
|
|||
#! zsh
|
||||
alias has_command='whence >/dev/null'
|
||||
alias ls="ls -F --color=auto"
|
||||
alias lsl="ls -lh"
|
||||
alias grep="grep --color=auto"
|
||||
alias egrep="egrep --color=auto"
|
||||
alias pseudo="sudo"
|
||||
if has_command xdg-open; then
|
||||
alias ]='xdg-open'
|
||||
else
|
||||
alias ]='open'
|
||||
fi
|
||||
|
||||
# make sure ELinks can detect when it's in tmux
|
||||
alias elinks="STY= elinks"
|
||||
|
||||
has_command hub && alias git=hub
|
31
.zsh/interactive/bindings
Normal file
31
.zsh/interactive/bindings
Normal file
|
@ -0,0 +1,31 @@
|
|||
#! zsh
|
||||
autoload -Uz select-word-style
|
||||
select-word-style shell
|
||||
|
||||
# Allow S-Tab to backtrack through the completion menu.
|
||||
bindkey $terminfo[kcbt] reverse-menu-complete
|
||||
|
||||
# Tweaks to vi mode:
|
||||
bindkey '^?' backward-delete-char # backspace over the start of Insert mode
|
||||
bindkey 'jj' vi-cmd-mode # inoremap jj <Esc>
|
||||
|
||||
# Backward-kill long paths one directory at a time.
|
||||
bindkey '^W' backward-kill-word
|
||||
zstyle ':zle:backward-kill-word' word-style unspecified
|
||||
zstyle ':zle:backward-kill-word' word-chars ' /'
|
||||
|
||||
# Make ^Z resume your suspended job if there is one.
|
||||
autoload fancy-ctrl-z
|
||||
zle -N fancy-ctrl-z
|
||||
bindkey '^Z' fancy-ctrl-z
|
||||
|
||||
# Allow for magic such as url-quote-magic to apply when your terminal supports
|
||||
# bracketed paste.
|
||||
autoload -Uz bracketed-paste-magic
|
||||
zle -N bracketed-paste bracketed-paste-magic
|
||||
|
||||
# url-quote-magic will automatically quote special chars in URLs pasted into
|
||||
# the terminal.
|
||||
autoload -Uz url-quote-magic
|
||||
url-quote-magic-with-highlight() { url-quote-magic; _zsh_highlight }
|
||||
zle -N self-insert url-quote-magic-with-highlight
|
3
.zsh/interactive/fzf
Normal file
3
.zsh/interactive/fzf
Normal file
|
@ -0,0 +1,3 @@
|
|||
#! zsh
|
||||
export FZF_CTRL_R_OPTS="--sort"
|
||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
4
.zsh/interactive/history
Normal file
4
.zsh/interactive/history
Normal file
|
@ -0,0 +1,4 @@
|
|||
#! zsh
|
||||
export HISTFILE=~/.zsh/zhistory
|
||||
export HISTSIZE=50000
|
||||
export SAVEHIST=$HISTSIZE
|
1
.zsh/interactive/iterm2
Symbolic link
1
.zsh/interactive/iterm2
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../../../.iterm2_shell_integration.zsh
|
5
.zsh/interactive/options
Normal file
5
.zsh/interactive/options
Normal file
|
@ -0,0 +1,5 @@
|
|||
#! zsh
|
||||
setopt correct
|
||||
|
||||
zstyle ':completion:*' completer _expand _complete _correct _approximate
|
||||
zstyle ':completion:*' menu select=2
|
Loading…
Add table
Add a link
Reference in a new issue