Created
February 24, 2017 07:25
-
-
Save anddam/26574dec4b8b4952898d1e4c58885b26 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tmuxa | |
Traceback (most recent call last): | |
File "/home/anddam/.local/lib/python3.5/site-packages/xonsh/__amalgam__.py", line 12437, in run | |
r = self.f(self.args, sp_stdin, sp_stdout, sp_stderr, spec) | |
File "/home/anddam/.local/lib/python3.5/site-packages/xonsh/__amalgam__.py", line 12266, in proxy_two | |
return f(args, stdin) | |
File "/home/anddam/.xonshrc", line 30, in _tmuxa | |
![tmux attach] || ![tmux new-session] | |
File "/home/anddam/.local/lib/python3.5/site-packages/xonsh/__amalgam__.py", line 18340, in subproc_captured_hiddenobject | |
return run_subproc(cmds, captured='hiddenobject') | |
File "/home/anddam/.local/lib/python3.5/site-packages/xonsh/__amalgam__.py", line 18281, in run_subproc | |
command = HiddenCommandPipeline(specs) | |
File "/home/anddam/.local/lib/python3.5/site-packages/xonsh/__amalgam__.py", line 12859, in __init__ | |
if update_fg_process_group(pipeline_group, background): | |
File "/home/anddam/.local/lib/python3.5/site-packages/xonsh/__amalgam__.py", line 12795, in update_fg_process_group | |
return give_terminal_to(pipeline_group) | |
File "/home/anddam/.local/lib/python3.5/site-packages/xonsh/__amalgam__.py", line 8901, in give_terminal_to | |
os.tcsetpgrp(sys.stderr.fileno(), pgid) | |
OSError: [Errno 25] Inappropriate ioctl for device | |
no sessions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Aliases | |
def _tmuxa(args, stdin=None): | |
"Attach to existing tmux session or create a new one" | |
if len(args) > 0: | |
![tmux attach -t @(args[0])] || ![tmux new-session -s @(args[0])] | |
else: | |
![tmux attach] || ![tmux new-session] | |
aliases['tmuxa'] = _tmuxa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment