Remove comments

This commit is contained in:
Santiago Lo Coco 2022-01-26 19:17:28 -03:00
parent 38f3f6bff4
commit 7cda2c63f5
1 changed files with 3 additions and 42 deletions

View File

@ -1,60 +1,31 @@
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# History in cache directory:
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.cache/zsh/.histfile
# Path to your oh-my-zsh installation.
export ZSH="/usr/share/oh-my-zsh"
#ZSH_THEME="pmcgee"
ZSH_CUSTOM="/usr/share"
ZSH_THEME="zsh-theme-powerlevel10k/powerlevel10k"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
#plugins=(git vi-mode zsh-autosuggestions)
plugins=(git vi-mode)
source $ZSH/oh-my-zsh.sh
# For vi mode
bindkey -v
# Change cursor shape for different vi modes.
function zle-keymap-select {
if [[ ${KEYMAP} == vicmd ]] ||
[[ $1 = 'block' ]]; then
@ -70,7 +41,7 @@ function zle-keymap-select {
zle -N zle-keymap-select
zle-line-init() {
zle -K viins # initiate `vi insert` as keymap (can be removed if `bindkey -V` has been set elsewhere)
zle -K viins
echo -ne "\e[5 q"
# https://git.suckless.org/st/file/FAQ.html -> Why doesn't the Del key work in some programs?
@ -79,15 +50,14 @@ zle-line-init() {
zle -N zle-line-init
echo -ne '\e[5 q' # Use beam shape cursor on startup.
preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt.
echo -ne '\e[5 q'
preexec() { echo -ne '\e[5 q' ;}
# Edit in vim: https://unix.stackexchange.com/a/90529
export VISUAL="nvim"
autoload edit-command-line; zle -N edit-command-line
bindkey '^E' edit-command-line
# Search through history
autoload -U history-search-end
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
@ -100,18 +70,9 @@ function zle-line-finish () { echoti rmkx }
#zle -N zle-line-init
zle -N zle-line-finish
# Loads aliases
source ~/.zshrc_aliases
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
#eval `keychain`
#if [ -z ${SSH_AGENT_PID+x} ]; then
# eval `keychain --eval --noask --quiet --agents`
# eval `keychain --eval --noask --quiet --agents`
#fi
bindkey -s '^f' 'cd "$(dirname "$(fzf)")"\n'
bindkey -s '^o' 'xdg-open "$(fzf)"\n'