more modulated
This commit is contained in:
parent
48acb97b90
commit
42dd2b5802
7 changed files with 67 additions and 36 deletions
|
@ -26,7 +26,7 @@ source "/usr/share/powerline/bindings/tmux/powerline.conf"
|
||||||
set-option -g renumber-windows on
|
set-option -g renumber-windows on
|
||||||
setw -g monitor-activity on
|
setw -g monitor-activity on
|
||||||
set -g visual-activity on
|
set -g visual-activity on
|
||||||
set -g status-justify centre
|
#set -g status-justify centre
|
||||||
set -g status-utf8 on
|
set -g status-utf8 on
|
||||||
|
|
||||||
#### COLOUR (Solarized dark)
|
#### COLOUR (Solarized dark)
|
||||||
|
@ -69,4 +69,4 @@ set-window-option -g window-status-bell-style fg=black,bg=red #base02, red
|
||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
|
|
||||||
# start with pane 1
|
# start with pane 1
|
||||||
set -g pane-base-index 1
|
set -g pane-base-index 1
|
||||||
|
|
|
@ -26,11 +26,4 @@ md5check() { md5sum "$1" | grep "$2";} #md5sum file, compare to md5sum as second
|
||||||
alias ssh-agent="eval `ssh-agent -s`"
|
alias ssh-agent="eval `ssh-agent -s`"
|
||||||
|
|
||||||
#Command Replacement aliases
|
#Command Replacement aliases
|
||||||
alias less='less -imJMW'
|
alias less='less -imJMW'
|
||||||
|
|
||||||
#Navigation aliases
|
|
||||||
alias ..='cd ..'
|
|
||||||
alias ...='cd ../..'
|
|
||||||
alias ....='cd ../../..'
|
|
||||||
alias .....='cd ../../../..'
|
|
||||||
|
|
34
.zsh/directories.zsh
Normal file
34
.zsh/directories.zsh
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
# Changing/making/removing directory
|
||||||
|
setopt auto_pushd
|
||||||
|
setopt pushd_ignore_dups
|
||||||
|
setopt pushdminus
|
||||||
|
|
||||||
|
alias -g ...='../..'
|
||||||
|
alias -g ....='../../..'
|
||||||
|
alias -g .....='../../../..'
|
||||||
|
alias -g ......='../../../../..'
|
||||||
|
|
||||||
|
alias -- -='cd -'
|
||||||
|
alias 1='cd -'
|
||||||
|
alias 2='cd -2'
|
||||||
|
alias 3='cd -3'
|
||||||
|
alias 4='cd -4'
|
||||||
|
alias 5='cd -5'
|
||||||
|
alias 6='cd -6'
|
||||||
|
alias 7='cd -7'
|
||||||
|
alias 8='cd -8'
|
||||||
|
alias 9='cd -9'
|
||||||
|
|
||||||
|
alias md='mkdir -p'
|
||||||
|
alias rd=rmdir
|
||||||
|
alias d='dirs -v | head -10'
|
||||||
|
|
||||||
|
# List directory contents
|
||||||
|
alias lsa='ls -lah'
|
||||||
|
alias l='ls -lah'
|
||||||
|
alias ll='ls -lh'
|
||||||
|
alias la='ls -lAh'
|
||||||
|
|
||||||
|
# Push and pop directories on directory stack
|
||||||
|
alias pu='pushd'
|
||||||
|
alias po='popd'
|
24
.zsh/history.zsh
Normal file
24
.zsh/history.zsh
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
## Command history configuration
|
||||||
|
if [ -z "$HISTFILE" ]; then
|
||||||
|
HISTFILE=$HOME/.zsh_history
|
||||||
|
fi
|
||||||
|
|
||||||
|
HISTSIZE=10000
|
||||||
|
SAVEHIST=10000
|
||||||
|
|
||||||
|
# Show history
|
||||||
|
case $HIST_STAMPS in
|
||||||
|
"mm/dd/yyyy") alias history='fc -fl 1' ;;
|
||||||
|
"dd.mm.yyyy") alias history='fc -El 1' ;;
|
||||||
|
"yyyy-mm-dd") alias history='fc -il 1' ;;
|
||||||
|
*) alias history='fc -l 1' ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
setopt append_history
|
||||||
|
setopt extended_history
|
||||||
|
setopt hist_expire_dups_first
|
||||||
|
setopt hist_ignore_dups # ignore duplication command history list
|
||||||
|
setopt hist_ignore_space
|
||||||
|
setopt hist_verify
|
||||||
|
setopt inc_append_history
|
||||||
|
setopt share_history # share command history data
|
28
.zshrc
28
.zshrc
|
@ -13,35 +13,15 @@ setopt list_types
|
||||||
setopt mark_dirs
|
setopt mark_dirs
|
||||||
setopt path_dirs
|
setopt path_dirs
|
||||||
|
|
||||||
#History settings
|
#Load libraries
|
||||||
if [ -z "$HISTFILE" ]; then
|
source ~/.zsh/aliases.zsh
|
||||||
HISTFILE=$HOME/.zsh_history
|
source ~/.zsh/directories.zsh
|
||||||
fi
|
source ~/.zsh/history.zsh
|
||||||
|
|
||||||
HISTSIZE=10000
|
|
||||||
SAVEHIST=10000
|
|
||||||
|
|
||||||
# Show history
|
|
||||||
case $HIST_STAMPS in
|
|
||||||
"mm/dd/yyyy") alias history='fc -fl 1' ;;
|
|
||||||
"dd.mm.yyyy") alias history='fc -El 1' ;;
|
|
||||||
"yyyy-mm-dd") alias history='fc -il 1' ;;
|
|
||||||
*) alias history='fc -l 1' ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
setopt append_history
|
|
||||||
setopt extended_history
|
|
||||||
setopt hist_expire_dups_first
|
|
||||||
setopt hist_ignore_dups # ignore duplication command history list
|
|
||||||
setopt hist_ignore_space
|
|
||||||
setopt hist_verify
|
|
||||||
setopt inc_append_history
|
|
||||||
setopt share_history # share command history data
|
|
||||||
#alias/prefs
|
#alias/prefs
|
||||||
export VISUAL="/usr/bin/vim"
|
export VISUAL="/usr/bin/vim"
|
||||||
export EDITOR="$VISUAL"
|
export EDITOR="$VISUAL"
|
||||||
alias tmux="tmux -2"
|
alias tmux="tmux -2"
|
||||||
source ~/.aliases.zsh
|
|
||||||
#source /usr/share/autojump/autojump.sh
|
#source /usr/share/autojump/autojump.sh
|
||||||
|
|
||||||
#init powerline
|
#init powerline
|
||||||
|
|
4
init.sh
4
init.sh
|
@ -8,13 +8,13 @@ rm -ri ~/.zsh-custom
|
||||||
rm -ri ~/.vimrc
|
rm -ri ~/.vimrc
|
||||||
rm -ri ~/.vim
|
rm -ri ~/.vim
|
||||||
rm -ri ~/.zshrc
|
rm -ri ~/.zshrc
|
||||||
rm -ri ~/.aliases.zsh
|
|
||||||
#make links
|
#make links
|
||||||
ln -s /home/`whoami`/stevset/.tmux.conf /home/`whoami`/.tmux.conf
|
ln -s /home/`whoami`/stevset/.tmux.conf /home/`whoami`/.tmux.conf
|
||||||
ln -s /home/`whoami`/stevset/.zshrc /home/`whoami`/.zshrc
|
ln -s /home/`whoami`/stevset/.zshrc /home/`whoami`/.zshrc
|
||||||
ln -s /home/`whoami`/stevset/.vim /home/`whoami`/.vim
|
ln -s /home/`whoami`/stevset/.vim /home/`whoami`/.vim
|
||||||
ln -s /home/`whoami`/stevset/.vimrc /home/`whoami`/.vimrc
|
ln -s /home/`whoami`/stevset/.vimrc /home/`whoami`/.vimrc
|
||||||
ln -s /home/`whoami`/stevset/.aliases.zsh /home/`whoami`/.aliases.zsh
|
ln -s /home/`whoami`/stevset/.zsh /home/`whoami`/.zsh
|
||||||
|
|
||||||
#Download Antigen
|
#Download Antigen
|
||||||
curl -sL https://git.io/antibody | bash -s
|
curl -sL https://git.io/antibody | bash -s
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue