#{SOLVED} i deleted my .zshrc file and i kinda fucked up my terminal, help?

216 messages ยท Page 1 of 1 (latest)

jaunty charm
#

it deleted one of my bash profiles and i need to remake them, no clue how and i cant seem to find a tutorial either

stiff onyx
#

@jaunty charm pacman -S bash

jaunty charm
#

but like im missing my profile

#

as in this is my ui

#

i need to make a bash profile

stiff onyx
#

are login as root?

jaunty charm
#

i can login as root

stiff onyx
#

why?

jaunty charm
#

oh im not logged in as root now

#

to actually install stuff i have to login as root

#

i cant just do sudo

#

essentially all i need to do is reinstall a profile

stiff onyx
#

sudo cp /etc/skell .bash_profile .

jaunty charm
#

hold up

#

yeah not working here

#

i think i have to go into it using a text editor and recreate a profile but i dont know how to do that

stiff onyx
#

sudo cp /etc/skel .bash_profile .

jaunty charm
stiff onyx
#

sudo cp /etc/skel/.bash_profile .

jaunty charm
#

oh

#

wait

jaunty charm
stiff onyx
jaunty charm
#

sure

#

hold up

jaunty charm
#

it still does nothing, even if i switch to the user marls

stiff onyx
jaunty charm
#

oh wait i think its back to normal

jaunty charm
stiff onyx
#

reboot

jaunty charm
#

i cant do anything with this balena etcher thing

#

alright

#

appreciate the help so far btw tysm

stiff onyx
#

ventoy > etcher

#

also it's makepkg -si

#

not just makepkg

jaunty charm
#

oh

jaunty charm
stiff onyx
#

rm -rf balena-etcher

jaunty charm
#

okay removed it

#

whats next?

stiff onyx
#

cd ventoy-bin

#

makepkg -si

jaunty charm
#

appreciate it

stiff onyx
#

you sudo glt cloned the repo, don't do that

jaunty charm
#

ill reinstall arch now because i messed up alot of stuff

jaunty charm
jaunty charm
jaunty charm
# stiff onyx what's wrong

i have a comical amount of useless configs and junk on here
my profile system isnt working perfectly (this ticket)

#

since i deleted the wrong stuff

stiff onyx
#

what did you have in your profile?

jaunty charm
#

like in terms of files?

#

or

#

well im having issues with bash rn
as in the bash profiles since i accidently rm -rf'd them lol

stiff onyx
#

what did you have in it?

#

what's wrong with bash?

jaunty charm
#

everytime i opened a terminal i would never have this interface and it would automatically log me in

#

now i have to type in bash type my password ect

#

i need to do a clean install anyway to get rid of all of the useless stuff i have on here

#

and another issue

#

hyprland was bugging out really weird

#

lemme find it

stiff onyx
#

how did you install discord?

jaunty charm
#

pacman

#

i dont use discord though

#

i use vesktop

stiff onyx
#

vesktop is not in the native repos, so you didn't use pacman

#

Warning: The usage of third-party clients, or any unofficial package or application that modifies the Discord client, is against Discord's Terms of Service and may get your account banned.

jaunty charm
#

but it did this with other apps too

#

and the actual normal discord

stiff onyx
#

pacman -S discord

jaunty charm
#

heroic games launcher

stiff onyx
#

discord from the terminal

jaunty charm
#

which i got from flatpak

stiff onyx
#

show me the output

jaunty charm
#

so that could be the case

#

i think theyre bugged

#

yeah so it does this

#

then opens on KDE

#

lemme go to hyprland and show u what happens

#

@stiff onyx this is quite odd

#

if i open firefox and type in discord and load in

#

it loads my discord

#

if i dont it just gives the message

stiff onyx
jaunty charm
stiff onyx
jaunty charm
#

yep

#

from pacman

#

pacman -S discord

stiff onyx
jaunty charm
#

lemme restart and check

#

and that error only came up for vesktop

#

and discord

#

lemme check though ill keep u updated

jaunty charm
stiff onyx
#

cd xdg-ninja

#

makepkg-si

jaunty charm
stiff onyx
#

pacman -S glow

#

xdg-ninja

jaunty charm
#

oh wait I did it just took way too long

civic flicker
#

Whats error?

jaunty charm
#

which caused it to lose my bash profile

#

now everytime I enter my terminal I have to type in bash

civic flicker
#

Its different shell

jaunty charm
#

oh

stiff onyx
#

you need to remake your .zshrc

civic flicker
#

Or copy it back from where it was downloaded

#

Or you can switch back to bash using chsh command

stiff onyx
#

@jaunty charm

jaunty charm
#

yeah ill do that

jaunty charm
#

but its just saying command not found

#

for some reason

civic flicker
jaunty charm
stiff onyx
jaunty charm
#

i just did makepkg and it worked

#

okay so what do i do now?

stiff onyx
#

cd ..

#

xdg-ninja

jaunty charm
#

i installed glow

#

ok

jaunty charm
#

what exactly do i have to do now?

#

i already have my .zshrc file, but it was a "backup" automatically made by the system

stiff onyx
jaunty charm
#

do i have to run it in root?

#

tried it in sudo and out

#

ok i ran it

stiff onyx
#

don't use sudo for commands, unless needed

#

cd ..

#

rm -rf xdg-ninja

#

now run it

jaunty charm
#

im confused

#

okay

stiff onyx
#

cd xdg-ninja

#

makepkg -si

jaunty charm
#

okay alls done here

stiff onyx
#

pacman -Q xdg-ninja

jaunty charm
#

ok

#

thats done

stiff onyx
#

cd ..

#

rm -rf xdg-ninja

#

xdg-ninja

jaunty charm
#

ok

#

done

stiff onyx
#

good, look at your home and remove the files you don't want

jaunty charm
#

alright

jaunty charm
stiff onyx
#

run xdg-ninja again

jaunty charm
#

alright

#

reran it

stiff onyx
#

now run the commands you want

jaunty charm
#

as in?

#

like

#

my stuff .zshrc file is working normally again?

stiff onyx
#

this makes it so that those don't pollute your home

jaunty charm
#

thats nice

#

appreciate the help

#

any idea on what i can do about the .zshrc thing though

stiff onyx
jaunty charm
#

alright

#

appreciate it thanks alot man ๐Ÿ™

jaunty charm
#

like its just functioning rlly weird, which de do you use?

#

im considering bspwm

stiff onyx
stiff onyx
jaunty charm
#

thanks for all the help

#

๐Ÿ™

stiff onyx
#

@jaunty charm awesome

jaunty charm
#

thanks for the reminder

#

I'll check out all the big DE s

stiff onyx
#

... solved

cosmic joltBOT
#

#9742 ๐Ÿ“ฃ If there is nothing else that we can do for you, please close this thread by adding "[SOLVED]" to the title.

  • You can do this on desktop by clicking the three dots on the top right of the page, and pressing "Edit Post".
  • You can also do this on Android / iOS by long tapping your post in the text channel list, and tapping "Edit Post".

Your title should be like so: https://cdn.discordapp.com/attachments/503224329191030787/1039841700417384498/image.png
Thank you

stiff onyx
#

@jaunty charm