dustin
/
zdotdir
Archived
1
0
Fork 0
This repository has been archived on 2023-11-14. You can view files and clone it, but cannot push or open issues/pull-requests.
zdotdir/.zshrc

83 lines
2.4 KiB
Bash

HISTSIZE=SAVEHIST=10000
HISTFILE=~/.zsh_history
setopt APPEND_HISTORY
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_FIND_NO_DUPS
setopt HIST_IGNORE_SPACE
setopt INTERACTIVE_COMMENTS
export LESSCOLOR=1
export PYTHONWARNINGS=default,ignore::ImportWarning
export NOSE_REDNOSE=1
bindkey "^?" backward-delete-char
bindkey "^W" backward-kill-word
bindkey -M viins "${terminfo[khome]}" beginning-of-line
bindkey -M vicmd "${terminfo[khome]}" beginning-of-line
bindkey -M viins "^[[H" beginning-of-line
bindkey -M vicmd "^[[H" beginning-of-line
bindkey -M viins "${terminfo[kend]}" end-of-line
bindkey -M vicmd "${terminfo[kend]}" end-of-line
bindkey -M viins "^[[F" end-of-line
bindkey -M vicmd "^[[F" end-of-line
bindkey -M viins "^[[1;5C" vi-forward-word
bindkey -M vicmd "^[[1;5C" vi-forward-word
bindkey -M viins "^[[1;5D" vi-backward-word
bindkey -M vicmd "^[[1;5D" vi-backwardword
bindkey -M viins "${terminfo[kdch1]}" vi-delete-char
bindkey -M vicmd "${terminfo[kdch1]}" vi-delete-char
bindkey "^R" history-incremental-search-backward
alias rm='rm -I'
alias ls='LC_COLLATE=C ls -N --color=auto --group-directories-first'
alias g='git status'
alias gc='git diff --cached --color|less -S'
alias gd='git diff --color|less -S'
alias gl='git log --graph --oneline --decorate --date-order --all --color|less -S'
alias gs='git show --stat --patch --color HEAD|less -S'
alias hd='hg diff --color=always|less -S'
alias hl='hg shortlog --graph --color=always|less -S'
alias hs='hg export --color=always|less -S'
alias pep8='PYTHONWARNINGS= pep8'
alias pylint='PYTHONWARNINGS= pylint -rn'
alias flake8='PYTHONWARNINGS= flake8'
alias aws='PYTHONWARNINGS= aws'
alias grep='grep --color=auto'
alias rmrpmbuild='rm -rf BUILD BUILDROOT RPMS SRPMS'
alias apache2='/usr/sbin/apache2 -d ~/.local/lib64/apache2 -f httpd.conf'
alias openconnect='/usr/sbin/openconnect -i vpn0 --juniper --syslog -b --pid-file=/tmp/openconnect.pid -u dhatch ssl.firemon.com'
alias ipsec='/usr/sbin/ipsec'
zstyle ':completion:*:sudo::' environ PATH="/sbin:/usr/sbin:$PATH" HOME="/root"
typeset -U path
typeset -U fpath
fpath[1,0]=~/.zsh/functions
case $TERM in
*xterm*|rxvt)
autoload precmd
;;
esac
autoload kadmin
autoload startrole
autoload switchrealm
autoload vmip
autoload -U compinit promptinit
compinit
promptinit
os=$(. /etc/os-release; echo $ID)
case ${os} in;
gentoo)
prompt gentoo
;;
centos|redhat|rhel)
prompt redhat
;;
esac
unset os