#[solved] bash not reading my ~/.bashrc

1 messages · Page 1 of 1 (latest)

vagrant falcon
#

I think you have crossed your wires a bit there

#

You @'d the wrong person

ancient ocean
#

lol

spring holly
#

ok here ill post everything ive done one second

#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return
clear && cd ~ && ./wm2.sh

alias ls='ls --color=auto'
alias grep='grep --color=auto'
PS1='[\u@\h \W]\$ '
alias kys='poweroff'
alias fuckoff='quit'
alias dtest='echo "dtest"'
export PATH=$PATH:/home/xhekd/.spicetify

tried:

bash: dtest: command not found
[xhekd@xhekd-hplaptop17cn1xxx ~]$ ```

however, if i put it in `/etc/skel/.bashrc`, it works perfectly fine:
```[xhekd@xhekd-hplaptop17cn1xxx ~]$ nano /etc/skel/.bashrc # put in the dtest2 alias
[xhekd@xhekd-hplaptop17cn1xxx ~]$ source /etc/skel/.bashrc
[xhekd@xhekd-hplaptop17cn1xxx ~]$ dtest2
dtest2```
#

its a little script i made to fasten the process of choosing what WM i should use, because the execution for some window mangers are extremely long (to execute)

#

such as GNOME and KDE you have to input:
XDG_SESSION_TYPE=wayland dbus-run-session gnome-session
and
/usr/lib/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland

#

i like to use the three

#

could it be the issue?

#

oh my god it was the issue why_god

#

im sorry for wasting so much time 😔

#

i just had to remove the clear && wm2.sh from it and the dtest alias worked

#

im sorry

#

how long the script is?
like 120 lines

#

oh, not too long

#

for the script, im unsure if it goes on indefinitely, ill make sure to fix it tho

#

its fixed tho, you should prob put [SOLVED] in the title

lucid stream
#

[solved] bash not reading my ~/.bashrc