Closed Greenarrow4245 closed 4 weeks ago
forgot to mention this error occurred when I put this in my .bashrc (made by gpt 4o)
case $- in i) ;; *) return;; esac
if [ -e /data/data/com.termux.nix/files/usr/etc/profile.d/nix.sh ]; then . /data/data/com.termux.nix/files/usr/etc/profile.d/nix.sh fi
HISTCONTROL=ignoreboth
shopt -s histappend
HISTSIZE=1000 HISTFILESIZE=2000
shopt -s checkwinsize
if [ -e /data/data/com.termux.nix/files/usr/etc/profile.d/nix.sh ]; then . /data/data/com.termux.nix/files/usr/etc/profile.d/nix.sh fi
case "$TERM" in xterm-color|*-256color) color_prompt=yes;; esac
if [ -n "$force_color_prompt" ]; then if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then color_prompt=yes else color_prompt= fi fi
if [ "$color_prompt" = yes ]; then PS1='${debian_chroot:+($debian_chroot)}[\033[01;31m]\u[\033[00m]@[\033[01;32m]\h[\033[00m]:[\033[01;34m]\w[\033[00m]\$ ' else PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi unset color_prompt force_color_prompt
case "$TERM" in xterm|rxvt) PS1="[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a]$PS1" ;; *) ;; esac
if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
alias ll='ls -alF' alias la='ls -A' alias l='ls -CF'
alias alert='notify-send --urgency=low -i "$(test $? -eq 0 && echo terminal || echo error)" "$(history | tail -n1 | sed -e "s/^[ ][0-9]+[ ]//;s/[;&|][ ]*alert$//")"'
if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi
if ! shopt -oq posix; then if [ -f /usr/share/bash-completion/bash_completion ]; then . /usr/share/bash-completion/bash_completion elif [ -f /etc/bash_completion ]; then . /etc/bash_completion fi fi
if [ -d "$HOME/.nix-profile/bin" ]; then export PATH="$HOME/.nix-profile/bin:$PATH" fi
export NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH export NIX_REMOTE=daemon
if [ -f /data/data/com.termux.nix/files/usr/etc/profile.d/nix.sh ]; then . /data/data/com.termux.nix/files/usr/etc/profile.d/nix.sh fi
if [ -f ~/.nix-profile/etc/profile.d/nix.sh ]; then . ~/.nix-profile/etc/profile.d/nix.sh fi
if [ -e $HOME/.nix-profile/etc/bash_completion.d/nix ]; then . $HOME/.nix-profile/etc/bash_completion.d/nix fi
and .bash_profile
if [ -f ~/.bashrc ]; then . ~/.bashrc fi
if [ -e /data/data/com.termux.nix/files/usr/etc/profile.d/nix.sh ]; then . /data/data/com.termux.nix/files/usr/etc/profile.d/nix.sh fi
if [ -d "$HOME/.nix-profile/bin" ]; then export PATH="$HOME/.nix-profile/bin:$PATH" fi
export NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH export NIX_REMOTE=daemon
if [ -f /data/data/com.termux.nix/files/usr/etc/profile.d/nix.sh ]; then . /data/data/com.termux.nix/files/usr/etc/profile.d/nix.sh fi
if [ -f ~/.nix-profile/etc/profile.d/nix.sh ]; then . ~/.nix-profile/etc/profile.d/nix.sh fi
if [ -e $HOME/.nix-profile/etc/bash_completion.d/nix ]; then . $HOME/.nix-profile/etc/bash_completion.d/nix fi
export EDITOR=nano
export LESS=-R
export LANG=en_US.UTF-8 export LC_ALL=en_US.UTF-8
export XDG_CONFIG_HOME=$HOME/.config export XDG_CACHE_HOME=$HOME/.cache export XDG_DATA_HOME=$HOME/.local/share
if [ -d "$HOME/.local/bin" ]; then export PATH="$HOME/.local/bin:$PATH" fi
if [ -d "$HOME/bin" ]; then export PATH="$HOME/bin:$PATH" fi
case "$TERM" in xterm-color|*-256color) color_prompt=yes;; esac
if [ -n "$force_color_prompt" ]; then if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then color_prompt=yes else color_prompt= fi fi
if [ "$color_prompt" = yes ]; then PS1='${debian_chroot:+($debian_chroot)}[\033[01;31m]\u[\033[00m]@[\033[01;32m]\h[\033[00m]:[\033[01;34m]\w[\033[00m]\$ ' else PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi unset color_prompt force_color_prompt
error: cannot connect to socket at '/nix/var/nix/daemon-socket/socket': Connection refused
export NIX_REMOTE=daemon
Case closed, it broke because you broke it.
this error occurred when I put this in my .bashrc (made by gpt 4o)
Look, I can't stop you from inputting garbage from a hallucinating plagiarism machine into my software, but at least don't ask me why it's broken when you do.
error: cannot connect to socket at '/nix/var/nix/daemon-socket/socket': Connection refused
export NIX_REMOTE=daemon
Case closed, it broke because you broke it.
this error occurred when I put this in my .bashrc (made by gpt 4o)
Look, I can't stop you from inputting garbage from a hallucinating plagiarism machine into my software, but at least don't ask me why it's broken when you do.
I found out that the .bashrc and .bash_profile are the problem I should have keep it simple
My problem is that you're filing tickets suggesting something's wrong with nix-on-droid while it's not. If you want to see how it behaves with a hallucinated up .bashrc, feel free to, just don't waste my time in the process.