render.py:

bind command line editor to ^E
	add mouse support to editor
	add wt-prefix64
	add command line history completion

dotfiles:
	fix getlogin bug in some terminals
This commit is contained in:
Martinez 2015-12-30 09:49:26 +01:00
parent 850d43bf28
commit 5704fafe4d
2 changed files with 19 additions and 4 deletions

View file

@ -24,9 +24,10 @@ alias Yall="youtube-dl -o \"%(autonumber)s-%(title)s.%(ext)s\""
alias units="units -v"
# Edit the current command line in $EDITOR
export VISUAL="nano -m" # enable mouse cursor
autoload -U edit-command-line
zle -N edit-command-line
bindkey '\C-x\C-e' edit-command-line
bindkey '\C-e' edit-command-line
mkcd () {
mkdir -p "$1" && cd "$1"
@ -66,8 +67,13 @@ zres () {
}
# winetricks tools
wt-prefix() {
wt-prefix64() {
export WINEPREFIX="$HOME/.local/share/wineprefixes/$1"
unset WINEARCH
}
wt-prefix() {
wt-prefix64 "$1"
export WINEARCH="win32"
}
@ -129,6 +135,8 @@ bindkey "\eOH" beginning-of-line
bindkey "\eOF" end-of-line
bindkey "\eOd" backward-word
bindkey "\eOc" forward-word
bindkey '\e[A' history-beginning-search-backward
bindkey '\e[B' history-beginning-search-forward
# paludis default options
export CAVE_OPTIONS="--log-level warning"