move config files to new yadm dir

This commit is contained in:
Simonas Narbutas
2019-11-21 10:23:04 +01:00
parent 8c78170a3a
commit 07551e044a
35 changed files with 439 additions and 7 deletions

View File

@@ -1,12 +0,0 @@
if [[ "$TERM" == screen-256color ]] || [[ -n "$TMUX" ]] || [[ "${TERM_PROGRAM}" == "vscode" ]]; then
return 1
fi
if tmux list-sessions && (tmux list-sessions | test -n "$0"); then
session_id=`date +%Y%m%d%H%M%S`
tmux new-session -d -t base -s $session_id
tmux select-window -t "$( tmux new-window -P -F \#{window_index} )"
tmux attach-session -t $session_id \; set-option destroy-unattached
else
tmux new-session -s base
fi