modus-themes-diffs 'desaturated)
(load-theme 'modus-vivendi t)
#+end_src
+** Tree-sitter
+#+begin_src emacs-lisp
+ (use-package tree-sitter-langs)
+ (use-package tree-sitter
+ :config (global-tree-sitter-mode)
+ :hook (tree-sitter-after-on-hook . tree-sitter-hl-mode))
+#+end_src
** Typography
*** Font
Great programming font with ligatures.
**** Programs
#+begin_src conf :tangle ~/.spectrwm.conf
program[aerc] = alacritty -e aerc
- program[catgirl] = alacritty --hold -e sh -c "while : ; do ssh -p 23 -t root@armaanb.net abduco -a catgirl; sleep 2; done"
+ program[catgirl] = alacritty --hold -e sh -c "while : ; do ssh root@armaanb.net -t abduco -A irc catgirl freenode; sleep 2; done"
program[emacs] = emacsclient -c
- program[emacs-anywhere] = emacsclient --eval "(emacs-everywhere)"
program[firefox] = firefox
+ program[emacs-anywhere] = emacsclient --eval "(emacs-everywhere)"
bind[aerc] = MOD+Control+1
bind[catgirl] = MOD+Control+2
- bind[emacs-anywhere] = MOD+Control+3
- bind[firefox] = MOD+Control+4
+ bind[firefox] = MOD+Control+3
+ bind[emacs-anywhere] = MOD+Control+4
bind[emacs] = MOD+Control+Return
#+end_src
** Zsh
setopt hist_ignore_dups
setopt hist_reduce_blanks
- HISTSIZE=10000
- SAVEHIST=10000
+ HISTSIZE=100000
+ SAVEHIST=100000
HISTFILE=~/.local/share/zsh/history
#+end_src
*** Plugins
mv $1.tmp $2
}
#+end_src
+**** Finger
+#+begin_src shell :tangle ~/.config/zsh/zshrc
+ finger() {
+ user=$(echo "$1" | cut -f 1 -d '@')
+ host=$(echo "$1" | cut -f 2 -d '@')
+ echo $user | nc "$host" 79 -N
+ }
+#+end_src
*** Aliases
**** SSH
#+begin_src shell :tangle ~/.config/zsh/zshrc
alias bhoji-drop='ssh -p 23 root@armaanb.net'
- alias catgirl='ssh -p 23 -t root@armaanb.net abduco -a catgirl'
+ alias catgirl='ssh root@armaanb.net -t abduco -A irc catgirl freenode'
+ alias union='ssh 192.168.1.18'
alias tcf='ssh root@204.48.23.68'
alias ngmun='ssh root@157.245.89.25'
alias prox='ssh root@192.168.1.224'
alias cip='curl https://armaanb.net/ip'
alias gps='gpg --keyserver keyserver.ubuntu.com --search-keys'
alias gpp='gpg --keyserver keyserver.ubuntu.com --recv-key'
-#+end_src
-**** Docker
-#+begin_src shell :tangle ~/.config/zsh/zshrc
- alias dc='docker-compose'
- alias dcdu='docker-compose down && docker-compose up -d'
+ alias plan='T=$(mktemp) && \
+ rsync root@armaanb.net:/etc/finger/plan.txt "$T" && \
+ vim $T && \
+ rsync "$T" root@armaanb.net:/etc/finger/plan.txt'
+ alias wttr='curl -s "wttr.in/02445?n" | head -n -3'
#+end_src
**** Other
#+begin_src shell :tangle ~/.config/zsh/zshrc