You are not logged in.
Hi everyone. I have done some searching for what this could be, but I don't seem to be finding anything helpful.
Long and short of it:
I'm accustomed to using ctrl+a to go to the beginning of the line and ctrl+e to go to the end of the line. On my system any
CTRL + [key]
combination results in
^[key]
Once this has happened, the text also appears highligted, and sometimes it causes the backspace key not to work. After using delete and hitting return backspace works fine.
Is this just a key configuration issue somewhere?
Thanks!
Last edited by iterator (2015-04-21 18:22:37)
Offline
Which terminal are you using and what is the value of $TERM? Are you exporting that variable anywhere in your bash initialisation files?
Offline
I am just using gnome-terminal from the repository.
echo $TERM gives me
xterm-256color
And I have installed and am using zsh for my shell.
.zshrc:
# The following lines were added by compinstall
zstyle ':completion:*' completer _expand _complete _ignored
zstyle ':completion:*' matcher-list ''
zstyle :compinstall filename '/home/ahrtmn/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -v
# End of lines configured by zsh-newuser-install
# Path variables
export PATH=$PATH:/opt/bin:/opt/jdk1.8.0_45
export JDK_HOME=/opt/jdk1.8.0_45
Although I don't think it matters, here is the .bashrc:
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
export PATH=$PATH:/opt/bin
Thanks for the response!
Offline
Ctrl-a and Ctrl-e are readline bindings (in Emacs mode); Zsh uses zle.
Offline
Yep. Changing it to bindkey -e solved the issue.
For some reason I've always used vi, but I've never become too proficient at it. I suppose I should make a choice between vi and emacs and learn more of the feature set. Coming from a mac laptop as my main computer, the home and end keys just seem soooo farr awayy. Ha.
Thank you!!
Offline
No problem. Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline