This commit is contained in:
caandt 2024-11-14 15:46:57 -06:00
parent abf8e8e764
commit 750f9d7077
3 changed files with 7 additions and 2 deletions

View file

@ -14,7 +14,7 @@ while [ $# -gt 1 ]; do
done
case $1 in
''|*[!0-9]*) echo "$2 is not a valid number" >&2; exit 2 ;;
''|*[!0-9]*) echo "$1 is not a valid number" >&2; exit 2 ;;
esac
i=0

View file

@ -80,7 +80,8 @@ alias fonts='fc-list | awk -F: "{ print \$2 }" | sort | uniq | fzf'
alias hz='xrandr --output DisplayPort-1 --mode 1920x1080 --rate'
alias ns='nix-shell'
alias zn='cd ~/.local/nixos'
alias znn='cd ~/.local/nixos/hosts/$(hostname)/users/$(whoami)'
alias znh='cd ~/.local/nixos/hosts/$(hostname)'
alias znu='cd ~/.local/nixos/hosts/$(hostname)/users/$(whoami)'
npo() {
nix path-info "nixpkgs#$1" 2> /dev/null
}

View file

@ -15,6 +15,10 @@ if [[ "$parent" == *alacritty ]]; then
elif [[ "$parent" == "tmux" ]]; then
export SHLVL=1
fi
if [[ ! -v TMPDIR ]]; then
mkdir -p "/tmp/$USER"
export TMPDIR="/tmp/$USER"
fi
# default prompt command sets window title
unset PROMPT_COMMAND