Skip to content

Commit

Permalink
Add abbr for cal with highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
joaothallis committed Feb 11, 2024
1 parent add5779 commit 07aab26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .config/fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ abbr --add ta 'tmux attach'

abbr --add n nmtui

abbr --add c cal_highlight

abbr --add my-branchs "git for-each-ref --format='%(refname:short) %(authorname)' refs/heads | grep (git config user.name) | cut -d' ' -f1"

$HOME/.local/bin/mise activate fish | source
Expand Down
3 changes: 3 additions & 0 deletions .config/fish/functions/cal_highlight.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function cal_highlight
cal | grep --color -EC6 "\b"(date +%e | sed "s/ //g")
end

0 comments on commit 07aab26

Please sign in to comment.