mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-04-13 09:30:06 +00:00
various changes of various flavors
This commit is contained in:
parent
08c1770871
commit
1b67396957
3 changed files with 29 additions and 14 deletions
|
@ -88,3 +88,6 @@ URxvt*color12: #729FCF
|
|||
URxvt*color13: #AD7FA8
|
||||
URxvt*color14: #34E2E2
|
||||
URxvt*color15: #EEEEEC
|
||||
|
||||
/* Rxvt */
|
||||
Rxvt*termName: rxvt
|
||||
|
|
16
vimrc
16
vimrc
|
@ -274,18 +274,18 @@ imap <silent> <F12> <C-O>:silent set number!<CR>
|
|||
" Don't force column 0 for #
|
||||
inoremap # X<BS>#
|
||||
|
||||
" Force <C-?> to be backspace except when in interix mode
|
||||
" because interix uses that for forward delete...
|
||||
" and always accept <C-h> as a backspace key
|
||||
" Let interix use ^[[U for end and ^[[H for home
|
||||
" Always map <C-h> to backspace
|
||||
" Both interix and cons use C-? as forward delete,
|
||||
" besides those two exceptions, always set it to backspace
|
||||
" Also let interix use ^[[U for end and ^[[H for home
|
||||
map <C-h> <BS>
|
||||
map! <C-h> <BS>
|
||||
if (&term !~ "interix")
|
||||
map <C-?> <BS>
|
||||
map! <C-?> <BS>
|
||||
else
|
||||
if (&term =~ "interix")
|
||||
map [H <Home>
|
||||
map [U <End>
|
||||
elseif (&term !~ "cons")
|
||||
map <C-?> <BS>
|
||||
map! <C-?> <BS>
|
||||
endif
|
||||
|
||||
" Python specific stuff
|
||||
|
|
24
zshrc
24
zshrc
|
@ -86,19 +86,25 @@ export LESS=' -R'
|
|||
# aliases
|
||||
alias cd..='cd ..'
|
||||
|
||||
# handles per OS aliases, fixes a few terms
|
||||
case `uname -s` in
|
||||
Linux|CYGWIN*)
|
||||
alias ls="ls -h --color=auto"
|
||||
alias grep='grep -d skip --color=auto'
|
||||
;;
|
||||
FreeBSD|Darwin|DragonFly)
|
||||
# we must lie to the mac, for it is dumb
|
||||
export LSCOLORS=ExGxFxDxCxDxDxHbaDacec
|
||||
alias ls="ls -Gh"
|
||||
alias grep='grep -d skip --color=auto'
|
||||
;;
|
||||
Interix)
|
||||
alias ls="ls --color"
|
||||
|
||||
# sorta hacky, but I cannot find a better way to do this :/
|
||||
if [[ `which infocmp` = /usr/local/bin/infocmp ]] ; then
|
||||
export TERMINFO=/usr/local/share/terminfo
|
||||
export TERM=$TERM
|
||||
fi
|
||||
;;
|
||||
SunOS)
|
||||
if (which gls &> /dev/null) ; then
|
||||
|
@ -169,6 +175,10 @@ case $TERM in
|
|||
bindkey '^[[5D' emacs-backward-word
|
||||
bindkey '^[OC' emacs-forward-word
|
||||
bindkey '^[OD' emacs-backward-word
|
||||
bindkey '^[Oc' emacs-forward-word
|
||||
bindkey '^[Od' emacs-backward-word
|
||||
bindkey '^[[c' emacs-forward-word
|
||||
bindkey '^[[d' emacs-backward-word
|
||||
;;
|
||||
linux)
|
||||
bindkey '^[[1~' beginning-of-line
|
||||
|
@ -184,11 +194,17 @@ case $TERM in
|
|||
bindkey '^[[7~' beginning-of-line
|
||||
bindkey '^[[8~' end-of-line
|
||||
;;
|
||||
cons*)
|
||||
bindkey '^[[H' beginning-of-line
|
||||
bindkey '^[[F' end-of-line
|
||||
bindkey '^?' delete-char
|
||||
;;
|
||||
interix)
|
||||
bindkey '^[[H' beginning-of-line
|
||||
bindkey '^[[U' end-of-line
|
||||
bindkey '^?' delete-char
|
||||
;;
|
||||
cygwin)
|
||||
cygwin*)
|
||||
bindkey '^[[1~' beginning-of-line
|
||||
bindkey '^[[4~' end-of-line
|
||||
;;
|
||||
|
@ -208,9 +224,6 @@ precmd()
|
|||
{
|
||||
local termtitle
|
||||
|
||||
## Changing IFS breaks a few things otherwise, especially clear-zle-screen
|
||||
IFS=$' \t\n'
|
||||
|
||||
termtitle=$(print -P "%n@%m")
|
||||
title zsh "$termtitle"
|
||||
}
|
||||
|
@ -267,7 +280,6 @@ function title
|
|||
# Use these two for GNU Screen:
|
||||
print -nR $'\ek'$1$'\e'"\\"
|
||||
shift
|
||||
# print -nR $'\e]0;'$*$'\a'
|
||||
print -nR $'\e_screen \005 | '$*$'\e'"\\"
|
||||
;;
|
||||
xterm*|rxvt*|cygwin|interix)
|
||||
|
|
Loading…
Add table
Reference in a new issue