summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <curtis.mcenroe@adgear.com>2017-02-01 14:47:17 -0500
committerJune McEnroe <curtis.mcenroe@adgear.com>2017-02-01 14:47:30 -0500
commit56bd228034270081f1983d0597a3e8a134cb7983 (patch)
tree848487068a39c835dc8e2f7c4bb69a11915791a4
parentHighlight Ruby symbols as strings (diff)
downloadsrc-56bd228034270081f1983d0597a3e8a134cb7983.tar.gz
src-56bd228034270081f1983d0597a3e8a134cb7983.zip
Add nasd function
-rw-r--r--.zshrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index 24bda00f..e31028d6 100644
--- a/.zshrc
+++ b/.zshrc
@@ -35,6 +35,13 @@ alias gc='git commit' gca='gc --amend' gt='git tag'
 alias gp='git push' gu='git pull' gf='git fetch'
 alias gr='git rebase' gra='gr --abort' grc='gr --continue' grs='gr --skip'
 
+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