Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-24-2011, 05:08 AM   #1
Mr. Alex
Senior Member
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Question Dollar sign in zsh

I was searching in Google but couldn't find an answer. I got used to "$" in bash as a regular user, but in zsh it's "%". Is there any possibility to change % to $ in zsh for regular user?
Old 01-24-2011, 05:54 AM   #2
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
You might have a look here. Maybe it's bindkey you're looking for.
Key Bindings

Zsh doesn't use readline, instead it uses its own and more powerful zle. It doesn't read /etc/inputrc or ~/.inputrc. zle has an emacs mode and a vi mode. By default, it tries to guess whether you want emacs or vi keys from the $EDITOR environment variable. If it's empty, it will default to emacs. You can change this with bindkey -v or bindkey -e.

To get some special keys working:
File: ~/.zshrc

bindkey "\e[1~" beginning-of-line # Home
bindkey "\e[4~" end-of-line # End
bindkey "\e[5~" beginning-of-history # PageUp
etc. etc. etc.
Old 01-24-2011, 06:20 AM   #3
Mr. Alex
Senior Member
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
I was talking about a symbol in prompt, not hot keys...
Old 01-24-2011, 11:48 AM   #4
Senior Member
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,256

Rep: Reputation: 1421Reputation: 1421Reputation: 1421Reputation: 1421Reputation: 1421Reputation: 1421Reputation: 1421Reputation: 1421Reputation: 1421Reputation: 1421
An Introduction to the Z Shell: Prompting

1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making grep find files containing '$' (the dollar sign char). stf92 Linux - Newbie 9 12-08-2010 12:16 PM
Is bottom dollar really the best deal? Dogs General 20 05-19-2010 07:49 PM
Hardware performance per dollar hbar Linux - Hardware 1 08-16-2008 05:44 PM
The Value of a Dollar (PSA) taylor_venable General 3 03-23-2007 05:01 AM
sign on invisible in gaim - NOT invi after sign on saravkrish Linux - Software 7 09-12-2005 11:55 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration