puntos/.zshrc

64 lines
1.5 KiB
Bash
Raw Normal View History

source ~/.profile
HISTFILE=~/.histfile
HISTSIZE=100000
SAVEHIST=100000
2022-02-07 19:35:49 +00:00
# Permitir comentarios en la shell
setopt interactive_comments
setopt autocd extendedglob notify
bindkey -e
bindkey "^[f" forward-word
bindkey "^[b" backward-word
zstyle ':completion:*' list-dirs-first yes
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
zstyle :compinstall filename ~/.zshrc
autoload -Uz compinit && compinit
autoload -Uz vcs_info
zstyle ':vcs_info:*' actionformats \
'%F{4}[%F{2}%b%F{3}|%F{1}%a%F{4}]%f '
zstyle ':vcs_info:*' formats '%F{4}%b%f '
zstyle ':vcs_info:*' enable git
precmd () { vcs_info }
setopt promptsubst
2022-02-07 19:41:49 +00:00
PS1='%S%F{5} %3~ ${vcs_info_msg_0_}%f%#%s '
2021-12-26 20:42:45 +00:00
"$REMOTE" && PS1='%n@%m '$PS1
alias ls='ls --color=always'
alias grep='grep --color=always'
alias ssh='TERM=xterm-256color ssh'
alias e="$EDITOR"
alias r="trash -r"
2022-03-13 20:54:18 +00:00
alias a='nohup nemo "$(pwd)" >/dev/null &'
2022-03-17 02:11:39 +00:00
alias gcp='git commit -p'
alias gc='git commit'
alias ga='git add'
alias gt='git tag'
alias gp='git push'
alias gpo='git push origin' # Para tags: git push origin 1.0.2 / gpo 1.0.2
alias gitdf='git --git-dir=$HOME/.config/dotfiles/ --work-tree=$HOME'
alias gdcp='gitdf commit -p'
alias gdp='gitdf push'
source /usr/share/fzf/key-bindings.zsh
2021-12-23 00:12:11 +00:00
source ~/.config/zsh/bg_notify.zsh
2021-12-26 20:42:45 +00:00
! "$REMOTE" && source ~/.config/zsh/osc_7.zsh
2021-12-26 20:42:45 +00:00
if ! "$REMOTE"; then
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
# Start if not started
gpg-agent --daemon 2>/dev/null
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
fi