From ada9e80fe9777afe5f0bbc3668feeeba6fea399b Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Thu, 10 Jun 2021 12:43:42 +0300 Subject: [PATCH] Add projects under krakul to dir-hash jump list --- .zshrc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 4395a77..9440017 100644 --- a/.zshrc +++ b/.zshrc @@ -62,6 +62,15 @@ chpwd_profiles hash -d krakul=~/code/krakul # shorten dir name in prompt +function hash_projects() { + local project_folder + for project_folder in ~/code/krakul/*; do + hash -d "${project_folder:t}"="${project_folder}" + done + unset project_folder +} +hash_projects + # Enable or disable python virtual env function chpwd_auto_python_venv() { local venv_dir @@ -229,7 +238,9 @@ export MANWIDTH=80 export JOBS=8 # under tmux less needs this to support scrolling -#export LESS='--mouse --wheel-lines=3' +if [[ "$TERM" == "" ]]; then + export LESS='--mouse --wheel-lines=3' +fi # https://neovim.io/doc/user/various.html#less function vless {