Move ZSH configs
This commit is contained in:
parent
3104a8c298
commit
41dca31756
18 changed files with 29 additions and 46 deletions
0
.zsh/.gitignore → .config/zsh/.gitignore
vendored
0
.zsh/.gitignore → .config/zsh/.gitignore
vendored
|
@ -1,42 +1,46 @@
|
||||||
# -*- Mode: shell-script; eval: (git-auto-commit-mode 1) -*-
|
# -*- Mode: shell-script; -*-
|
||||||
# Setup variables
|
# Setup variables
|
||||||
HISTFILE=~/.zsh/histfile
|
HISTFILE=$ZDOTDIR/histfile
|
||||||
HISTSIZE=1000
|
HISTSIZE=1000
|
||||||
SAVEHIST=1000
|
SAVEHIST=1000
|
||||||
|
LESSCMD="/usr/bin/less -FXRS"
|
||||||
|
|
||||||
|
export LESS_TERMCAP_mb=$'\e[1;37m'
|
||||||
|
export LESS_TERMCAP_md=$'\e[1;37m'
|
||||||
|
export LESS_TERMCAP_me=$'\e[0m'
|
||||||
|
export LESS_TERMCAP_se=$'\e[0m'
|
||||||
|
export LESS_TERMCAP_so=$'\e[1;47;30m'
|
||||||
|
export LESS_TERMCAP_ue=$'\e[0m'
|
||||||
|
export LESS_TERMCAP_us=$'\e[0;36m'
|
||||||
|
export PAGER=$LESSCMD
|
||||||
|
|
||||||
|
# Aliases
|
||||||
|
alias alpine="alpine -p ""{imap.gmail.com/ssl/user=tom.willemsen@archlinux.us}remote_pinerc"""
|
||||||
|
alias evolus-pencil="/usr/lib/evolus-pencil-svn/evolus-pencil.sh"
|
||||||
|
alias grep="grep --color=always"
|
||||||
|
alias less=$LESSCMD
|
||||||
|
alias ls="ls -F --color=always"
|
||||||
|
alias mysql="mysql --pager"
|
||||||
|
alias reboot="systemctl reboot"
|
||||||
|
alias poweroff="systemctl poweroff"
|
||||||
|
|
||||||
setopt notify
|
setopt notify
|
||||||
# Allow for functions in the prompt
|
# Allow for functions in the prompt
|
||||||
setopt PROMPT_SUBST
|
setopt PROMPT_SUBST
|
||||||
setopt EXTENDED_GLOB
|
setopt EXTENDED_GLOB
|
||||||
|
|
||||||
zstyle :compinstall filename '/home/slash/.zshrc'
|
zstyle :compinstall filename '$ZDOTDIR/.zshrc'
|
||||||
|
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
compinit
|
compinit
|
||||||
|
|
||||||
function shutdown()
|
|
||||||
{
|
|
||||||
dbus-send --system --print-reply \
|
|
||||||
--dest="org.freedesktop.ConsoleKit" \
|
|
||||||
/org/freedesktop/ConsoleKit/Manager \
|
|
||||||
org.freedesktop.ConsoleKit.Manager.Stop
|
|
||||||
}
|
|
||||||
|
|
||||||
function reboot()
|
|
||||||
{
|
|
||||||
dbus-send --system --print-reply \
|
|
||||||
--dest="org.freedesktop.ConsoleKit" \
|
|
||||||
/org/freedesktop/ConsoleKit/Manager \
|
|
||||||
org.freedesktop.ConsoleKit.Manager.Restart
|
|
||||||
}
|
|
||||||
|
|
||||||
# Initialize colors.
|
# Initialize colors.
|
||||||
autoload -U colors
|
autoload -U colors
|
||||||
colors
|
colors
|
||||||
|
|
||||||
# Autoload zsh functions.
|
# Autoload zsh functions.
|
||||||
fpath=(~/.zsh/functions $fpath)
|
fpath=($ZDOTDIR/functions $fpath)
|
||||||
autoload -U ~/.zsh/functions/*(:t)
|
autoload -U $ZDOTDIR/functions/*(:t)
|
||||||
|
|
||||||
# Enable auto-execution of functions
|
# Enable auto-execution of functions
|
||||||
typeset -ga preexec_functions
|
typeset -ga preexec_functions
|
||||||
|
@ -53,7 +57,7 @@ chpwd_functions+='chpwd_update_git_vars'
|
||||||
PROMPT='$(prompt)'
|
PROMPT='$(prompt)'
|
||||||
RPROMPT='$(rprompt)'
|
RPROMPT='$(rprompt)'
|
||||||
|
|
||||||
# Set terminal name to current runnign application
|
# Set terminal name to current running application
|
||||||
case $TERM in
|
case $TERM in
|
||||||
rxvt*)
|
rxvt*)
|
||||||
precmd () { print -Pn "\e]0;%~\a" }
|
precmd () { print -Pn "\e]0;%~\a" }
|
||||||
|
@ -88,7 +92,7 @@ bindkey "^W" backward-delete-char
|
||||||
|
|
||||||
# Show syntax highlighting when we're not running in emacs
|
# Show syntax highlighting when we're not running in emacs
|
||||||
if [ -z $EMACS ]; then
|
if [ -z $EMACS ]; then
|
||||||
source ~/.zsh/syntax-highlighting/zsh-syntax-highlighting.zsh
|
source $ZDOTDIR/syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
|
|
||||||
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=blue'
|
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=blue'
|
||||||
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=blue'
|
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=blue'
|
4
.gitmodules
vendored
4
.gitmodules
vendored
|
@ -1,3 +1,3 @@
|
||||||
[submodule ".zsh/syntax-highlighting"]
|
[submodule ".config/zsh/syntax-highlighting"]
|
||||||
path = .zsh/syntax-highlighting
|
path = .config/zsh/syntax-highlighting
|
||||||
url = git://github.com/zsh-users/zsh-syntax-highlighting
|
url = git://github.com/zsh-users/zsh-syntax-highlighting
|
||||||
|
|
21
.zshenv
21
.zshenv
|
@ -1,21 +0,0 @@
|
||||||
LESSCMD="less -FXRS"
|
|
||||||
|
|
||||||
export LESS_TERMCAP_mb=$'\e[1;37m'
|
|
||||||
export LESS_TERMCAP_md=$'\e[1;37m'
|
|
||||||
export LESS_TERMCAP_me=$'\e[0m'
|
|
||||||
export LESS_TERMCAP_se=$'\e[0m'
|
|
||||||
export LESS_TERMCAP_so=$'\e[1;47;30m'
|
|
||||||
export LESS_TERMCAP_ue=$'\e[0m'
|
|
||||||
export LESS_TERMCAP_us=$'\e[0;36m'
|
|
||||||
|
|
||||||
export PAGER=$LESSCMD
|
|
||||||
|
|
||||||
# Aliases
|
|
||||||
alias alpine="alpine -p ""{imap.gmail.com/ssl/user=tom.willemsen@archlinux.us}remote_pinerc"""
|
|
||||||
alias evolus-pencil="/usr/lib/evolus-pencil-svn/evolus-pencil.sh"
|
|
||||||
alias grep="grep --color=always"
|
|
||||||
alias less=$LESSCMD
|
|
||||||
alias ls="ls -F --color=always"
|
|
||||||
alias mysql="mysql --pager"
|
|
||||||
alias reboot="systemctl reboot"
|
|
||||||
alias poweroff="systemctl poweroff"
|
|
Loading…
Reference in a new issue