Compare commits

...

11 Commits

Author SHA1 Message Date
Bruno Sutic
99469c4a9b
Merge pull request #243 from andyrichardson/patch-1
Update tpm_not_working.md
2023-02-27 13:59:27 +01:00
Andy Richardson
8307a5fe58
prepend > prefix 2023-02-26 19:21:30 +00:00
Andy Richardson
3709b62397
Update tpm_not_working.md 2023-02-26 19:18:12 +00:00
Bruno Sutic
fdb30228b1
Merge pull request #239 from FranklinYu/update-verbosely
Show the output of Git pull when updating plugins
2023-01-13 09:03:03 +01:00
Franklin Yu
e504b8eec6 Show the output of Git pull when updating plugins
This tells users whether a plugin changed during the update.
2023-01-05 20:37:06 -08:00
Bruno Sutic
fc412cbdf7
v3.1.0 2023-01-03 21:07:40 +01:00
Bruno Sutic
420656d265
Merge pull request #227 from rehanguha/master
Updated README and removed `$` symbol
2022-12-03 10:23:53 +01:00
Rehan Guha
b6fb16f318
Updated README and removed $ symbol
This will help to directly copy and paste in the terminal and not to perform an extra step and remove the $ symbol
2022-06-20 16:44:53 +05:30
Bruno Sutic
b699a7e01c
Merge pull request #216 from yasudanaoya/fix/typo
fix: typo
2022-01-01 12:05:58 +01:00
yasudanaoya
49c51f3774 fix: github to GitHub 2022-01-01 17:49:21 +09:00
yasudanaoya
e529dc221c fix: typo 2021-12-30 22:07:10 +09:00
6 changed files with 26 additions and 12 deletions

View File

@ -1,6 +1,8 @@
# Changelog # Changelog
### master ### master
### v3.1.0, 2023-01-03
- upgrade to new version of `tmux-test` - upgrade to new version of `tmux-test`
- bug: when using `emacs` copy mode, Enter does not quit screen after tpm - bug: when using `emacs` copy mode, Enter does not quit screen after tpm
installation/update. Fix by making `Escape` the key for emacs mode. installation/update. Fix by making `Escape` the key for emacs mode.
@ -9,6 +11,7 @@
line endings - helps with misconfigured git on windows/cygwin line endings - helps with misconfigured git on windows/cygwin
- readme update: announce Cygwin support - readme update: announce Cygwin support
- un-deprecate old plugin definition syntax: `set -g @tpm_plugins` - un-deprecate old plugin definition syntax: `set -g @tpm_plugins`
- More stuff, check `git log`.
### v3.0.0, 2015-08-03 ### v3.0.0, 2015-08-03
- refactor `shared_set_tpm_path_constant` function - refactor `shared_set_tpm_path_constant` function

View File

@ -15,7 +15,7 @@ Requirements: `tmux` version 1.9 (or higher), `git`, `bash`.
Clone TPM: Clone TPM:
```bash ```bash
$ git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
``` ```
Put this at the bottom of `~/.tmux.conf` (`$XDG_CONFIG_HOME/tmux/tmux.conf` Put this at the bottom of `~/.tmux.conf` (`$XDG_CONFIG_HOME/tmux/tmux.conf`
@ -40,7 +40,7 @@ Reload TMUX environment so TPM is sourced:
```bash ```bash
# type this in terminal if tmux is already running # type this in terminal if tmux is already running
$ tmux source ~/.tmux.conf tmux source ~/.tmux.conf
``` ```
That's it! That's it!
@ -93,7 +93,7 @@ Run tests with:
```bash ```bash
# within project directory # within project directory
$ ./run_tests ./run_tests
``` ```
### License ### License

View File

@ -92,12 +92,12 @@ That should set up the key binding. Now hit `prefix + T` and see if it works.
### 6. publish the plugin ### 6. publish the plugin
When everything is ready, push the plugin to an online git repository, When everything is ready, push the plugin to an online git repository,
preferably Github. preferably GitHub.
Other users can install your plugin by just adding plugin git URL to the Other users can install your plugin by just adding plugin git URL to the
`@plugin` list in their `.tmux.conf`. `@plugin` list in their `.tmux.conf`.
If the plugin is on Github, your users will be able to use the shorthand of If the plugin is on GitHub, your users will be able to use the shorthand of
`github_username/repository`. `github_username/repository`.
### Conclusion ### Conclusion

View File

@ -85,12 +85,18 @@ find ~/.tmux -type d -name '.git*' -prune -o -type f -print0 | xargs -0 dos2unix
Related: [issue #67](https://github.com/tmux-plugins/tpm/issues/67) Related: [issue #67](https://github.com/tmux-plugins/tpm/issues/67)
This problem is because tmux's `run-shell` command runs a shell which doesn't read from user configs, thus tmux installed in `/usr/local/bin` will not be found. This problem is because tmux's `run-shell` command runs a shell which doesn't read from user configs, thus tmux installed in a brew prefix (e.g. `/usr/local/bin`) will not be found.
The solution is to insert the following line: The solution is to find your brew prefix
```sh
> echo "$(brew --prefix)/bin"
/opt/homebrew/bin
``` ```
set-environment -g PATH "/usr/local/bin:/bin:/usr/bin"
And prepend it to the `PATH` environment variable
```
set-environment -g PATH "/opt/homebrew/bin:/bin:/usr/bin"
``` ```
before any `run-shell`/`run` commands in `~/.tmux.conf`. before any `run-shell`/`run` commands in `~/.tmux.conf`.

View File

@ -26,7 +26,7 @@ clone() {
# tries cloning: # tries cloning:
# 1. plugin name directly - works if it's a valid git url # 1. plugin name directly - works if it's a valid git url
# 2. expands the plugin name to point to a github repo and tries cloning again # 2. expands the plugin name to point to a GitHub repo and tries cloning again
clone_plugin() { clone_plugin() {
local plugin="$1" local plugin="$1"
local branch="$2" local branch="$2"

View File

@ -26,10 +26,15 @@ pull_changes() {
} }
update() { update() {
local plugin="$1" local plugin="$1" output
$(pull_changes "$plugin" > /dev/null 2>&1) && output=$(pull_changes "$plugin" 2>&1)
echo_ok " \"$plugin\" update success" || if (( $? == 0 )); then
echo_ok " \"$plugin\" update success"
echo_ok "$(echo "$output" | sed -e 's/^/ | /')"
else
echo_err " \"$plugin\" update fail" echo_err " \"$plugin\" update fail"
echo_err "$(echo "$output" | sed -e 's/^/ | /')"
fi
} }
update_all() { update_all() {