Update .zshrc and refactor related files as needed
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
local omitted_dirs=(
|
||||
$HOME
|
||||
$HOMEBOX
|
||||
$DEVDIR
|
||||
$DEVDIR/git
|
||||
$HOME_BOX
|
||||
$DIR_DEV
|
||||
$DIR_DEV/git
|
||||
)
|
||||
[[ ! ${omitted_dirs[(re)$(pwd)]} ]] &&
|
||||
tmux new-window -d -n cmd &&
|
||||
|
@ -13,9 +13,9 @@ hydrate() {
|
||||
local name_regex="^\([-_A-Za-z0-9]*\):.*$"
|
||||
local existing_sessions=$([[ -n $(pgrep tmux) ]] && tmux list-sessions | sed "s/$name_regex/\1/" || echo '')
|
||||
local search_dirs=(
|
||||
$HOMEBOX
|
||||
$DEVDIR
|
||||
$DEVDIR/git/*
|
||||
$HOME_BOX
|
||||
$DIR_DEV
|
||||
$DIR_DEV/git/*
|
||||
)
|
||||
local target_name=''
|
||||
local target_path=''
|
||||
|
Reference in New Issue
Block a user