Re-organise to use a bare repo
Re-organise to use a bare repo, e.g. https://www.atlassian.com/git/tutorials/dotfiles.
This commit is contained in:
parent
e00d9b2e96
commit
d1da7c6e15
59 changed files with 19 additions and 68 deletions
22
.zsh/configs/tmux.zsh
Normal file
22
.zsh/configs/tmux.zsh
Normal file
|
@ -0,0 +1,22 @@
|
|||
_not_inside_tmux() {
|
||||
[[ -z "$TMUX" ]]
|
||||
}
|
||||
|
||||
_not_inside_phpstorm() {
|
||||
if is_macos; then
|
||||
# VS Code returns "vscode".
|
||||
# iTerm returns "iTerm.app".
|
||||
# PhpStorm returns nothing.
|
||||
[[ "$TERM_PROGRAM" != "" ]]
|
||||
elif is_linux; then
|
||||
[[ "$TERMINAL_EMULATOR" != "JetBrains"* ]]
|
||||
fi
|
||||
}
|
||||
|
||||
ensure_tmux_is_running() {
|
||||
if _not_inside_tmux && _not_inside_phpstorm; then
|
||||
tat
|
||||
fi
|
||||
}
|
||||
|
||||
ensure_tmux_is_running
|
Loading…
Add table
Add a link
Reference in a new issue