Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Delete last part of path
- X-seq: zsh-users 12265
- From: "Jun T." <takimoto-j@xxxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Re: Delete last part of path
- Date: Fri, 30 Nov 2007 12:45:54 +0900
- In-reply-to: <20071129091355.GA9899@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20071129091355.GA9899@xxxxxxxxxx>
At 10:13 AM +0100 07.11.29, tannhauser wrote:
>i typed
>% cd /home/example/one/
>and the cursor is at the end of the line. is there a shortcut to delete
>just the last part of the path (in this example "one/") ?
If you are using vi-keybinding (bindkey -v), then typing ctrl-W twice
will do what you want.
If you are using emacs-keybinding, then you can bind the command
'vi-backward-kill-word' to any key you like, e.g.,
bindkey '^W' vi-backward-kill-word
Another method is
% cd /home/example/one/../<TAB>
this will complete the directories in /home/example/.
-----
Jun
Messages sorted by:
Reverse Date,
Date,
Thread,
Author