8 Commits

Author SHA1 Message Date
e15ae597e4 Bump version to 0.7.1 2013-06-18 09:13:41 +01:00
d982588302 Merge pull request #18 from fomichev/master
tmux set-option default-path
2013-06-18 01:11:42 -07:00
Stanislav Fomichev
0fc1f20af7 Fix typo 2013-06-18 11:11:22 +04:00
Stanislav Fomichev
8c2582a948 Add set_default_path option
This option lets user disable 'tmux set-option default-path' for
$session_root, like this:
	session_root "~/x/y/z"
	set_default_path=false
2013-06-18 11:10:48 +04:00
c1ecc0a7c8 Update LICENSE file to match license details in readme 2013-06-18 00:27:22 +01:00
85718b9a9e Update Todos section in readme 2013-06-18 00:24:51 +01:00
1b5c451e39 Remove "Heed My Warning" section from readme, it's no longer relevant 2013-06-18 00:24:36 +01:00
887bbc4fbc No need to attempt to syntax highlight shell command examples 2013-06-18 00:23:18 +01:00
4 changed files with 11 additions and 24 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -13,4 +13,4 @@ Outputs Tmuxifier version."
exit
fi
echo "0.7.0"
echo "0.7.1"