mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
fix to identical file and dir prefixes, updated config with max nest and max listing options, added --all parameter to show more than notes
This commit is contained in:
parent
6f3dce6972
commit
b092e7fdf1
2 changed files with 167 additions and 74 deletions
|
|
@ -3,12 +3,13 @@
|
|||
_org(){
|
||||
local state
|
||||
|
||||
local f_dirname=~/.config/org_notes.location
|
||||
local f_dirname=~/.config/org_notes.conf
|
||||
touch $f_dirname
|
||||
|
||||
local f_dir=$(cat $f_dirname)
|
||||
if [ "$f_dir" = "" ]; then
|
||||
echo -e "-> No location set in $f_dirname"
|
||||
local f_dir=$(grep "^location" $f_dirname | sed -r 's|^location\s*=\s*(.*)\s*|\1|' )
|
||||
|
||||
if [ "$f_dir" = "" ] || ! [ -d $f_dir ]; then
|
||||
echo -e "-> No valid location set in $f_dirname"
|
||||
return -1
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue