Browse Source

fix greeting function

main
lelgenio 1 month ago
parent
commit
92dbacc156
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      dotfiles/fish.fish

+ 8
- 1
dotfiles/fish.fish View File

@@ -38,7 +38,14 @@ command -qs bat &&
alias cat bat

command -qs khard &&
alias fish_greeting='khal list now 10d --format " {title}" | sed "/No events/d" '
function fish_greeting
set -l khalList khal list now 10d --format " {title}"
$khalList &> /dev/null
or return
$khalList | grep '^No events$' &> /dev/null
and return
$khalList
end

abbr gs git status
abbr gp 'git pull; git push'


Loading…
Cancel
Save