Add minor env var and alias changes
This commit is contained in:
@@ -5,6 +5,7 @@ export EDITOR='nvim'
|
||||
# env vars used for my organization structure
|
||||
export DIR_HOME_BOX="$HOME/dbox"
|
||||
export DIR_DEV="$HOME/dev"
|
||||
export DIR_GIT_PROJECTS="$DIR_DEV/git"
|
||||
|
||||
# util dirs; do not change without checking impact on xdg base dirs
|
||||
export DIR_LOCAL="$HOME/.local"
|
||||
|
@@ -18,9 +18,10 @@ alias tms='tmux-sessionizer'
|
||||
|
||||
# executable name overrides
|
||||
alias ls='ls -F'
|
||||
alias youtube-dl='youtube-dl --write-info-json'
|
||||
alias yt-dlp='yt-dlp --write-info-json'
|
||||
|
||||
# misc commands
|
||||
alias cal='khal calendar'
|
||||
alias pdt='ping -c 2 drinkingtea.net'
|
||||
alias ppw='ping -c 2 pinewoods.xyz'
|
||||
alias weather='curl wttr.in'
|
||||
|
@@ -2,7 +2,7 @@ local omitted_dirs=(
|
||||
$HOME
|
||||
$DIR_HOME_BOX
|
||||
$DIR_DEV
|
||||
$DIR_DEV/git
|
||||
$DIR_GIT_PROJECTS
|
||||
)
|
||||
[[ ! ${omitted_dirs[(re)$(pwd)]} ]] &&
|
||||
tmux new-window -d -n cmd &&
|
||||
|
@@ -7,7 +7,6 @@ switch_to() {
|
||||
hydrate() {
|
||||
local tmux_hydrate_path="$DIR_SCRIPTS/.tmux-session-hydrate-default"
|
||||
[[ -f $2/.tmux-session-hydrate ]] && tmux_hydrate_path="$2/.tmux-session-hydrate"
|
||||
# TODO: add special case: [[ "$1" = "hub" ]] && tmux_hydrate_path="$DIR_SCRIPTS/.tmux-session-hydrate-hub"
|
||||
[[ -f $tmux_hydrate_path ]] && tmux send-keys -t $1 "source $tmux_hydrate_path" c-M
|
||||
}
|
||||
|
||||
@@ -16,7 +15,7 @@ local existing_sessions=$([[ -n $(pgrep tmux) ]] && tmux list-sessions | sed "s/
|
||||
local search_dirs=(
|
||||
$DIR_HOME_BOX
|
||||
$DIR_DEV
|
||||
$DIR_DEV/git/*
|
||||
$DIR_GIT_PROJECTS/*
|
||||
)
|
||||
local target_name=''
|
||||
local target_path=''
|
||||
|
Reference in New Issue
Block a user