Skip to content

Instantly share code, notes, and snippets.

View anasem's full-sized avatar

Anas Emad anasem

View GitHub Profile

Keybase proof

I hereby claim:

  • I am anasem on github.
  • I am aemad (https://keybase.io/aemad) on keybase.
  • I have a public key ASA2FrfsA5i9VI-AjFCk8cfYg1gffG5vElWtgIWCPQfnoQo

To claim this, I am signing this object:

@anasem
anasem / .inputrc
Last active May 8, 2021 09:47
inputrc
set editing-mode vi
"\C-p":previous-history
"\C-n":next-history
"\C-a.":beginning-of-line
"\C-e.":end-of-line
"\C-l":clear-screen
"\e[A": history-search-backward
"\eOA": history-previous-history
"\e[B": history-search-forward
"\eOB": history-search-forward
@anasem
anasem / key-handler
Created July 11, 2021 15:20
Copy images from sxiv so that they can be pasted to chromium based browsers
#!/bin/sh
case "$1" in
"C-c") URIS="copy"; while read file; do \
URIS+="\nfile:///$(readlink -f $file)"; \
done; \
echo -e "$URIS\0" | xclip -i -selection clipboard -t text/uri-list; \
notify-send "$(echo -e $URIS | tail -n +2 | wc -l) files copied to clipboard";;
esac