Просмотр исходного кода

newline can be expressed using $

pull/1/head
10sr 11 лет назад
Родитель
Сommit
ceeefae7d0
1 измененных файлов: 1 добавлений и 2 удалений
  1. +1
    -2
      bashrc

+ 1
- 2
bashrc Просмотреть файл

@@ -247,8 +247,7 @@ __dirs_rm_dup(){
for d in "$@"
do
local next="$(__realpath --strip "$d")"
for l in $(\dirs -v -l | cut -d "
" -f 2- | \grep -x " *[0-9]\+ \+${next}" | \grep -o "^ *[0-9]\+ " | tac)
for l in $(\dirs -v -l | cut -d $'\n' -f 2- | \grep -x " *[0-9]\+ \+${next}" | \grep -o "^ *[0-9]\+ " | tac)
do
popd +$l -n >/dev/null
done


Загрузка…
Отмена
Сохранить