Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mateimicu/tmux-aws-vault
aws-vault profile and time remaining in session
https://github.com/mateimicu/tmux-aws-vault
aws-vault bash shell statusbar tmux-plugins tmux-status
Last synced: about 2 months ago
JSON representation
aws-vault profile and time remaining in session
- Host: GitHub
- URL: https://github.com/mateimicu/tmux-aws-vault
- Owner: mateimicu
- Created: 2023-07-29T19:37:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-29T22:52:00.000Z (over 1 year ago)
- Last Synced: 2024-10-15T23:11:08.899Z (3 months ago)
- Topics: aws-vault, bash, shell, statusbar, tmux-plugins, tmux-status
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tmux aws-vault context
Show the current [aws-vault][aws-vault] context and how much time you have left in the current session.
This only works if you `aws-vault exec` before running `tmux`, so the tmux session inherits the environment variables.
If you run `aws-vault exec` inside `tmux` it won't be able to pick it up.## Installation
### Dependencies
This assumes that you have [aws-vault][aws-vault] installed and used the `exec` function.
### Installation with [Tmux Plugin Manager](https://github.com/tmux-plugins/tpm) (recommended)
Add plugin to the list of TPM plugins in `.tmux.conf`
set -g @plugin 'mateimicu/tmux-aws-vault'
Hit `prefix + I` to fetch the plugin and source it.
If format strings are added to `status-right` or `status-left` they should be visible, assuming you have the necessary dependencies.
### Manual Installation
Clone the repo:
$ git clone https://github.com/sudermanjr/tmux-kube ~/clone/path
Add this line to `~/.tmux.conf`
run-shell ~/clone/path
Reload TMUX environment:
$ tmux source ~/.tmux.conf
If format strings are added to `status-right` or `status-left` they should be visible, assuming you have the necessary dependencies.
## Usage
Add `#{aws_vault}`, or `#{aws_remaining_time}` to your status line to get current context info.
Basic Example:
set -g status-right '#{aws_vault}:#{aws_remaining_time}'
### Experiments
* [How to update the values for each window](./per-window-refresh.md
[aws-vault]: https://github.com/99designs/aws-vault