feat: upd

This commit is contained in:
Pavel Korytov 2021-01-14 09:08:13 +03:00
parent cba9ad4f25
commit 1ab81470e4
4 changed files with 27 additions and 1 deletions

View file

@ -1546,6 +1546,12 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
#+begin_src emacs-lisp
(use-package fish-mode
:straight t)
(add-hook 'fish-mode-hook #'smartparens-mode)
#+end_src
** sh
#+begin_src emacs-lisp
(add-hook sh-mode-hook #'smartparens-mode)
#+end_src
** CLIPS
#+begin_src emacs-lisp

View file

@ -1247,6 +1247,10 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
(use-package fish-mode
:straight t)
(add-hook 'fish-mode-hook #'smartparens-mode)
(add-hook sh-mode-hook #'smartparens-mode)
(use-package clips-mode
:straight t)

11
bin/scripts/nt Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
command="$@"
if [ ! -z "$command" ]; then
start_time="$(date -u +%s)"
$command
end_time="$(date -u +%s)"
elapsed="$(($end_time-$start_time))"
notify-send "Terminal" "Command\n$command\nexecuted in $elapsed seconds"
else
notify-send "Terminal" "Command execution complete"
fi

View file

@ -1,5 +1,10 @@
#!/bin/sh
BUKU="/home/pavel/Programs/miniconda3/bin/buku"
if [ $(hostname) = 'pdsk' ]; then
BUKU="/home/pavel/.local/bin/buku"
else
BUKU="/home/pavel/Programs/miniconda3/bin/buku"
fi
COMMAND="$BUKU -o %"
# COMMAND="qutebrowser $(buku -f 10 -p %)"
if [[ $1 == '-e' ]]; then