Add bash zsh config
Added a very basic configuration for zsh.
This commit is contained in:
parent
b52a84b68b
commit
c3825dbbe6
13
set-links.sh
13
set-links.sh
|
@ -51,3 +51,16 @@ fi
|
|||
if [[ ! -L ${HOME}/.xsessionrc ]]; then
|
||||
ln -s ${WORKING_DIR}/xsessionrc .xsessionrc 2>/dev/null
|
||||
fi
|
||||
|
||||
# Zsh
|
||||
if [[ ! -L ${HOME}/.zshenv ]]; then
|
||||
ln -s ${WORKING_DIR}/zshenv .zshenv 2>/dev/null
|
||||
fi
|
||||
|
||||
if [[ ! -L ${HOME}/.zshrc ]]; then
|
||||
ln -s ${WORKING_DIR}/zshrc .zsh/.zshrc 2>/dev/null
|
||||
fi
|
||||
|
||||
if [[ ! -L ${HOME}/.zaliases ]]; then
|
||||
ln -s ${WORKING_DIR}/zaliases .zsh/.zaliases 2>/dev/null
|
||||
fi
|
||||
|
|
1
zsh/.zcompdump
Symbolic link
1
zsh/.zcompdump
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/c47/gits/priv/dotfiles/zsh/zcompdump
|
1
zsh/.zshenv
Symbolic link
1
zsh/.zshenv
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/c47/gits/priv/dotfiles/zsh/zshenv
|
1
zsh/.zshistory
Symbolic link
1
zsh/.zshistory
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/c47/gits/priv/dotfiles/zsh/zshistory
|
1
zsh/.zshrc
Symbolic link
1
zsh/.zshrc
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/c47/gits/priv/dotfiles/zsh/zshrc
|
21
zsh/zaliases
Normal file
21
zsh/zaliases
Normal file
|
@ -0,0 +1,21 @@
|
|||
alias l='ls'
|
||||
alias ll='ls -l'
|
||||
alias llh='ls -lh'
|
||||
alias la='ls -a'
|
||||
alias lah='ls -lah'
|
||||
|
||||
alias vim='nvim'
|
||||
alias :e='vim'
|
||||
alias :q='exit'
|
||||
alias T='tmux a'
|
||||
|
||||
if [[ -f ${HOME}/.zaliases.local ]]; then
|
||||
source ${HOME}/.zaliases.local
|
||||
fi
|
||||
|
||||
alias R='rem -b1 -mclc+6'
|
||||
alias RR='rem -b1 -mclc+6 -iprivate=1'
|
||||
alias r='rem -b1 -mclc+4'
|
||||
alias rr='rem -b1 -mclc+4 -iprivate=1'
|
||||
alias rrm='rem -b1 -imoon=1'
|
||||
alias cal='ncal -bM'
|
4
zsh/zshenv
Normal file
4
zsh/zshenv
Normal file
|
@ -0,0 +1,4 @@
|
|||
export ZDOTDIR=~/.zsh
|
||||
if [[ -f ${ZDOTDIR}/.zshrc ]]; then
|
||||
source ${ZDOTDIR}/zshrc
|
||||
fi
|
29
zsh/zshrc
Normal file
29
zsh/zshrc
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Lines configured by zsh-newuser-install
|
||||
HISTFILE=~/.zsh/.zshistory
|
||||
HISTSIZE=100
|
||||
SAVEHIST=100
|
||||
setopt autocd extendedglob nomatch notify
|
||||
unsetopt beep
|
||||
bindkey -v
|
||||
# End of lines configured by zsh-newuser-install
|
||||
# The following lines were added by compinstall
|
||||
zstyle :compinstall filename '/home/c47/.zshrc'
|
||||
|
||||
autoload -Uz compinit promptinit
|
||||
compinit
|
||||
promptinit
|
||||
# End of lines added by compinstall
|
||||
|
||||
if [[ -f ${ZDOTDIR}/.zaliases ]]; then
|
||||
source ${ZDOTDIR}/.zaliases
|
||||
fi
|
||||
|
||||
prompt elite2 magenta yellow
|
||||
|
||||
bindkey '\e.' insert-last-word
|
||||
|
||||
export SSH_AUTH_SOCK=/var/run/user/$(echo $UID)/ssh-agent.sock
|
||||
|
||||
if [[ ! $(pidof ssh-agent) ]]; then
|
||||
eval $(ssh-agent -a ${SSH_AUTH_SOCK})
|
||||
fi
|
Loading…
Reference in a new issue