mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-15 06:32:40 +00:00
feat: Moves most configuration
This commit is contained in:
17
env/.config/zsh/functions/tns
vendored
Executable file
17
env/.config/zsh/functions/tns
vendored
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
# Create a tmux session.
|
||||
#
|
||||
# This accepts a path argument that is used to create the tmux session
|
||||
# in, using it's basename for the session name.
|
||||
#
|
||||
# If an argument is not supplied, then we will create a tmux session in
|
||||
# the current working directory.
|
||||
|
||||
function tns() {
|
||||
local directory=$1
|
||||
if [ -n "$directory" ]; then
|
||||
directory=${PWD}
|
||||
fi
|
||||
tmux-sessionator --directory "$directory"
|
||||
}
|
||||
Reference in New Issue
Block a user