mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-18 10:47: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 && \
|
alias nu="cd ~/.local/share/chezmoi/provision && \
|
||||||
sudo nixos-rebuild switch --impure --flake .#$(hostname) && \
|
sudo nixos-rebuild switch --impure --flake .#$(hostname) && \
|
||||||
cd -"
|
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
|
# hyprland
|
||||||
alias h='Hyprland'
|
alias h='Hyprland'
|
||||||
|
@ -22,6 +22,9 @@ eval "$(thefuck --alias)"
|
|||||||
# Setup direnv
|
# Setup direnv
|
||||||
eval "$(direnv hook bash)"
|
eval "$(direnv hook bash)"
|
||||||
|
|
||||||
|
# Setup zoxide
|
||||||
|
eval "$(zoxide init bash)"
|
||||||
|
|
||||||
# Enable some Bash 4 features when possible:
|
# Enable some Bash 4 features when possible:
|
||||||
# * `autocd`, e.g. `**/qux` will enter `./foo/bar/baz/qux`
|
# * `autocd`, e.g. `**/qux` will enter `./foo/bar/baz/qux`
|
||||||
# * Recursive globbing, e.g. `echo **/*.txt`
|
# * 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.
|
ripgrep # Line-oriented search tool that recursively searches directories for a regex pattern.
|
||||||
cargo # Package manager and build system for Rust.
|
cargo # Package manager and build system for Rust.
|
||||||
docker-compose
|
docker-compose
|
||||||
|
sesh
|
||||||
|
zoxide
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user