This commit is contained in:
David Tomaschik
2024-10-29 16:45:16 -07:00
15 changed files with 70 additions and 22 deletions

View File

@@ -52,7 +52,7 @@ alias ipy="ipython3"
alias bc="command bc -q"
# Get a decently readable df
alias dfh="df -h -x tmpfs -x devtmpfs"
alias dfh="df -h -x tmpfs -x devtmpfs -x squashfs -x fuse -x efivarfs"
# Clear the GPG agent
alias clear-gpg-agent="echo RELOADAGENT | gpg-connect-agent"

View File

@@ -0,0 +1,4 @@
{
"editor.accessibilitySupport": "off",
"telemetry.telemetryLevel": "off"
}

View File

@@ -1,5 +1,6 @@
[user]
name = David Tomaschik
email = david@systemoverlord.com
signingKey = 0x5DEA789B
[core]

1
dotfiles/npmrc Normal file
View File

@@ -0,0 +1 @@
prefix = ${HOME}/.npm-packages

View File

@@ -6,7 +6,7 @@ umask 027
# Paths and preferences
export PYTHONPATH="$HOME/.python:$PYTHONPATH"
export GOPATH="$HOME/go:$HOME/Projects/Go:/usr/share/gocode"
export PATH="$HOME/bin:$HOME/bin/tools:/sbin:/usr/sbin:$PATH:$HOME/go/bin"
export PATH="$HOME/bin:$HOME/bin/tools:/sbin:/usr/sbin:$PATH:$HOME/go/bin:$HOME/.npm-packages/bin"
export VISUAL=vim
export EDITOR=vim
export DEBEMAIL="david@systemoverlord.com"

View File

@@ -168,4 +168,7 @@ if [ -e $HOME/.zshrc.local ] ; then source $HOME/.zshrc.local ; fi
if test -f "${HOME}/.zprompt" ; then
THEME=${THEME:=$(cat "${HOME}/.zprompt")}
fi
if command -v starship >/dev/null 2>&1 ; then
: ${THEME:=starship}
fi
prompt "${THEME:-matir}" >/dev/null 2>&1

View File

@@ -5,18 +5,18 @@ function dumpenv {
if test -x "/sbin/starship" ; then
_STARSHIP_PATH="/sbin/starship"
function starship_prompt {
eval $(/sbin/starship init zsh)
eval "$(/sbin/starship init zsh)"
}
elif test -x "${HOME}/tools/starship/starship" ; then
_STARSHIP_PATH="${HOME}/tools/starship/starship"
function starship_prompt {
eval $($HOME/tools/starship/starship init zsh)
eval "$($HOME/tools/starship/starship init zsh)"
}
fi
if test -f ${HOME}/.zprompt ; then
if test "$(cat ${HOME}/.zprompt)" = "starship" ; then
if test -n "${_STARSHIP_PATH:-}" ; then
eval $(${_STARSHIP_PATH} init zsh)
eval "$(${_STARSHIP_PATH} init zsh)"
fi
fi
fi
@@ -25,3 +25,13 @@ unset _STARSHIP_PATH
function hashall {
tee >(md5sum) | tee >(sha1sum) | sha256sum
}
function rtmux {
if [ "$#" -lt 1 ] ; then
echo "Usage: $0 <host> [tmux args]" >&2
return 1
fi
HOST="${1}"
shift
ssh -t ${HOST} -- tmux "$@"
}