housekeep: removed eza alias to ls

This commit is contained in:
Pratik Tripathy
2024-03-27 22:40:16 +05:30
parent cc39aa298d
commit c987f015fd
2 changed files with 4 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ op() {
# %T => Sort by last modified
# @ => time displayed in seconds (since 1.1.1970)
# %p => Directory path
project_dir="$(find -L ~/Code -mindepth 1 -maxdepth 5 -name ".git" -not -path '*/.stversions/*' -printf "%T@ %p\n" | sort -nr | cut -d ' ' -f 2- | xargs dirname | fzf --prompt='Select a project: ')"
project_dir="$(find -L ~/Code -mindepth 1 -maxdepth 3 -name ".git" -not -path '*/.stversions/*' -printf "%T@ %p\n" | sort -nr | cut -d ' ' -f 2- | xargs dirname | fzf --prompt='Select a project: ')"
# Do nothing and return if user cancelled out
if [ "$project_dir" = "" ]; then