Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have installed zsh to my gnome terminal(Ubuntu 12.04). And they crashed on:

/home/xdsemx/.rvmrc:13: command not found: shopt
/home/xdsemx/.rvmrc:21: command not found: shopt
/home/xdsemx/.rvmrc:105: command not found: shopt
/etc/bash_completion:59: command not found: shopt
/etc/bash_completion:65: command not found: complete
/etc/bash_completion:72: command not found: complete
/etc/bash_completion:73: command not found: complete
/etc/bash_completion:74: command not found: complete
/etc/bash_completion:76: command not found: complete
/etc/bash_completion:77: command not found: complete
/etc/bash_completion:79: command not found: complete
/etc/bash_completion:80: command not found: complete
/etc/bash_completion:81: command not found: complete
/etc/bash_completion:82: command not found: complete
/etc/bash_completion:83: command not found: complete
/etc/bash_completion:84: command not found: complete
/etc/bash_completion:85: command not found: complete
/etc/bash_completion:86: command not found: complete
/etc/bash_completion:87: command not found: complete
/etc/bash_completion:88: command not found: complete
/etc/bash_completion:89: command not found: complete
/etc/bash_completion:90: command not found: complete
/etc/bash_completion:91: command not found: complete
/etc/bash_completion:92: command not found: complete
/etc/bash_completion:93: command not found: complete
/etc/bash_completion:94: command not found: complete
/etc/bash_completion:95: command not found: complete
/etc/bash_completion:96: command not found: complete
/etc/bash_completion:97: command not found: complete
/etc/bash_completion:98: command not found: complete
/etc/bash_completion:99: command not found: complete
/etc/bash_completion:100: command not found: complete
/etc/bash_completion:101: command not found: complete
/etc/bash_completion:102: command not found: complete
/etc/bash_completion:103: command not found: complete
/etc/bash_completion:104: command not found: complete
/etc/bash_completion:105: command not found: complete
/etc/bash_completion:106: command not found: complete
/etc/bash_completion:107: command not found: complete
/etc/bash_completion:108: command not found: complete
/etc/bash_completion:110: command not found: complete
/etc/bash_completion:111: command not found: complete
/etc/bash_completion:112: command not found: complete
/etc/bash_completion:113: command not found: complete
/etc/bash_completion:114: command not found: complete
/etc/bash_completion:115: command not found: complete
/etc/bash_completion:116: command not found: complete
/etc/bash_completion:117: command not found: complete
/etc/bash_completion:118: command not found: complete
/etc/bash_completion:119: command not found: complete
/etc/bash_completion:120: command not found: complete
/etc/bash_completion:121: command not found: complete
/etc/bash_completion:122: command not found: complete
/etc/bash_completion:123: command not found: complete
/etc/bash_completion:124: command not found: complete
/etc/bash_completion:125: command not found: complete
/etc/bash_completion:126: command not found: complete
/etc/bash_completion:132: command not found: complete
/etc/bash_completion:135: command not found: complete
/etc/bash_completion:138: command not found: complete
/etc/bash_completion:141: command not found: complete
/etc/bash_completion:144: command not found: complete
/etc/bash_completion:147: command not found: complete
/etc/bash_completion:150: command not found: complete
/etc/bash_completion:153: command not found: complete
/etc/bash_completion:156: command not found: complete
/etc/bash_completion:159: command not found: complete
/etc/bash_completion:162: command not found: complete
/etc/bash_completion:246: parse error near `]]'
/home/xdsemx/.rvmrc:13: command not found: shopt
/home/xdsemx/.rvmrc:21: command not found: shopt
/home/xdsemx/.rvmrc:105: command not found: shopt
/etc/bash_completion:59: command not found: shopt
/etc/bash_completion:65: command not found: complete
/etc/bash_completion:72: command not found: complete
/etc/bash_completion:73: command not found: complete
/etc/bash_completion:74: command not found: complete
/etc/bash_completion:76: command not found: complete
/etc/bash_completion:77: command not found: complete
/etc/bash_completion:79: command not found: complete
/etc/bash_completion:80: command not found: complete
/etc/bash_completion:81: command not found: complete
/etc/bash_completion:82: command not found: complete
/etc/bash_completion:83: command not found: complete
/etc/bash_completion:84: command not found: complete
/etc/bash_completion:85: command not found: complete
/etc/bash_completion:86: command not found: complete
/etc/bash_completion:87: command not found: complete
/etc/bash_completion:88: command not found: complete
/etc/bash_completion:89: command not found: complete
/etc/bash_completion:90: command not found: complete
/etc/bash_completion:91: command not found: complete
/etc/bash_completion:92: command not found: complete
/etc/bash_completion:93: command not found: complete
/etc/bash_completion:94: command not found: complete
/etc/bash_completion:95: command not found: complete
/etc/bash_completion:96: command not found: complete
/etc/bash_completion:97: command not found: complete
/etc/bash_completion:98: command not found: complete
/etc/bash_completion:99: command not found: complete
/etc/bash_completion:100: command not found: complete
/etc/bash_completion:101: command not found: complete
/etc/bash_completion:102: command not found: complete
/etc/bash_completion:103: command not found: complete
/etc/bash_completion:104: command not found: complete
/etc/bash_completion:105: command not found: complete
/etc/bash_completion:106: command not found: complete
/etc/bash_completion:107: command not found: complete
/etc/bash_completion:108: command not found: complete
/etc/bash_completion:110: command not found: complete
/etc/bash_completion:111: command not found: complete
/etc/bash_completion:112: command not found: complete
/etc/bash_completion:113: command not found: complete
/etc/bash_completion:114: command not found: complete
/etc/bash_completion:115: command not found: complete
/etc/bash_completion:116: command not found: complete
/etc/bash_completion:117: command not found: complete
/etc/bash_completion:118: command not found: complete
/etc/bash_completion:119: command not found: complete
/etc/bash_completion:120: command not found: complete
/etc/bash_completion:121: command not found: complete
/etc/bash_completion:122: command not found: complete
/etc/bash_completion:123: command not found: complete
/etc/bash_completion:124: command not found: complete
/etc/bash_completion:125: command not found: complete
/etc/bash_completion:126: command not found: complete
/etc/bash_completion:132: command not found: complete
/etc/bash_completion:135: command not found: complete
/etc/bash_completion:138: command not found: complete
/etc/bash_completion:141: command not found: complete
/etc/bash_completion:144: command not found: complete
/etc/bash_completion:147: command not found: complete
/etc/bash_completion:150: command not found: complete
/etc/bash_completion:153: command not found: complete
/etc/bash_completion:156: command not found: complete
/etc/bash_completion:159: command not found: complete
/etc/bash_completion:162: command not found: complete
/etc/bash_completion:246: parse error near `]]'
/home/xdsemx/.rvmrc:13: command not found: shopt
/home/xdsemx/.rvmrc:21: command not found: shopt
/home/xdsemx/.rvmrc:105: command not found: shopt
/etc/bash_completion:59: command not found: shopt
/etc/bash_completion:65: command not found: complete
/etc/bash_completion:72: command not found: complete
/etc/bash_completion:73: command not found: complete
/etc/bash_completion:74: command not found: complete
/etc/bash_completion:76: command not found: complete
/etc/bash_completion:77: command not found: complete
/etc/bash_completion:79: command not found: complete
/etc/bash_completion:80: command not found: complete
/etc/bash_completion:81: command not found: complete
/etc/bash_completion:82: command not found: complete
/etc/bash_completion:83: command not found: complete
/etc/bash_completion:84: command not found: complete
/etc/bash_completion:85: command not found: complete
/etc/bash_completion:86: command not found: complete
/etc/bash_completion:87: command not found: complete
/etc/bash_completion:88: command not found: complete
/etc/bash_completion:89: command not found: complete
/etc/bash_completion:90: command not found: complete
/etc/bash_completion:91: command not found: complete
/etc/bash_completion:92: command not found: complete
/etc/bash_completion:93: command not found: complete
/etc/bash_completion:94: command not found: complete
/etc/bash_completion:95: command not found: complete
/etc/bash_completion:96: command not found: complete
/etc/bash_completion:97: command not found: complete
/etc/bash_completion:98: command not found: complete
/etc/bash_completion:99: command not found: complete
/etc/bash_completion:100: command not found: complete
/etc/bash_completion:101: command not found: complete
/etc/bash_completion:102: command not found: complete
/etc/bash_completion:103: command not found: complete
/etc/bash_completion:104: command not found: complete
/etc/bash_completion:105: command not found: complete
/etc/bash_completion:106: command not found: complete
/etc/bash_completion:107: command not found: complete
/etc/bash_completion:108: command not found: complete
/etc/bash_completion:110: command not found: complete
/etc/bash_completion:111: command not found: complete
/etc/bash_completion:112: command not found: complete
/etc/bash_completion:113: command not found: complete
/etc/bash_completion:114: command not found: complete
/etc/bash_completion:115: command not found: complete
/etc/bash_completion:116: command not found: complete
/etc/bash_completion:117: command not found: complete
/etc/bash_completion:118: command not found: complete
/etc/bash_completion:119: command not found: complete
/etc/bash_completion:120: command not found: complete
/etc/bash_completion:121: command not found: complete
/etc/bash_completion:122: command not found: complete
/etc/bash_completion:123: command not found: complete
/etc/bash_completion:124: command not found: complete
/etc/bash_completion:125: command not found: complete
/etc/bash_completion:126: command not found: complete
/etc/bash_completion:132: command not found: complete
/etc/bash_completion:135: command not found: complete
/etc/bash_completion:138: command not found: complete
/etc/bash_completion:141: command not found: complete
/etc/bash_completion:144: command not found: complete
/etc/bash_completion:147: command not found: complete
/etc/bash_completion:150: command not found: complete
/etc/bash_completion:153: command not found: complete
/etc/bash_completion:156: command not found: complete
/etc/bash_completion:159: command not found: complete
/etc/bash_completion:162: command not found: complete
/etc/bash_completion:246: parse error near `]]' 

I tried http://superuser.com/questions/391081/load-rvm-environment-in-screen-and-zsh but they doesnt works

My .zshrc file:

# 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="agnoster"

# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"

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

# Comment this out to disable bi-weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"

# Uncomment to change how often before auto-updates occur? (in days)
# export UPDATE_ZSH_DAYS=13

# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"

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

# Uncomment following line if you want to disable command autocorrection
# DISABLE_CORRECTION="true"

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

# Uncomment following line if you want to disable marking untracked files under
# VCS as dirty. This makes repository status check for large repositories much,
# much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="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=(git)

source $ZSH/oh-my-zsh.sh

# Customize to your needs...
share|improve this question
1  
Why are you sourcing bash_completion from zsh? zsh has its own way of doing completion. –  geirha Jul 26 '13 at 8:43
    
I don't know, really. Bash_completion starts with gnome-terminal and write this errors –  xdsemx Jul 26 '13 at 8:45
1  
You should probably provide the relevant files too, such as your .zshrc. Otherwise, you leave the answerers guessing, which usually doesn't yield good answers. –  geirha Jul 26 '13 at 8:47
    
geirha, I used oh-my-zsh with default .zshrc. Nothing else –  xdsemx Jul 26 '13 at 8:49
    
What is on line 13 and 21 in your .rvmrc? –  qbi Oct 17 '13 at 10:05
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.