mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2a09683851 | |||
| 5b3f4d8488 | |||
| 36c702cb88 | |||
| 50f84b1586 | |||
| feed17581a | |||
| 91722a4895 | |||
| cd7ae2ebce | |||
|
|
a9479df7c1 | ||
|
|
84de3da9ac |
2
LICENSE
2
LICENSE
@@ -1,4 +1,4 @@
|
|||||||
Copyright (c) 2013 Jim Myhrberg.
|
Copyright (c) 2014 Jim Myhrberg.
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
35
README.md
35
README.md
@@ -69,6 +69,12 @@ __In tcsh:__
|
|||||||
set path = ( "~/.tmuxifier/bin" $path )
|
set path = ( "~/.tmuxifier/bin" $path )
|
||||||
```
|
```
|
||||||
|
|
||||||
|
__In fish:__
|
||||||
|
|
||||||
|
```fish
|
||||||
|
set -gx PATH "~/.tmuxifier/bin $PATH
|
||||||
|
```
|
||||||
|
|
||||||
### Custom Installation Path
|
### Custom Installation Path
|
||||||
|
|
||||||
To install Tmuxifier somewhere else than the suggested `~/.tmuxifier`, simply
|
To install Tmuxifier somewhere else than the suggested `~/.tmuxifier`, simply
|
||||||
@@ -94,18 +100,35 @@ Add the following to your `~/.cshrc`, `~/.tcshrc` or equivalent:
|
|||||||
eval `tmuxifier init -`
|
eval `tmuxifier init -`
|
||||||
```
|
```
|
||||||
|
|
||||||
|
__In fish:__
|
||||||
|
|
||||||
|
And add the following to your `~/.config/fish/config.fish` or equivalent:
|
||||||
|
|
||||||
|
```fish
|
||||||
|
eval (tmuxifier init -)
|
||||||
|
```
|
||||||
|
|
||||||
If you need to pass custom arguments to tmux itself, you can do so by setting
|
If you need to pass custom arguments to tmux itself, you can do so by setting
|
||||||
the `TMUXIFIER_TMUX_OPTS` environment variable. For example:
|
the `TMUXIFIER_TMUX_OPTS` environment variable. For example to set global
|
||||||
|
arguments:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export TMUXIFIER_TMUX_OPTS="-L my-awesome-socket-name"
|
export TMUXIFIER_TMUX_OPTS="-L my-awesome-socket-name"
|
||||||
eval "$(tmuxifier init -)"
|
eval "$(tmuxifier init -)"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Or dynamically when calling `tmuxifier`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
TMUXIFIER_TMUX_OPTS="-L other-session" tmuxifier load-session welcome
|
||||||
|
```
|
||||||
|
|
||||||
## Updating
|
## Updating
|
||||||
|
|
||||||
cd ~/.tmuxifier
|
```bash
|
||||||
git pull
|
cd ~/.tmuxifier # or where you've cloned tmuxifier to
|
||||||
|
git pull
|
||||||
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@@ -170,8 +193,8 @@ export TMUXIFIER_LAYOUT_PATH="$HOME/.tmux-layouts"
|
|||||||
|
|
||||||
### Disable Shell-Completion
|
### Disable Shell-Completion
|
||||||
|
|
||||||
Tmuxifier comes with shell-completion for bash, zsh and tcsh. If for any
|
Tmuxifier comes with shell-completion for bash, zsh, tcsh, and fish. If for
|
||||||
reason you need to disable it, just set `$TMUXIFIER_NO_COMPLETE`.
|
any reason you need to disable it, just set `$TMUXIFIER_NO_COMPLETE`.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export TMUXIFIER_NO_COMPLETE=1
|
export TMUXIFIER_NO_COMPLETE=1
|
||||||
@@ -210,7 +233,7 @@ it does set itself apart in a number of ways:
|
|||||||
|
|
||||||
(The MIT license)
|
(The MIT license)
|
||||||
|
|
||||||
Copyright (c) 2013 Jim Myhrberg.
|
Copyright (c) 2014 Jim Myhrberg.
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
17
init.fish
Normal file
17
init.fish
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# Set/fix Tmuxifier root path if needed.
|
||||||
|
if test -z $TMUXIFIER
|
||||||
|
set -gx TMUXIFIER "$HOME/.tmuxifier"
|
||||||
|
end
|
||||||
|
|
||||||
|
# Add `bin` directroy to `$PATH`.
|
||||||
|
if not contains "$TMUXIFIER/bin" $PATH
|
||||||
|
set -gx PATH "$TMUXIFIER/bin" $PATH
|
||||||
|
end
|
||||||
|
|
||||||
|
# If `tmuxifier` is available, and `$TMUXIFIER_NO_COMPLETE` is not set, then
|
||||||
|
# load Tmuxifier shell completion.
|
||||||
|
if test -n (which tmuxifier); and test -z $TMUXIFIER_NO_COMPLETE
|
||||||
|
source "$TMUXIFIER/completion/tmuxifier.fish"
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
@@ -29,6 +29,9 @@ case "$shell" in
|
|||||||
tcsh )
|
tcsh )
|
||||||
profile='~/.tcshrc'
|
profile='~/.tcshrc'
|
||||||
;;
|
;;
|
||||||
|
fish )
|
||||||
|
profile='~/.config/fish/config.fish'
|
||||||
|
;;
|
||||||
* )
|
* )
|
||||||
profile='shell init file'
|
profile='shell init file'
|
||||||
;;
|
;;
|
||||||
@@ -44,6 +47,10 @@ Load Tmuxifier by adding the following to your ${profile}:
|
|||||||
case "$shell" in
|
case "$shell" in
|
||||||
csh | tcsh )
|
csh | tcsh )
|
||||||
echo " eval \`tmuxifier init -\`
|
echo " eval \`tmuxifier init -\`
|
||||||
|
"
|
||||||
|
;;
|
||||||
|
fish )
|
||||||
|
echo " eval (tmuxifier init -)
|
||||||
"
|
"
|
||||||
;;
|
;;
|
||||||
* )
|
* )
|
||||||
@@ -67,6 +74,10 @@ case "$shell" in
|
|||||||
echo "setenv TMUXIFIER \"$TMUXIFIER\";"
|
echo "setenv TMUXIFIER \"$TMUXIFIER\";"
|
||||||
echo "source \"\$TMUXIFIER/init.tcsh\";"
|
echo "source \"\$TMUXIFIER/init.tcsh\";"
|
||||||
;;
|
;;
|
||||||
|
fish )
|
||||||
|
echo "set -gx TMUXIFIER \"$TMUXIFIER\";"
|
||||||
|
echo "source \"\$TMUXIFIER/init.fish\";"
|
||||||
|
;;
|
||||||
* )
|
* )
|
||||||
echo "export TMUXIFIER=\"$TMUXIFIER\";"
|
echo "export TMUXIFIER=\"$TMUXIFIER\";"
|
||||||
echo "source \"\$TMUXIFIER/init.sh\";"
|
echo "source \"\$TMUXIFIER/init.sh\";"
|
||||||
|
|||||||
@@ -13,4 +13,4 @@ Outputs Tmuxifier version."
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "0.9.1"
|
echo "0.10.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user