cleanup
This commit is contained in:
+5
-8
@@ -18,19 +18,17 @@ if [ -f "$(which git)" ] && [ -f ~/.git-completion.bash ]; then
|
|||||||
. ~/.git-completion.bash
|
. ~/.git-completion.bash
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -f /usr/bin/vim ]; then
|
||||||
|
export EDITOR=vim
|
||||||
|
fi
|
||||||
|
|
||||||
export CLICOLOR=1
|
export CLICOLOR=1
|
||||||
export LSCOLORS=ExFxBxDxCxegedabagacad
|
export LSCOLORS=ExFxBxDxCxegedabagacad
|
||||||
export EDITOR=vim
|
|
||||||
|
|
||||||
function title {
|
|
||||||
echo -ne "\033]0;"$*"\007"
|
|
||||||
}
|
|
||||||
|
|
||||||
export HISTFILESIZE=200000
|
export HISTFILESIZE=200000
|
||||||
export HISTSIZE=10000
|
export HISTSIZE=10000
|
||||||
shopt -s histappend
|
shopt -s histappend
|
||||||
shopt -s cmdhist
|
shopt -s cmdhist
|
||||||
export HISTCONTROL=ignoredups
|
export HISTCONTROL=ignoreboth
|
||||||
export HISTIGNORE="&:ls:[bf]g:exit"
|
export HISTIGNORE="&:ls:[bf]g:exit"
|
||||||
|
|
||||||
if [ -f ~/.common_shell_functions ]; then
|
if [ -f ~/.common_shell_functions ]; then
|
||||||
@@ -58,4 +56,3 @@ _complete_ssh_hosts ()
|
|||||||
|
|
||||||
complete -F _complete_ssh_hosts ssh
|
complete -F _complete_ssh_hosts ssh
|
||||||
complete -F _complete_ssh_hosts scp
|
complete -F _complete_ssh_hosts scp
|
||||||
. "$HOME/.cargo/env"
|
|
||||||
|
|||||||
@@ -191,3 +191,7 @@ function autosetup() {
|
|||||||
fi
|
fi
|
||||||
unset IS_LINUX DETECTED_DISTRO
|
unset IS_LINUX DETECTED_DISTRO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function title {
|
||||||
|
echo -ne "\033]0;"$*"\007"
|
||||||
|
}
|
||||||
|
|||||||
@@ -10,15 +10,15 @@ if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
|
|||||||
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
|
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Source local aliases
|
|
||||||
if [[ -f ~/.bash_aliases ]]; then
|
|
||||||
. ~/.bash_aliases
|
|
||||||
fi
|
|
||||||
|
|
||||||
bindkey -v
|
bindkey -v
|
||||||
|
export EDITOR=/usr/bin/vim
|
||||||
export EDITOR=/usr/local/bin/vim
|
export VISUAL=/usr/bin/vim
|
||||||
export VISUAL=/usr/local/bin/vim
|
export HISTSIZE=10000
|
||||||
|
export HISTFILESIZE=1000000000
|
||||||
|
export HISTFILE=~/.zhistory
|
||||||
|
setopt INC_APPEND_HISTORY
|
||||||
|
setopt EXTENDED_HISTORY
|
||||||
|
setopt HIST_FIND_NO_DUPS
|
||||||
|
|
||||||
#Setup custom hotkeys for zsh modes
|
#Setup custom hotkeys for zsh modes
|
||||||
bindkey -M viins 'kj' vi-cmd-mode
|
bindkey -M viins 'kj' vi-cmd-mode
|
||||||
@@ -30,24 +30,6 @@ bindkey -M viins '^e' end-of-line
|
|||||||
bindkey -v
|
bindkey -v
|
||||||
bindkey '^R' history-incremental-search-backward
|
bindkey '^R' history-incremental-search-backward
|
||||||
|
|
||||||
if [ -f /usr/local/bin/server_selector ]; then
|
|
||||||
/bin/bash /usr/local/bin/server_selector
|
|
||||||
fi
|
|
||||||
|
|
||||||
#Enable virtualenvwrapper if available
|
|
||||||
if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then
|
|
||||||
. /usr/local/bin/virtualenvwrapper.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
#The next line updates PATH for the Google Cloud SDK.
|
|
||||||
if [ -f /Users/adam/google-cloud-sdk/path.zsh.inc ]; then
|
|
||||||
source '/Users/adam/google-cloud-sdk/path.zsh.inc'
|
|
||||||
fi
|
|
||||||
# The next line enables shell command completion for gcloud.
|
|
||||||
if [ -f /Users/adam/google-cloud-sdk/completion.zsh.inc ]; then
|
|
||||||
source '/Users/adam/google-cloud-sdk/completion.zsh.inc'
|
|
||||||
fi
|
|
||||||
|
|
||||||
#Custom utilities
|
#Custom utilities
|
||||||
|
|
||||||
#Change ls alias based on host OS
|
#Change ls alias based on host OS
|
||||||
@@ -66,22 +48,11 @@ else
|
|||||||
alias vim='vi'
|
alias vim='vi'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias en4ip="ifconfig | grep -Eo '169.254.\d{1,3}.\d{1,3}' | head -n1"
|
|
||||||
|
|
||||||
#Bash/zsh common functions
|
#Bash/zsh common functions
|
||||||
if [ -f ~/.common_shell_functions ]; then
|
if [ -f ~/.common_shell_functions ]; then
|
||||||
. ~/.common_shell_functions
|
. ~/.common_shell_functions
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Zsh plugins
|
|
||||||
if [ -f ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh ]; then
|
|
||||||
. ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
|
|
||||||
. ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh
|
|
||||||
fi
|
|
||||||
|
|
||||||
#pyenv
|
#pyenv
|
||||||
if [ -f "$HOME/.pyenv/bin/pyenv" ]; then
|
if [ -f "$HOME/.pyenv/bin/pyenv" ]; then
|
||||||
export PYENV_ROOT="$HOME/.pyenv"
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
|
|||||||
Reference in New Issue
Block a user