mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e15ae597e4 | |||
| d982588302 | |||
|
|
0fc1f20af7 | ||
|
|
8c2582a948 | ||
| c1ecc0a7c8 | |||
| 85718b9a9e | |||
| 1b5c451e39 | |||
| 887bbc4fbc |
2
LICENSE
2
LICENSE
@@ -1,4 +1,4 @@
|
||||
Copyright (c) 2012 Jim Myhrberg.
|
||||
Copyright (c) 2013 Jim Myhrberg.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
25
README.md
25
README.md
@@ -42,9 +42,7 @@ select_pane 0
|
||||
You can then load that window layout into a new window in the
|
||||
current tmux session using:
|
||||
|
||||
```bash
|
||||
tmuxifier load-window example
|
||||
```
|
||||
tmuxifier load-window example
|
||||
|
||||
Which will yield a Tmux window looking like this:
|
||||
|
||||
@@ -54,9 +52,7 @@ Which will yield a Tmux window looking like this:
|
||||
|
||||
Clone the repo to your machine:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/jimeh/tmuxifier.git ~/.tmuxifier
|
||||
```
|
||||
git clone https://github.com/jimeh/tmuxifier.git ~/.tmuxifier
|
||||
|
||||
Then add `~/.tmuxifier/bin` to your PATH to make the `tmuxifier` executable
|
||||
available to you:
|
||||
@@ -100,10 +96,8 @@ eval `tmuxifier init -`
|
||||
|
||||
## Updating
|
||||
|
||||
```bash
|
||||
cd ~/.tmuxifier
|
||||
git pull
|
||||
```
|
||||
cd ~/.tmuxifier
|
||||
git pull
|
||||
|
||||
## Usage
|
||||
|
||||
@@ -199,19 +193,10 @@ it does set itself apart in a number of ways:
|
||||
[tmuxinator]: https://github.com/aziz/tmuxinator
|
||||
[rbenv]: https://github.com/sstephenson/rbenv
|
||||
|
||||
## Heed My Warning
|
||||
|
||||
Tmuxifier is pretty much an alpha product hacked together over a weekend at
|
||||
this point. Documentation is sketchy at best, and things might drastically
|
||||
change and/or break.
|
||||
|
||||
But if that doesn't put you off, please enjoy Tmuxifier :)
|
||||
|
||||
## Todos
|
||||
|
||||
* Improve Readme, specially Usage section.
|
||||
* Expand `help` command with details for most commands, rather than just the
|
||||
essential ones.
|
||||
* Write up a detailed reference for all available layout helper functions.
|
||||
|
||||
## License
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ run_cmd() {
|
||||
send_keys "C-m" "$2"
|
||||
}
|
||||
|
||||
# Cusomize session root path. Default is `$HOME`.
|
||||
# Customize session root path. Default is `$HOME`.
|
||||
#
|
||||
# Arguments:
|
||||
# - $1: Directory path to use for session root.
|
||||
@@ -138,6 +138,7 @@ load_session() {
|
||||
local file="$TMUXIFIER_LAYOUT_PATH/$1.session.sh"
|
||||
if [ -f "$file" ]; then
|
||||
session="$1"
|
||||
set_default_path=true
|
||||
source "$file"
|
||||
session=
|
||||
|
||||
@@ -178,7 +179,8 @@ initialize_session() {
|
||||
# Set default-path for session
|
||||
if [ -n "$session_root" ] && [ -d "$session_root" ]; then
|
||||
cd "$session_root"
|
||||
tmux set-option -t "$session:" default-path "$session_root" 1>/dev/null
|
||||
|
||||
$set_default_path && tmux set-option -t "$session:" default-path "$session_root" 1>/dev/null
|
||||
fi
|
||||
|
||||
# In order to ensure only specified windows are created, we move the
|
||||
|
||||
@@ -13,4 +13,4 @@ Outputs Tmuxifier version."
|
||||
exit
|
||||
fi
|
||||
|
||||
echo "0.7.0"
|
||||
echo "0.7.1"
|
||||
|
||||
Reference in New Issue
Block a user