mystery commit

This commit is contained in:
ole
2022-05-26 20:55:32 +02:00
parent 98bc74c73a
commit 7ea47678db
3 changed files with 21 additions and 16 deletions

View File

@@ -115,4 +115,5 @@ if ! shopt -oq posix; then
. /etc/bash_completion
fi
fi
alias config='/usr/bin/git --git-dir=/home/ole/.cfg/ --work-tree=/home/ole'

4
.vimrc
View File

@@ -40,3 +40,7 @@ autocmd filetype c nnoremap <F5> :w <bar> exec '!gcc '.shellescape('%').' -lm -o
set background=light
set termguicolors
colorscheme melange
" Save swap and undo and backup files in separate directory
set directory=$HOME/.vim/swapfiles//
set backupdir=$HOME/.vim/backups//

32
.zshrc
View File

@@ -91,22 +91,22 @@ if [ -n "$force_color_prompt" ]; then
fi
configure_prompt() {
prompt_symbol=@
[ "$EUID" -eq 0 ] && prompt_symbol=@
case "$PROMPT_ALTERNATIVE" in
twoline)
PROMPT=' %(?.%B%F{blue}🐢.%F{red}?%?)%f %B%F{240}%1~%f%b '
RPROMPT=''
;;
oneline)
PROMPT=$'${debian_chroot:+($debian_chroot)}${VIRTUAL_ENV:+($(basename $VIRTUAL_ENV))}%B%F{%(#.red.blue)}%n@%m%b%F{reset}:%B%F{%(#.blue.green)}%~%b%F{reset}%(#.#.$) '
RPROMPT=
;;
backtrack)
PROMPT=$'${debian_chroot:+($debian_chroot)}${VIRTUAL_ENV:+($(basename $VIRTUAL_ENV))}%B%F{red}%n@%m%b%F{reset}:%B%F{blue}%~%b%F{reset}%(#.#.$) '
RPROMPT=
;;
esac
PROMPT=' %(?.%B%F{blue}🐢.%F{red}?%?)%f %B%F{240}%1~%f%b '
# prompt_symbol=@
# [ "$EUID" -eq 0 ] && prompt_symbol=@
# case "$PROMPT_ALTERNATIVE" in
# twoline)
# RPROMPT=''
# ;;
# oneline)
# PROMPT=$'${debian_chroot:+($debian_chroot)}${VIRTUAL_ENV:+($(basename $VIRTUAL_ENV))}%B%F{%(#.red.blue)}%n@%m%b%F{reset}:%B%F{%(#.blue.green)}%~%b%F{reset}%(#.#.$) '
# RPROMPT=
# ;;
# backtrack)
# PROMPT=$'${debian_chroot:+($debian_chroot)}${VIRTUAL_ENV:+($(basename $VIRTUAL_ENV))}%B%F{red}%n@%m%b%F{reset}:%B%F{blue}%~%b%F{reset}%(#.#.$) '
# RPROMPT=
# ;;
# esac
}
# The following block is surrounded by two delimiters.