basic sesh config

This commit is contained in:
Tyler Starr 2024-09-24 22:45:56 -07:00
parent 1ac7250542
commit ef247e758d
5 changed files with 29 additions and 2 deletions

View File

@ -5,8 +5,18 @@
alias nu="cd ~/.local/share/chezmoi/provision && \
sudo nixos-rebuild switch --impure --flake .#$(hostname) && \
cd -"
# sway
alias s='sway'
# sesh
function s() {
{
exec </dev/tty
exec <&1
local session
session=$(sesh list -i | fzf --ansi --height 40% --reverse --border-label ' sesh ' --border --prompt '⚡ ')
[[ -z "$session" ]] && return
sesh connect $session
}
}
# hyprland
alias h='Hyprland'

View File

@ -22,6 +22,9 @@ eval "$(thefuck --alias)"
# Setup direnv
eval "$(direnv hook bash)"
# Setup zoxide
eval "$(zoxide init bash)"
# Enable some Bash 4 features when possible:
# * `autocd`, e.g. `**/qux` will enter `./foo/bar/baz/qux`
# * Recursive globbing, e.g. `echo **/*.txt`

View File

@ -0,0 +1,6 @@
!#/usr/bin/env bash
tmux rename-window edit
tmux new-window -n term
tmux select-window -t 1
exec "$EDITOR"

View File

@ -0,0 +1,6 @@
import = []
[[session]]
name = "edit dots"
path = "~/.local/share/chezmoi"
startup_command = "~/.config/sesh/scripts/two_window_editor"

View File

@ -27,6 +27,8 @@ in {
ripgrep # Line-oriented search tool that recursively searches directories for a regex pattern.
cargo # Package manager and build system for Rust.
docker-compose
sesh
zoxide
];
};
}