From 4b5f2fcd617c6cee3b9b2b0cae41afabf73f35cd Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 1 Feb 2017 14:47:17 -0500 Subject: Add nasd function --- .zshrc | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit 1.4.1