2020-04-21 13:54:09 -04:00
|
|
|
source ~/.zsh_local
|
2022-10-17 22:35:06 -04:00
|
|
|
if test -f /usr/share/doc/fzf/examples/completion.zsh &> /dev/null; then
|
|
|
|
source /usr/share/doc/fzf/examples/completion.zsh
|
|
|
|
fi
|
2020-02-09 12:29:17 -05:00
|
|
|
|
2020-04-21 12:39:18 -04:00
|
|
|
HISTFILE=~/.histfile
|
|
|
|
HISTSIZE=10000
|
|
|
|
SAVEHIST=10000
|
|
|
|
setopt appendhistory autocd notify
|
|
|
|
setopt menu_complete
|
|
|
|
unsetopt beep
|
|
|
|
bindkey -v
|
2020-04-21 13:54:09 -04:00
|
|
|
|
2020-06-12 18:44:25 -04:00
|
|
|
autoload -Uz up-line-or-beginning-search
|
|
|
|
autoload -Uz down-line-or-beginning-search
|
|
|
|
zle -N up-line-or-beginning-search
|
|
|
|
zle -N down-line-or-beginning-search
|
|
|
|
bindkey '\eOA' up-line-or-beginning-search
|
|
|
|
bindkey '\e[A' up-line-or-beginning-search
|
|
|
|
bindkey '\eOB' down-line-or-beginning-search
|
|
|
|
bindkey '\e[B' down-line-or-beginning-search
|
2020-04-21 13:54:09 -04:00
|
|
|
|
|
|
|
export EDITOR="vim"
|
2020-02-09 12:29:17 -05:00
|
|
|
|
2020-04-21 12:39:18 -04:00
|
|
|
zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate
|
|
|
|
zstyle ':completion:*' matcher-list '+' '+m:{[:lower:]}={[:upper:]}' '+m:{[:lower:][:upper:]}={[:upper:][:lower:]}' '+r:|[._-]=** r:|=** l:|=*'
|
2020-04-21 13:54:09 -04:00
|
|
|
zstyle :compinstall filename '~/.zshrc'
|
2021-10-06 13:15:39 -04:00
|
|
|
zstyle ':completion:*' ignored-patterns '*.class'
|
2020-02-09 12:29:17 -05:00
|
|
|
|
2020-04-21 12:39:18 -04:00
|
|
|
autoload -Uz compinit
|
|
|
|
compinit
|
2020-02-09 12:29:17 -05:00
|
|
|
|
2020-04-21 12:39:18 -04:00
|
|
|
# enable color support of ls and also add handy aliases
|
|
|
|
if [ -x /usr/bin/dircolors ]; then
|
|
|
|
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
|
|
|
alias grep='grep --color=auto'
|
|
|
|
alias fgrep='fgrep --color=auto'
|
|
|
|
alias egrep='egrep --color=auto'
|
|
|
|
fi
|
2020-02-09 12:29:17 -05:00
|
|
|
|
2021-10-06 13:15:39 -04:00
|
|
|
export PATH=./:~/.bin:/usr/local/go/bin:$PATH
|
2020-04-21 12:39:18 -04:00
|
|
|
|
|
|
|
fignore=(o)
|
|
|
|
|
|
|
|
function SetTtyColors() {
|
2022-10-17 22:35:06 -04:00
|
|
|
echo -en "\e]P0""292e2f" #black 1
|
|
|
|
echo -en "\e]P1""dc4848" #darkgrey 2
|
|
|
|
echo -en "\e]P2""00aa00" #darkred 3
|
|
|
|
echo -en "\e]P3""d99f4e" #red 4
|
|
|
|
echo -en "\e]P4""4444aa" #darkgreen 5
|
|
|
|
echo -en "\e]P5""c436b9" #green 6
|
|
|
|
echo -en "\e]P6""00aaaa" #brown 7
|
|
|
|
echo -en "\e]P7""d7d7d7" #yellow 8
|
|
|
|
echo -en "\e]P8""7b7b7b" #darkblue 9
|
|
|
|
echo -en "\e]P9""6f6fff" #blue 10
|
|
|
|
echo -en "\e]PA""55ff55" #darkmagenta 11
|
|
|
|
echo -en "\e]PB""ffed8b" #magenta 12
|
|
|
|
echo -en "\e]PC""5555ff" #darkcyan 13
|
|
|
|
echo -en "\e]PD""ff6eff" #cyan 14
|
|
|
|
echo -en "\e]PE""55ffff" #lightgray 15
|
|
|
|
echo -en "\e]PF""aaaaaa" #white 16
|
2020-04-21 12:39:18 -04:00
|
|
|
clear
|
|
|
|
}
|
2020-02-09 12:29:17 -05:00
|
|
|
|
2020-04-21 12:39:18 -04:00
|
|
|
if [ "$TERM" = "linux" ]; then
|
|
|
|
SetTtyColors
|
|
|
|
fi
|
2020-02-09 12:29:17 -05:00
|
|
|
|
2020-02-09 12:36:34 -05:00
|
|
|
function pushdot {
|
2020-02-09 12:42:29 -05:00
|
|
|
cd ~/.dotfiles &&
|
2020-02-09 12:54:34 -05:00
|
|
|
if [ $# -eq 0 ]; then
|
2021-10-06 13:51:40 -04:00
|
|
|
git commit -a && git push -u origin master &
|
2020-02-09 12:54:34 -05:00
|
|
|
else
|
2021-10-06 13:52:23 -04:00
|
|
|
git commit -a -m "$1" && git push -u origin master | /dev/null &
|
2020-02-09 12:54:34 -05:00
|
|
|
fi
|
2020-02-09 12:36:34 -05:00
|
|
|
cd -
|
|
|
|
}
|
2020-04-23 11:46:53 -04:00
|
|
|
|
|
|
|
function getdot {
|
|
|
|
cd ~/.dotfiles &&
|
|
|
|
git pull
|
|
|
|
cd -
|
|
|
|
}
|
2020-04-26 20:17:35 -04:00
|
|
|
|
2022-10-17 22:35:06 -04:00
|
|
|
if which starship &> /dev/null; then
|
|
|
|
eval "$(starship init zsh)"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -f ~/.cargo/env; then
|
|
|
|
source ~/.cargo/env
|
|
|
|
fi
|
|
|
|
|
2021-10-06 13:15:39 -04:00
|
|
|
source ~/.shell_aliases
|