Commit Graph

72 Commits

Author SHA1 Message Date
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
yasudanaoya 49c51f3774 fix: github to GitHub 2022-01-01 17:49:21 +09:00
Bruno Sutic 693e5a2a0f
Style fix 2021-08-14 11:00:04 +02:00
laggardkernel f9d3c542cd Remove hardcoding default branch as "master"
Default branch of repo could be "master", "main" or any names.
Stop hardcoding "master" as the default to clone and let "git"
decide it automatically.
2021-08-14 15:41:26 +08:00
Rafał Rothenberger e019ff1fe9
Merge branch 'master' into add-branch-to-plugin 2021-06-29 09:03:20 +02:00
Bruno Sutic 2afeff1529
Add 'HELPERS_DIR' variable to tmux_utils.sh 2021-03-15 11:50:50 +01:00
Bruno Sutic 0a19b28b4e
Remove `CURRENT_DIR` variable from a helper script
Fixes #200
2021-03-15 11:42:37 +01:00
Edgar Handal f79c59314c Fix hardcoded tmux.conf path in environment reload 2021-02-22 19:59:32 -06:00
Gregory Pakosz 788f5d68af Add support for 'source-file -q', fixes #135
Starting from tmux 2.3, 'source-file' understands '-q' to suppress errors for
nonexistent files.
2020-02-28 14:12:51 +01:00
Geoffrey Frogeye 7c3a16e243
Default value for XDG_CONFIG_HOME 2019-07-16 20:58:31 +02:00
Rafał Rothenberger fe5e13152a add branch support 2019-05-19 23:26:00 +02:00
Thore Weilbier 0e46b92aba
Remove _CONFIG_LOCATION variable again.
It has been decided that this feature should been removed until it will be requested.
2018-11-07 09:31:21 +01:00
Thore Weilbier 206ded75d8
Restore tabs instead of spaces for indentation. 2018-11-04 11:19:28 +01:00
Thore Weilbier 2c4a2dfd65
Add flexible tmux configuration load function.
Add function `_get_user_tmux_conf` to helper script `plugin_functions`.
Function is searching for the users tmux configuration on multiple
places by a prioritized order.
The response is used within`_tmux_conf_contents` to read in the content
as normally.
Add new environment variable `TMUX_PLUGIN_MANAGER_CONFIG_LOCATION` which
is optional to be defined.
If so it has the highest priority to be loaded, despite if the file
exist or not.
XDG directory support has been added as well by the second priority
location at `$XDG_CONFIG_HOME/tmux/tmux.conf`.
2018-11-02 13:07:53 +01:00
Graham McGregor 1579534c2e Prevent clean_plugins from deleting root
If tmux was not yet configured to initialize the Tmux Plugin Manager,
the variable for the plugin home was not being set. This was resulting
in a `rm -rf /` which is pretty nuclear.

Fixes: https://github.com/tmux-plugins/tpm/issues/58
2016-12-03 12:06:29 -05:00
Graham McGregor 9e082ff1b3 Update plugins in parallel 2016-11-12 15:20:08 -05:00
JackDrogon a44cab3fcf Fix plugin line start with tab problem 2016-02-01 14:41:50 +08:00
Bruno Sutic 620f06c524
Undeprecate 'set -g @tpm_plugins' 2015-12-14 01:22:40 +01:00
Treri a6e34acf0e match 'set-option -g @plugin' and 'set -g @plugin' 2015-09-08 16:38:15 +08:00
Bruno Sutic bfc7a2c2cb
Bugfix: `Escape` quits tpm with emacs copy mode
Fixes #43, closes #45
2015-08-04 17:20:03 +02:00
Bruno Sutic d70df24051
Support plugin definition in sourced files 2015-08-03 23:01:22 +02:00
Bruno Sutic 9be7f975e9
Move all helpers to 'helpers/' dir 2015-08-03 17:56:45 +02:00
Bruno Sutic 0e9b64ffc4
Stop using global variable for tpm path 2015-08-03 15:30:19 +02:00
Bruno Sutic 79d90f90f7
Refactor 'tpm' script 2015-08-03 15:20:40 +02:00
Bruno Sutic 169e1b2e88
Refactor 'source_plugins' script 2015-08-03 15:19:03 +02:00
Bruno Sutic 5adc9a987f
Helper functions refactoring 2015-08-03 15:17:07 +02:00
Bruno Sutic 516a6ea4c4
Tmux echo function rename 2015-08-03 01:25:51 +02:00
Bruno Sutic 3347871a03
Update plugins bugfix 2015-08-03 01:22:06 +02:00
Bruno Sutic 44f9dd2719
Remove unused function 2015-08-03 01:16:56 +02:00
Bruno Sutic 0f0d9adb06
Refactor how TPM path is set 2015-08-03 01:11:39 +02:00
Bruno Sutic cd97b4bceb
TPM path refactoring 2015-08-03 00:59:13 +02:00
Bruno Sutic d7d269381e
Move stuff to 'scripts/variables.sh' 2015-08-03 00:43:59 +02:00
Bruno Sutic 9794997b6b
Variable quoting war 2015-08-03 00:42:03 +02:00
Bruno Sutic 19da205b0b
Enable removing plugins via CLI executable 2015-08-03 00:33:38 +02:00
Bruno Sutic 7ff8de38a4
Enable updating plugins via cli executable 2015-08-02 12:56:44 +02:00
Bruno Sutic 274098a029
Small refactor 2015-08-01 18:16:17 +02:00
Bruno Sutic 58877eea8d
Correct errors in bin/install_plugins output 2015-08-01 18:14:05 +02:00
Bruno Sutic 40ba8e58dc
Enable installing plugins via cli executable 2015-08-01 18:14:04 +02:00
Bruno Sutic a51fb24f62
Extract 'ensure_tpm_path_exists' function 2015-08-01 18:14:04 +02:00
Ilya Terentyev f4d920362c Check write permissions to plugin folder
During plugin installation, check if required write permissions are in
place; if the sanity check fails, warn the user. This is a squash
4-in-1 commit.
2015-07-23 19:57:04 +03:00
Bruno Sutic 240a497a35
Refactoring 2015-07-07 18:50:55 +02:00
Bruno Sutic a5c030d261
Clean out 2015-07-07 02:26:02 +02:00
Bruno Sutic 7ce0326916
New and old plugin syntax work together 2015-07-07 01:04:26 +02:00
Bruno Sutic 6a5784433b
`TMUX_PLUGIN_MANAGER_PATH` always has trailng slash
If the trailing slash character is not there it causes issues when
installing plugins.

Closes #38
2015-07-07 00:22:47 +02:00
Bruno Sutic 57e36cde13
Uups, fix last commit 2015-06-03 01:46:35 +02:00
Bruno Sutic e19b7689e0
Permit leading whitespace with new plugin definition syntax 2015-06-03 01:34:50 +02:00
Bruno Sutic 583e447d33
Use `-g` in new plugin definition syntax
When tmux options are used without `-g` tmux complains on startup.
2015-06-02 23:27:22 +02:00
Javier Lopez 445be1eede add bundle style plugin definition 2015-06-02 22:20:50 +02:00
Javier Lopez 7a2614d850 change default uninstall/clean keybinding to prefix + alt +u 2015-05-27 13:35:38 -05:00
Javier Lopez 2d5ecdbe4a add removal procedure 2015-05-26 22:46:15 -05:00