3 Commits

Author SHA1 Message Date
  Alois Mahdal e3803e5549 Split FastMail Contact bookmark to Calendar and Contacts 5 years ago
  Alois Mahdal 7b6ebd31bf Moved mdvimb to a standalone script (local, so far) 5 years ago
  Alois Mahdal e3aad7106e Allow for a little nap before the bell 5 years ago
2 changed files with 6 additions and 13 deletions
  1. 4
    12
      dotfiles/bash/main.bashrc
  2. 2
    1
      dotfiles/config/bmo/wish.ini

+ 4
- 12
dotfiles/bash/main.bashrc View File

17
     #
17
     #
18
     # Ring the bell
18
     # Ring the bell
19
     #
19
     #
20
+    local stime=${1:-0}
21
+    sleep "$stime"
20
     printf '\a'
22
     printf '\a'
21
 }
23
 }
22
 
24
 
256
     rm "$cache"
258
     rm "$cache"
257
 }
259
 }
258
 
260
 
259
-mdvimb() {
260
-    #
261
-    # Open Markdown file in Vimb (no junk)
262
-    #
263
-    local file=$1; shift
264
-    case $file in
265
-        "") Markdown | vimb - "$@" ;;
266
-        -)  Markdown | vimb - "$@" ;;
267
-        *)  Markdown < "$file" | vimb - "$@"
268
-    esac
269
-}
270
-
271
 nlfor() {
261
 nlfor() {
272
     #
262
     #
273
     # Replace $1 (or blank space) with newlines and fix final newline
263
     # Replace $1 (or blank space) with newlines and fix final newline
505
 export PRETTY=color
495
 export PRETTY=color
506
 export PRETTY_DEBUG_EXCLUDE=inigrep
496
 export PRETTY_DEBUG_EXCLUDE=inigrep
507
 
497
 
498
+export MDVIMB__CONVERTER=commonmark
499
+
508
 #shellcheck disable=SC2034
500
 #shellcheck disable=SC2034
509
 {
501
 {
510
     GIT_PS1_SHOWDIRTYSTATE=true
502
     GIT_PS1_SHOWDIRTYSTATE=true

+ 2
- 1
dotfiles/config/bmo/wish.ini View File

11
     fas     = https://admin.fedoraproject.org/accounts/user/view/netvor
11
     fas     = https://admin.fedoraproject.org/accounts/user/view/netvor
12
     fcopr   = https://copr.fedorainfracloud.org/coprs/netvor
12
     fcopr   = https://copr.fedorainfracloud.org/coprs/netvor
13
     fm      = https://www.fastmail.com/
13
     fm      = https://www.fastmail.com/
14
-    fmc     = https://www.fastmail.com/calendar/
14
+    fmca    = https://www.fastmail.com/calendar/
15
+    fmco    = https://www.fastmail.com/contacts/
15
     g       = http://www.google.com/
16
     g       = http://www.google.com/
16
     gvc     = https://gitea.vornet.cz/
17
     gvc     = https://gitea.vornet.cz/
17
     gh      = https://www.github.com/
18
     gh      = https://www.github.com/