Update zshrc.d

This commit is contained in:
David Tomaschik
2025-06-10 09:07:56 -07:00
parent bbeb451251
commit 4743b635aa
4 changed files with 3 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
if [ -f "`command which nasm 2>/dev/null`" -a -f "`command which objdump 2>/dev/null`" ] ; then
if have_command nasm && have_command objdump ; then
assemble_shellcode() {
if [ -z "$1" ] ; then echo "Usage: $0 <assembly file>" >&2 ; return 1 ; fi
local NASM=`command which nasm`

View File

@@ -1,7 +0,0 @@
if command -v xiwi >/dev/null 2>&1; then
function xiwibg {
local tmpf=$(mktemp)
echo Logging to ${tmpf}
nohup xiwi "$@" >!${tmpf} 2>&1 &
}
fi

View File

@@ -25,7 +25,7 @@ fi
export GPG_TTY="$(tty)"
# Setup SSH agent support
if grep '^enable-ssh-support' "$_gpg_agent_conf" &> /dev/null; then
if grep -q '^enable-ssh-support' "$_gpg_agent_conf" &> /dev/null; then
# Load required functions.
autoload -Uz add-zsh-hook

View File

@@ -1,3 +1,3 @@
if command -v ipython >/dev/null || command -v ipython3 >/dev/null ; then
if have_command ipython || have_command ipython3 ; then
export PYTHONSTARTUP="${HOME}/.ipython.py"
fi