2

「brew uninstall python」でシステムから Python を削除したところ、突然 tmuxinator が動作しなくなりました。問題が Python の削除に関連しているかどうかはわかりません。

を入力~/.tmuxinatorして実行するとtmuxinator start myapp、得られる唯一の出力はFailed to parse config file. Please check your formatting.

これが私の .zshrc です (最後に tmuxinator.zsh をソースにする行があります~/.bin/tmuxinator.zsh):

export EDITOR="vim"

export PS1="%/$ "

# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh

# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="sunrise"

# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"

# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"

# Uncomment following line if you want red dots to be displayed while waiting for completion
# COMPLETION_WAITING_DOTS="true"

# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(osx git git-flow fabric groovy grails python)

# Aliases
alias github='cd ~/Desktop/Github'
alias l='ls'

# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -e
# End of lines configured by zsh-newuser-install

alias rvm=$HOME/.rvm/bin/rvm
source $ZSH/oh-my-zsh.sh

# Add RVM to PATH for scripting
export PATH="$PATH:$HOME/.rvm/bin"

# Tmuxinator Source
source ~/.bin/tmuxinator.zsh

私の問題のスクリーンショットは次のとおりです。 私の問題

上で述べたように、~/.bin/tmuxinator.szh は存在しません。

myapp で tmuxinator セッションを開始できるようにするにはどうすればよいですか?

編集:

myapp.yml以下にリストされているように、ファイル内の構文エラーを見つけることで、質問 (以下に記載) を解決しました。Sublime と Vim を切り替えたところ、Sublime には 4 つのスペースに相当するタブがあり、Vim には 2 つのスペースしか占めていないタブがあり、Tmuxinator がエラーをスローしました。下部の「Windows」セクションでエラーが発生しました。

~/.tmuxinator/myapp.yml

# ~/.tmuxinator/myapp.yml

name: myapp
root: ~/Desktop/myapp

# Optional tmux socket
# socket_name: foo

# Runs before everything. Use it to start daemons etc.
# pre: sudo /etc/rc.d/mysqld start

# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
# pre_window: rbenv shell 2.0.0-p247

# Pass command line options to tmux. Useful for specifying a different tmux.conf.
# tmux_options: -f ~/.tmux.mac.conf

# Change the command to call tmux.  This can be used by derivatives/wrappers like byobu.
# tmux_command: byobu

windows:
  - editor:
      layout: main-vertical
      panes:
        - vim
        - guard
  - zsh: 
  - vim: vim .
  - foreman: bundle exec foreman start
  - git: git pull
  - console: bundle exec rails console
  - server: bundle exec rails server
  - logs: tail -f log/development.log
4

1 に答える 1