ramiroaraujo / alfred-tmux-workflow Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Very nice workflow :)
Perhaps one nice addition would be to add support for wrapper scripts like tmx (here's my version: https://github.com/WoLpH/dotfiles/blob/master/bin/tmx) which automatically launches a new tmux session and activates your environment.
Currently I'm just using it from the shell with this little zsh completion script to save me some typing:
#compdef tmx
local active_sessions all_sessions
_active_sessions() {
if [ -n "$(tmux ls 2>/dev/null)" ]; then
active_sessions=($(tmux ls | awk -F ':' '{print $1}' | tr '\n' ' '))
fi
}
_all_sessions() {
[ -d ~/workspace ] && all_sessions=($(ls -1 ~/workspace | sed -e 's/\.sparseimage.*//' | grep -v '\.' | grep -iE '[a-z0-9]*'))
}
_active_sessions
_wanted active_sessions expl 'Active sessions' compadd -a active_sessions
_all_sessions
_wanted all_sessions expl 'All sessions' compadd -a all_sessions
I receive the following when using this workflow after switching to iTerm2 nightly builds as these include a feature to open new terminals in windows instead of tabs.
[ERROR: alfred.workflow.action.script] Code 0: open_tmux_session.scpt:410:418: script error: Expected class name but found identifier. (-2741)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.