commit 40de90adef2ed217d139f1c576c2f2f6137759b0 parent df1e868c43b6f8c5c21cd465684fb3436058ef40 Author: Jake Koroman <jakekoroman@gmail.com> Date: Fri, 21 Jun 2024 07:06:25 -0400 simplifying my shell. Diffstat:
M | .config/shell/aliasrc | | | 4 | ++-- |
M | .config/zsh/.zshrc | | | 31 | ++++++++++++++++--------------- |
2 files changed, 18 insertions(+), 17 deletions(-)
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc @@ -1,7 +1,7 @@ #!/bin/sh -alias grep='grep --color=auto' -alias ls='ls --color=auto' +#alias grep='grep --color=auto' +#alias ls='ls --color=auto' alias l='ls -l' alias ll='ls -la' diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc @@ -3,7 +3,8 @@ autoload -U colors && colors [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" # fancy prompt -PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b " +#PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b " +PROMPT='%n@%m %~ %# ' HISTFILE=$HOME/.cache/zsh/history HISTSIZE=10000 @@ -34,19 +35,19 @@ bindkey '^e' edit-command-line bindkey -M vicmd '^e' edit-command-line # Change cursor shape for different vi modes. -function zle-keymap-select () { - case $KEYMAP in - vicmd) echo -ne '\e[2 q';; # block - viins|main) echo -ne '\e[6 q';; # beam - esac -} -zle -N zle-keymap-select -zle-line-init() { - echo -ne "\e[6 q" -} -zle -N zle-line-init -echo -ne '\e[6 q' # Use beam shape cursor on startup. -preexec() { echo -ne '\e[6 q' ;} # Use beam shape cursor for each new prompt. +# function zle-keymap-select () { +# case $KEYMAP in +# vicmd) echo -ne '\e[2 q';; # block +# viins|main) echo -ne '\e[6 q';; # beam +# esac +# } +#zle -N zle-keymap-select +#zle-line-init() { + # echo -ne "\e[6 q" +# } +# zle -N zle-line-init +# echo -ne '\e[6 q' # Use beam shape cursor on startup. +# preexec() { echo -ne '\e[6 q' ;} # Use beam shape cursor for each new prompt. # Load syntax highlighting; should be last. -source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh 2> /dev/null +# source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh 2> /dev/null