aboutsummaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-02-24 17:07:33 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-02-24 17:07:33 +0100
commit468a789dbc4b1928c035d8590895efc533520a27 (patch)
tree74cb056c37eaa50cd50491a7665608488ed4feb1 /.zshrc
parentf9883d2c3b3699d91e98feeffd7eece546f7c57e (diff)
downloaddotfiles-468a789dbc4b1928c035d8590895efc533520a27.tar.gz
dotfiles-468a789dbc4b1928c035d8590895efc533520a27.tar.bz2
dotfiles-468a789dbc4b1928c035d8590895efc533520a27.zip
Updated file tree to match XDG base directory specification
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc120
1 files changed, 0 insertions, 120 deletions
diff --git a/.zshrc b/.zshrc
deleted file mode 100644
index 8a1ee8c..0000000
--- a/.zshrc
+++ /dev/null
@@ -1,120 +0,0 @@
-###############
-# zshrc #
-###############
-
-
-[ -z $DOTDIR ] && export DOTDIR=$HOME/git/dotfiles # FIXME have to change path manually if install elsewhere
-
-# load aliases
-source $DOTDIR/.zsh_aliases
-
-# prompt
-case `tty` in
- /dev/tty[1-9])
- # %~ path ('~' if $HOME)
- # %B/%b start/stop bold
- # %B/%b start/stop color
- NEWLINE=$'\n'
- export PROMPT="${NEWLINE}%B%F{blue}%~%f${NEWLINE}%F{red}> %f%b"
- ;;
- *)
- # pure prompt
- export FPATH="$FPATH:$HOME/.zsh/pure"
- ZSH_THEME="pure"
- autoload -U promptinit
- promptinit
- prompt pure
- ;;
-esac
-
-# auto complete
-autoload -U compinit
-zstyle ':completion:*' menu select # menu like
-zstyle ':completion:*' matcher-list '' \
- 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=*' 'r:|=* l:|=* r:|=*' # case insensitive
-zmodload zsh/complist
-compinit
-# _comp_options+=(globdots)
-
-# vim keybindings in tab completion menu (https://www.youtube.com/watch?v=eLEo4OQ-cuQ)
-bindkey -M menuselect 'h' vi-backward-char
-bindkey -M menuselect 'k' vi-up-line-or-history
-bindkey -M menuselect 'l' vi-forward-char
-bindkey -M menuselect 'j' vi-down-line-or-history
-bindkey -v '^?' backward-delete-char
-
-# vim keybindings in prompt
-bindkey -v
-export KEYTIMEOUT=1
-
-setopt auto_cd # cd without `cd` command
-# setopt pushd_ignore_dups
-setopt list_rows_first # cycle through row first in menu
-# setopt extendedglob
-
-# executed when changing directory
-function chpwd() {
- content=$(ls | wc -l)
- ([ "$content" -lt 20 ] && ls -l) ||
- echo "$(pwd) contains $content entries"
- [ "$(stat -c "%U" .)" = "$USER" ] && touch . # to sort by last cd
-}
-
-# add command-not-found package suggestion
-#source /etc/zsh_command_not_found
-
-# color in man (less pager)
-export LESS_TERMCAP_mb=$'\e[1;32m'
-export LESS_TERMCAP_md=$'\e[1;32m'
-export LESS_TERMCAP_me=$'\e[0m'
-export LESS_TERMCAP_se=$'\e[0m'
-export LESS_TERMCAP_so=$'\e[01;33m'
-export LESS_TERMCAP_ue=$'\e[0m'
-export LESS_TERMCAP_us=$'\e[1;4;31m'
-export LESS_TERMCAP_mr=$(tput rev)
-export LESS_TERMCAP_mh=$(tput dim)
-export LESS_TERMCAP_ZN=$(tput ssubm)
-export LESS_TERMCAP_ZV=$(tput rsubm)
-export LESS_TERMCAP_ZO=$(tput ssupm)
-export LESS_TERMCAP_ZW=$(tput rsupm)
-
-#XDG
-export XDG_CONFIG_HOME="$HOME/.config"
-export XDG_DATA_HOME="$HOME/.local/share"
-export XDG_CACHE_HOME="$HOME/.cache"
-
-export EDITOR="vim"
-export TERM="st-256color"
-export MAIL='me@cacharle.xyz'
-export BROWSER='qutebrowser'
-export BROWSERCLI='w3m'
-
-# ignore filetypes in autocomplete
-fignore=(o hi)
-
-# pluggins
-source $HOME/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh # prompt syntax highlight
-
-export YSU_MESSAGE_POSITION="after" # you-should-use message after command output
-source $HOME/.zsh/zsh-you-should-use/you-should-use.plugin.zsh # alias reminder
-
-# set tab to 4 spaces
-tabs 4
-
-export LFS=/mnt
-
-export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:$DOTDIR/bin:$HOME/.local/bin"
-# export PATH="$PATH:$HOME/.vim/plugged/vim-superman/bin"
-
-export GPG_TTY=$(tty) # fixing gpg fatal error about tty
-
-export MINISHELL_TEST_BONUS=yes
-export MINISHELL_TEST_PAGER=vim
-export MINISHELL_TEST_FLAGS=-DMINISHELL_TEST
-
-# Added by c_formatter_42
-export PATH="$PATH:/home/charles/git/c_formatter_42"
-
-export MINIKUBE_IN_STYLE=false
-
-export WEBSERV_FLAGS=-DWEBSERV_CACHARLE