summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xhome/.local/bin/nasd9
-rw-r--r--home/.zshrc7
2 files changed, 9 insertions, 7 deletions
diff --git a/home/.local/bin/nasd b/home/.local/bin/nasd
new file mode 100755
index 00000000..203fdd2d
--- /dev/null
+++ b/home/.local/bin/nasd
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e -u
+
+dir=$(mktemp -d)
+echo 'bits 64' > $dir/input
+cat >> $dir/input
+nasm -o $dir/output $dir/input || true
+ndisasm -b 64 $dir/output || true
+rm -r $dir
diff --git a/home/.zshrc b/home/.zshrc
index c7f58fce..3d6ec00c 100644
--- a/home/.zshrc
+++ b/home/.zshrc
@@ -36,13 +36,6 @@ alias gp='git push' gu='git pull' gf='git fetch'
 alias gr='git rebase' gra='gr --abort' grc='gr --continue' grs='gr --skip'
 alias rand='openssl rand -base64 33'
 
-nasd() {
-  local tmp=$(mktemp)
-  cat > $tmp
-  nasm -p =(echo 'bits 64') -o >(ndisasm -b 64 /dev/stdin) $tmp
-  rm $tmp
-}
-
 setopt prompt_subst
 _prompt_git() {
   local dotgit=.git head
s='logheader'>2017-07-25Add up, supJune McEnroe 2017-07-24Autopickup ringsJune McEnroe 2017-07-24Name dogJune McEnroe 2017-07-23Add nethackrcJune McEnroe 2017-07-23Remove useless setuid in briJune McEnroe Don't you think it would be better if the setuid bit only gave you permission to do it and didn't do it for you? 2017-07-23Clean up hnel a tiny bitJune McEnroe 2017-07-21Set window size in hnelJune McEnroe 2017-07-21Add hnelJune McEnroe 2017-07-19chmod 600 in dtchJune McEnroe