Browse Source

Minor alias/zeal update

Simon Watson 11 months ago
parent
commit
2b3edac177
2 changed files with 21 additions and 1 deletions
  1. 12 0
      bashrc/bashrc-all
  2. 9 1
      emacs/.emacs-all

+ 12 - 0
bashrc/bashrc-all

@@ -71,6 +71,14 @@ vim()
 		# using anemic term/color/etc as it's faster in emacs
 		TERM=xterm-color emacsclient $1 &
 		export EDITOR="emacsclient -c"
+	elif [[ "$(ps aux | grep -v grep | grep kate)" ]];
+	then
+		kate $1
+		export EDITOR="kate"
+	elif [[ "$(ps aux | grep -v grep | grep code-oss)" ]];
+	then
+		code-oss $1
+		export EDITOR="code-oss"
 	else
 		VIM_PATH=$(which vim)
 		$VIM_PATH $1
@@ -95,6 +103,10 @@ if [ ! -z $HIMALAYA_PATH ]; then
        . ~/Repos/dotfiles/himalaya/himalaya_shell_ui.sh
 fi
 
+if which docker > /dev/null; then
+   alias dpa="echo \"docker ps --all\" ; docker ps --all"
+fi	
+
 # GPG Decrypt wrapper
 export GPG_PATH=$(which gpg)
 if [ ! -z $GPG_PATH ]; then

+ 9 - 1
emacs/.emacs-all

@@ -45,11 +45,19 @@
    :repo "Kaali/pico8-mode"))
 (straight-use-package
  '(fzf :type git :host github
-   :repo "bling/fzf.el"))
+       :repo "bling/fzf.el"))
 
 ;; EasyPG settings
 (setq epa-pinentry-mode 'loopback)
 
+;; add hook for searching in zeal
+;; https://zealdocs.org/
+(straight-use-package
+ '(zeal-at-point :type git :host github
+		 :repo "jinzhu/zeal-at-point"))
+
+(global-set-key (kbd "C-c v") 'zeal-at-point)
+
 ;; newlisp mode
 ;; (straight-use-package
 ;;  '(newlisp-mode