More than 5 years have passed since last update.
~/.zshrc
# C-jで下のディレクトリに移動する
function cddown_dir(){
com='$SHELL -c "ls -AF . | grep / "'
while [ $? = 0 ]
do
cdir=`eval $com | peco`
if [ $? = 0 ];then
cd $cdir
eval $com
else
break
fi
done
zle reset-prompt
}
zle -N cddown_dir
bindkey '^j' cddown_dir
Why not register and get more from Qiita?
- We will deliver articles that match you
By following users and tags, you can catch up information on technical fields that you are interested in as a whole
- you can read useful information later efficiently
By "stocking" the articles you like, you can search right away
Sign upLogin