rename
This commit is contained in:
parent
4bca412800
commit
50116c99af
|
|
@ -9,7 +9,7 @@ in {
|
||||||
u.bin = with pkgs;
|
u.bin = with pkgs;
|
||||||
{
|
{
|
||||||
edit = [];
|
edit = [];
|
||||||
sh-tmux = [tmux];
|
auto-tmux = [tmux];
|
||||||
sm = [];
|
sm = [];
|
||||||
}
|
}
|
||||||
// lib.optionalAttrs config.u.has.graphical {
|
// lib.optionalAttrs config.u.has.graphical {
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@ local parent="$(ps -o command= -p "$PPID" | cut -f1 -d' ')"
|
||||||
if [[ "$parent" == *alacritty ]]; then
|
if [[ "$parent" == *alacritty ]]; then
|
||||||
if [[ -z "$TMUX" && -z "$NOTMUX" ]]; then
|
if [[ -z "$TMUX" && -z "$NOTMUX" ]]; then
|
||||||
if [[ "$PWD" == "$HOME" ]]; then
|
if [[ "$PWD" == "$HOME" ]]; then
|
||||||
exec sh-tmux
|
exec auto-tmux
|
||||||
else
|
else
|
||||||
exec sh-tmux -n
|
exec auto-tmux -n
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# set shell level
|
# set shell level
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ bind m resize-pane -Z
|
||||||
|
|
||||||
# detach (sends signal to parent process to exec shell)
|
# detach (sends signal to parent process to exec shell)
|
||||||
unbind d
|
unbind d
|
||||||
bind d run 'sh-tmux -d'
|
bind d run 'auto-tmux -d'
|
||||||
set -g update-environment SH_TMUX_PID
|
set -g update-environment SH_TMUX_PID
|
||||||
|
|
||||||
bind C-u copy-mode \; send C-u
|
bind C-u copy-mode \; send C-u
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue