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,6 +17,8 @@ bb() {
17 17
     #
18 18
     # Ring the bell
19 19
     #
20
+    local stime=${1:-0}
21
+    sleep "$stime"
20 22
     printf '\a'
21 23
 }
22 24
 
@@ -256,18 +258,6 @@ fixnl() {
256 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 261
 nlfor() {
272 262
     #
273 263
     # Replace $1 (or blank space) with newlines and fix final newline
@@ -505,6 +495,8 @@ export LESS=' -R '
505 495
 export PRETTY=color
506 496
 export PRETTY_DEBUG_EXCLUDE=inigrep
507 497
 
498
+export MDVIMB__CONVERTER=commonmark
499
+
508 500
 #shellcheck disable=SC2034
509 501
 {
510 502
     GIT_PS1_SHOWDIRTYSTATE=true

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

@@ -11,7 +11,8 @@
11 11
     fas     = https://admin.fedoraproject.org/accounts/user/view/netvor
12 12
     fcopr   = https://copr.fedorainfracloud.org/coprs/netvor
13 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 16
     g       = http://www.google.com/
16 17
     gvc     = https://gitea.vornet.cz/
17 18
     gh      = https://www.github.com/