mirror of
https://github.com/artizirk/dotfiles.git
synced 2024-11-26 01:21:00 +02:00
Add projects under krakul to dir-hash jump list
This commit is contained in:
parent
7adf9d6cbc
commit
ada9e80fe9
13
.zshrc
13
.zshrc
@ -62,6 +62,15 @@ chpwd_profiles
|
|||||||
|
|
||||||
hash -d krakul=~/code/krakul # shorten dir name in prompt
|
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
|
# Enable or disable python virtual env
|
||||||
function chpwd_auto_python_venv() {
|
function chpwd_auto_python_venv() {
|
||||||
local venv_dir
|
local venv_dir
|
||||||
@ -229,7 +238,9 @@ export MANWIDTH=80
|
|||||||
export JOBS=8
|
export JOBS=8
|
||||||
|
|
||||||
# under tmux less needs this to support scrolling
|
# 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
|
# https://neovim.io/doc/user/various.html#less
|
||||||
function vless {
|
function vless {
|
||||||
|
Loading…
Reference in New Issue
Block a user