Comments (8)
Interesting. What tmux version are you using? What shell and what version?
from tmux-complete.vim.
Line 20 of sh/tmuxcomplete is broken. You don't want the [
and ]
. I guess the used shell does not support &>
for redirection, thus it ends the command at the &
and runs the command in background. The [
command does not get the ]
as parameter, and it prints an error. Meanwhile the shell continues to execute ]
which it cannot find and prints the error here shown first.
from tmux-complete.vim.
system environment:
OS: ubuntu 14.04LTS
Gnome terminal: 3.6.2
bash:
[login] kevin@kevin-pc: ~
$ bash -version
GNU bash, version 4.3.8(1)-release (i686-pc-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
tmux:
$ tmux -V
tmux 1.8
@wellle @ferreum thanks for your reply and the plugin is so amazing.
from tmux-complete.vim.
@ferreum: Thanks, I'll try to get rid of &>
and possibly [
and ]
. Or do you already know a clean and portable way to fix this?
from tmux-complete.vim.
Why not just change the shebang to #!/bin/bash
?
Anyways, I've tested the script on ubuntu 12+ which uses dash for /bin/sh
, so I don't think portability is the problem.
from tmux-complete.vim.
Oh guess what? I had a local modification from long ago (which I forgot to send a PR for) that removed the [
and ]
, so that's why it was working for me. 💩
do you already know a clean and portable way to fix this?
I recommend just removing the [
and ]
. There's nothing wrong with the &>
.
from tmux-complete.vim.
@kevin4fly: It should be fixed now, please try again.
@ferreum @justinmk: Thanks for the help. I removed [
, ]
and &>
in #44. According to [1] using 2>&1
seems to be the most portable way.
[1] Redirect both stderr and stdout to /dev/null with /bin/sh
from tmux-complete.vim.
it gets fixed, thanks!
from tmux-complete.vim.
Related Issues (20)
- gvim support HOT 1
- License? HOT 1
- New release tag HOT 1
- tmux-complete 0.1.0 not working with neocomplete HOT 16
- hangs in osx HOT 5
- Strange behaviour HOT 5
- Integrate w/ deoplete? HOT 9
- tmux-complete outputs 'No tmux found' completion if no tmux instance is running HOT 3
- Flickering with deoplete HOT 3
- Cannot leave insert mode HOT 4
- Complete from all windows and all panes? HOT 4
- Provide an async api to work with other plugin like asyncomplete.vim HOT 9
- deoplete source: use async functionality HOT 3
- Trigger setting for coc? HOT 5
- deoplete source: expose relevant asynccomplete configuration options
- use allowlist for asyncomplete
- CoC specify suggest.completionItemKindLabels for Tmux source
- Only Completion for adjacent tmux panes
- Integrate with nvim-cmp
- Feature suggestion: copy all visible lines in specified tmux pane to buffer (I included a working implemention as example)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmux-complete.vim.