我的bash无法识别tmuxinator命令

时间:2018-07-23 14:51:48

标签: rubygems cygwin tmux mux tmuxinator

我已使用following指令将tmuxinator安装到cygwin中。还有像there的红宝石。整个安装成功,但是如果我运行tmuxinator,则会出现以下错误:

╔═xakep ▷ DESKTOP-FOIFIIK:[~]:
╚> gem list

*** LOCAL GEMS ***

builder (3.2.3)
did_you_mean (1.0.2)
erubis (2.7.0)
minitest (5.10.3)
psych (2.2.4)
rake (12.1.0)
rdoc (5.1.0)
thor (0.20.0)
tmuxinator (0.12.0)
xdg (2.2.3)
╔═xakep ▷ DESKTOP-FOIFIIK:[~]:
╚> tmuxinator
-bash: tmuxinator: command not found

更新

我在路径中没有找到tmuxinator,但是我不知道应该添加哪个路径。

所有这些都在我的Cygwin中运行,我检查了一些人员和版本:

╔═xakep ▷ DESKTOP-FOIFIIK:[~]:
╚> echo $SHELL
/bin/bash
╔═xakep ▷ DESKTOP-FOIFIIK:[~]:
╚> echo $EDITOR
vim
╔═xakep ▷ DESKTOP-FOIFIIK:[~]:
╚> ruby -v
ruby 2.3.6p384 (2017-12-14 revision 9808) [x86_64-cygwin]
last_commit=ruby 2.3.3
╔═xakep ▷ DESKTOP-FOIFIIK:[~]:
╚> tmux -V
tmux 2.6
╔═xakep ▷ DESKTOP-FOIFIIK:[~]:
╚> gem --version
2.6.13

然后我尝试运行gem list输出中的另一个宝石,我得到了:

╔═xakep ▷ DESKTOP-FOIFIIK:[~]:
╚> psych
-bash: psych: command not found
╔═xakep ▷ DESKTOP-FOIFIIK:[~]:
╚> builder
-bash: builder: command not found
╔═xakep ▷ DESKTOP-FOIFIIK:[~]:
╚> erubis
-bash: erubis: command not found
╔═xakep ▷ DESKTOP-FOIFIIK:[~]:
╚> did_you_mean
-bash: did_you_mean: command not found
╔═xakep ▷ DESKTOP-FOIFIIK:[~]:
╚> rake
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/usr/share/gems/gems/rake-12.1.0/exe/rake:27:in `<top (required)>'
(See full trace by running task with --trace)
╔═xakep ▷ DESKTOP-FOIFIIK:[~]:
╚> rdoc
uh-oh! RDoc had a problem:
cannot load such file -- io/console/size

run with --debug for full backtrace
╔═xakep ▷ DESKTOP-FOIFIIK:[~]:
╚> thor
-bash: thor: command not found
╔═xakep ▷ DESKTOP-FOIFIIK:[~]:
╚> xdg
-bash: xdg: command not found

似乎我的外壳只能识别rakerdoc

1 个答案:

答案 0 :(得分:0)

我在主目录中创建了一个文件夹.bin,然后在其中复制了文件tmuxinator
并通过将/home/xakep/.bin添加到我的$PATH Thx @varro

中来进行修复
╔═xakep ▷ khashashin:[~]:
╚> export PATH=$PATH:/home/xakep/.bin

现在可以使用!

╔═xakep ▷ khashashin:[~]:
╚> tmuxinator
tmuxinator commands:
  tmuxinator commands                          # Lists commands available in tmuxinator
  tmuxinator completions [arg1 arg2]           # Used for shell completion
  tmuxinator copy [EXISTING] [NEW]             # Copy an existing project to a new project and open it in your editor
  tmuxinator debug [PROJECT] [ARGS]            # Output the shell commands that are generated by tmuxinator
  tmuxinator delete [PROJECT1] [PROJECT2] ...  # Deletes given project
  tmuxinator doctor                            # Look for problems in your configuration
  tmuxinator help [COMMAND]                    # Describe available commands or one specific command
  tmuxinator implode                           # Deletes all tmuxinator projects
  tmuxinator list                              # Lists all tmuxinator projects
  tmuxinator local                             # Start a tmux session using ./.tmuxinator.yml
  tmuxinator new [PROJECT] [SESSION]           # Create a new project file and open it in your editor
  tmuxinator start [PROJECT] [ARGS]            # Start a tmux session using a project's name (with an optional [ALIAS] for project reuse) or a path to a project config file (via the -p flag)
  tmuxinator stop [PROJECT]                    # Stop a tmux session using a project's tmuxinator config
  tmuxinator version                           # Display installed tmuxinator version