Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get rid of arrow from start of prompt #5088

Closed
snowe2010 opened this issue May 13, 2016 · 4 comments

Comments

@snowe2010
Copy link

commented May 13, 2016

I have an arrow at the start of every single prompt I try to use, and I can't figure out how to get rid of it. I don't know what is causing it, as I'm just using default themes. I'm not sure how to debug it.

You can see it in the image, as the blue arrow, it turns red when a command fails.

image

@mcornella

This comment has been minimized.

Copy link
Collaborator

commented May 14, 2016

Please post your zshrc file and the bira theme you're using in case you modified it.

@snowe2010

This comment has been minimized.

Copy link
Author

commented May 17, 2016

I haven't modified any themes, it happens with every theme no matter which I use. Here is my .zshrc

# Path to your oh-my-zsh installation.
export ZSH=/Users/tylerthrailkill/.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="awesomepanda"
#ZSH_THEME="bira"

# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"

# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"

# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13

# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"

# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"

# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"

# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"

# Uncomment the 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"

# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy"

# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder

# 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)
# Add wisely, as too many plugins slow down shell startup.
plugins=(brew bundler colorize common-aliases fancy-ctrl-z git git-flow git-prompt gitfast grunt gulp jsontools lol mvn nyan spring sublime thefuck themes)

# User configuration
export JAVA_HOME=$(/usr/libexec/java_home)

# Maven Configuration
export M2_HOME=~/Applications/ActiveVersions/Maven
#export MAVEN_OPTS='-Xmx1024m -Djava.security.egd=file:/dev/./urandom'

# Gradle Configuration
export GRADLE_HOME=~/Applications/ActiveVersions/Gradle

# Docker Configuration

# Kafka Configuration
# export KAFKA_HOME=~/Applications/ActiveVersions/Kafka

# WebDriver Configuration
export PHANTOM_JS=~/Applications/ActiveVersions/PhantomJS

# ** Terminal Preference and Configuration **



export PATH="$M2_HOME/bin:$GRADLE_HOME/bin:$PHANTOM_JS/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
# export MANPATH="/usr/local/man:$MANPATH"

source $ZSH/oh-my-zsh.sh

# You may need to manually set your language environment
# export LANG=en_US.UTF-8

# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
#   export EDITOR='vim'
# else
#   export EDITOR='mvim'
# fi

# Compilation flags
# export ARCHFLAGS="-arch x86_64"

# ssh
# export SSH_KEY_PATH="~/.ssh/dsa_id"

# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"

#Add the following line to your ~/.bash_profile or ~/.zshrc file (and remember
#to source the file to update your current session):
  [[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]] && . $(brew --prefix)/etc/profile.d/autojump.sh

#If you use the Fish shell then add the following line to your ~/.config/fish/config.fish:
#  [ -f /usr/local/share/autojump/autojump.fish ]; and . /usr/local/share/autojump/autojump.fish

eval $(thefuck --alias)
DISABLE_UPDATE_PROMPT=true

test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"

alias findextension="find . -type f -name "
alias deleteextension="find . -type f -delete -name "
eval "$(rbenv init -)"
alias history=history
alias ms="mvn spring-boot:run"
alias mci="mvn clean install"

source ~/git-completion.bash

dock() {
  docker-machine start;
  docker-machine env;
  eval $(docker-machine env);
  docker-compose up;
}
dock-stop() {
  docker-machine stop;
}

PATH=$PATH:/usr/local/sbin

Also, I'm not sure if it matters, but I'm using Mac El Capitan

@apjanke

This comment has been minimized.

Copy link
Contributor

commented May 24, 2016

That doesn't look like a character that OMZ itself is printing, but a prompt decoration displayed by the terminal, like El Capitan's Terminal.app, or the new iTerm2 version 3 beta. (This one in particular looks like the beta iTerm 3's "Marks" feature.)

What terminal emulator are you using? If it's iTerm, you can turn it off by going in to Preferences > Profiles > (your profile) > Terminal, scroll down to "Shell Integration", and turn off "Show mark indicators".

Mark indicators may only be shown with some themes, because (I think) it's up to the prompt string, which is controlled by the theme, to emit a terminal control sequence indicating the start of a command prompt. This lets the terminal ensure that the prompt is displayed on a new line.

@snowe2010

This comment has been minimized.

Copy link
Author

commented Jun 6, 2016

AH fantastic. It was iTerm's Marks feature. I didn't even think of iTerm. I guess the next thing for me to figure out is why the prompt is disappearing at some points. I'm betting that's iTerm also. Thank you a lot @apjanke!

@snowe2010 snowe2010 closed this Jun 6, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.