]> git.armaanb.net Git - config.org.git/commitdiff
Zsh: switch to using pass and update aliases
authorArmaan Bhojwani <me@armaanb.net>
Sat, 1 May 2021 23:02:11 +0000 (19:02 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Sat, 1 May 2021 23:02:11 +0000 (19:02 -0400)
config.org

index 38e65f162e4bdc709aea28b8138b020820902afd..372b6b07d2a087b5a262139c831fc6fedfe2e196 100644 (file)
@@ -843,6 +843,7 @@ No more clogging up init.el.
   program[firefox] = firefox
   program[calc] = alacritty -e bc
   program[emacs-anywhere] = emacsclient --eval "(emacs-everywhere)"
+  program[pass] = rofi-pass
 
   bind[aerc] = MOD+Control+1
   bind[catgirl] = MOD+Control+2
@@ -850,6 +851,7 @@ No more clogging up init.el.
   bind[emacs-anywhere] = MOD+Control+4
   bind[calc] = MOD+Control+5
   bind[emacs] = MOD+Control+Return
+  bind[pass] = MOD+Shift+P
 #+end_src
 ** Zsh
 *** Settings
@@ -915,10 +917,8 @@ Right now, I'm only using fast-syntax-highlighting. It's a really nice visual ad
 *** Functions
 **** Time Zsh startup
 #+begin_src shell :tangle ~/.config/zsh/zshrc
-  timezsh() {
-      for i in $(seq 1 10); do
-          time "zsh" -i -c exit;
-      done
+  timer() {
+      for i in $(seq 1 10); do time "$1" -i -c exit; done
   }
 #+end_src
 **** Update all packages
@@ -1004,8 +1004,7 @@ Right now, I'm only using fast-syntax-highlighting. It's a really nice visual ad
   alias bhoji-drop='ssh -p 23 root@armaanb.net'
   alias catgirl='ssh root@armaanb.net -t abduco -A irc catgirl freenode'
   alias union='ssh 192.168.1.18'
-  alias mine='ssh -p 23 root@71.184.142.155'
-  alias minec='ssh -p 23 root@71.184.142.155 su minecraft -c "tmux a -t minecraft"'
+  alias mine='ssh -p 23 root@pickupserver.cc'
   alias tcf='ssh root@204.48.23.68'
   alias ngmun='ssh root@157.245.89.25'
   alias prox='ssh root@192.168.1.224'
@@ -1031,14 +1030,6 @@ Right now, I'm only using fast-syntax-highlighting. It's a really nice visual ad
   alias unar='atool -x'
   alias wget='wget -e robots=off'
   alias lanex='~/.local/share/lxc/lxc'
-#+end_src
-**** Dotfiles
-#+begin_src shell :tangle ~/.config/zsh/zshrc
-  alias padm='yadm --yadm-repo ~/Code/dotfiles/repo.git'
-  alias yadu='yadm add -u && yadm commit -m "Updated `date -Iseconds`" && \
-    yadm push'
-  alias padu='padm add -u && padm commit && padm push && yadu'
-#+end_src
 **** Editing
 #+begin_src shell :tangle ~/.config/zsh/zshrc
   alias v='nvim'
@@ -1053,6 +1044,10 @@ Right now, I'm only using fast-syntax-highlighting. It's a really nice visual ad
   alias redoas='doas $(fc -ln -1)'
   alias crontab='crontab-argh'
   alias sudo='doas ' # allows aliases to be run with doas
+  alias pasc='pass -c'
+  alias pasu='\pass git push'
+  alias yadu='yadm add -u && yadm commit -m "Updated `date -Iseconds`" && \
+    yadm push'
 #+end_src
 **** Networking
 #+begin_src shell :tangle ~/.config/zsh/zshrc