ohmyzsh: osx zsh has problem of the cursor postiion in long line
on the osx. if i have a commend which more than one line, the zsh should have problem wwith the cursor postion.
example 1:
tyw@CosHiM-MAC:~|⇒ 1234567890123456789012345678901234567890123456789012345678901234567890123
zsh: command not found: 1234567890123456789012345678901234567890123456789012345678901234567890123
tyw@CosHiM-MAC:~|⇒ 12345678901234567890123456789012345678901234567xxxx9012345678901234567890123
zsh: command not found: 123456789012345678901234567890123456789012345678xxxx9012345678901234567890123
i just add some xxxx on the position of 8, the terminal show 8901234567xxxx90123456
however, the real command is 12345678xxxx901234567.
example 2:
tyw@CosHiM-MAC:Google Drive/CXLine_Operations/Issues|⇒ wget http://nginx.org/dwnload/nginx-1.5.1.tar.gz
i would like to download nginx, the real address is http://nginx.org/download/nginx-1.5.1.tar.gz, but it shows http://nginx.org/dwnload/nginx-1.5.1.tar.gz on zsh.
and this cursor position problem make me very different to edit my long command.
myzsh config:
# 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='pygmalion'
# 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 weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# 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 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=(git osx autojump brew python history )
source $ZSH/oh-my-zsh.sh
alias vi=vim
alias ls="ls -G"
alias mv="mv -i"
alias cp="cp -i"
alias rm="rm -i"
alias run="source"
alias ll="ls -lsah"
LC_CTYPE=en_US.UTF-8
source $HOME/.my_config/shellrc
source $HOME/.my_config/shellcolor
# Customize to your needs...
export PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 15 (9 by maintainers)
I thought you where gonna make a haiku there 😂