mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-13 08:17:31 -08:00
basic sesh config
This commit is contained in:
parent
1ac7250542
commit
ef247e758d
@ -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'
|
||||
|
@ -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`
|
||||
|
@ -0,0 +1,6 @@
|
||||
!#/usr/bin/env bash
|
||||
|
||||
tmux rename-window edit
|
||||
tmux new-window -n term
|
||||
tmux select-window -t 1
|
||||
exec "$EDITOR"
|
6
home/dot_config/sesh/sesh.toml
Normal file
6
home/dot_config/sesh/sesh.toml
Normal file
@ -0,0 +1,6 @@
|
||||
import = []
|
||||
|
||||
[[session]]
|
||||
name = "edit dots"
|
||||
path = "~/.local/share/chezmoi"
|
||||
startup_command = "~/.config/sesh/scripts/two_window_editor"
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user