Migrate everything to GNU Stow locations instead of homeshick

This commit is contained in:
Danielle McLean 2016-10-03 22:52:15 +11:00
parent 54587a49ff
commit 82c930f4d5
No known key found for this signature in database
GPG key ID: CC91589719027E94
24 changed files with 1 additions and 5 deletions

17
.zsh/interactive/aliases Normal file
View 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
View 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
View file

@ -0,0 +1,3 @@
#! zsh
export FZF_CTRL_R_OPTS="--sort"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh

4
.zsh/interactive/history Normal file
View file

@ -0,0 +1,4 @@
#! zsh
export HISTFILE=~/.zsh/zhistory
export HISTSIZE=50000
export SAVEHIST=$HISTSIZE

1
.zsh/interactive/iterm2 Symbolic link
View file

@ -0,0 +1 @@
../../../../.iterm2_shell_integration.zsh

5
.zsh/interactive/options Normal file
View file

@ -0,0 +1,5 @@
#! zsh
setopt correct
zstyle ':completion:*' completer _expand _complete _correct _approximate
zstyle ':completion:*' menu select=2