mirror of
https://github.com/artizirk/dotfiles.git
synced 2024-11-22 00:10:59 +02:00
Remove need to prepend hashed dirs with ~
This commit is contained in:
parent
ada9e80fe9
commit
510b7c3d6d
5
.zshrc
5
.zshrc
@ -61,8 +61,8 @@ function chpwd_leave_profile_krakul() {
|
||||
chpwd_profiles
|
||||
|
||||
hash -d krakul=~/code/krakul # shorten dir name in prompt
|
||||
|
||||
function hash_projects() {
|
||||
# hash everything under krakul projects
|
||||
local project_folder
|
||||
for project_folder in ~/code/krakul/*; do
|
||||
hash -d "${project_folder:t}"="${project_folder}"
|
||||
@ -71,6 +71,9 @@ function hash_projects() {
|
||||
}
|
||||
hash_projects
|
||||
|
||||
# remove need to add ~ in front of hashed dirs
|
||||
setopt cdable_vars
|
||||
|
||||
# Enable or disable python virtual env
|
||||
function chpwd_auto_python_venv() {
|
||||
local venv_dir
|
||||
|
Loading…
Reference in New Issue
Block a user