This is the combination of other memos: REF: https://sites.google.com/site/recheliunew/memo/addthesupportofmatlab-stylebackwardhistorytobash "\e[A": history-search-backward "\e[B": history-search-forward "\e\e[C": forward-word "\e\e[D": backward-word "\e[1;3C": forward-word "\e[1;3D": backward-word export PS1="\[\e[0;32m\][\u@\h \w] \[\e[0m\]\n$ " SSHAGENT=/usr/bin/ssh-agent SSHAGENTARGS="-s" if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then eval `$SSHAGENT $SSHAGENTARGS` trap "kill $SSH_AGENT_PID" 0 fi Useful tips
REF: http://superuser.com/questions/488157/how-do-i-make-ctrl-arrow-keys-move-forward-backward-a-word-at-a-time-in-cygwin-b |
Memo-migrated >