diff --git a/.bashrc b/.bashrc index 2f44cf2..8f8e736 100644 --- a/.bashrc +++ b/.bashrc @@ -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' diff --git a/.vimrc b/.vimrc index c8bb68a..35f6c64 100644 --- a/.vimrc +++ b/.vimrc @@ -40,3 +40,7 @@ autocmd filetype c nnoremap :w 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// diff --git a/.zshrc b/.zshrc index 4a448d1..4c012b0 100644 --- a/.zshrc +++ b/.zshrc @@ -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.