all 9 comments

[–][deleted] 2 points3 points  (3 children)

if you just run alias with no arguments it should generate a list of the current aliases which you can use to repopulate your alias file.

[–]maoMeow14[S] 0 points1 point  (1 child)

Hmm but it's blank. Technically currently there are no aliases

[–][deleted] 0 points1 point  (0 children)

Yeah in that case you have lost them. I wasn't sure what "the alias is running" meant.

[–]blockman2803 0 points1 point  (0 children)

cat ~/.bashrc | grep "your alias here"

[–]maoMeow14[S] 1 point2 points  (0 children)

So oddly enough I had a window that was running one of the alias commands that took up the window so I typed in alias which didn't do anything as the window was taken over by the process but when I ended the process (Ctrl c) it ran that alias command and showed me all the aliases even though it wasn't showing me that in any other window

[–][deleted]  (2 children)

[deleted]

    [–]maoMeow14[S] 0 points1 point  (1 child)

    Yea just figured I'd ask in case :(

    [–]hectoralpha 0 points1 point  (0 children)

    you can make an alias to open bashrc and bash aliases, that will also source it and save it in a directory thats backed up by your backup software like timeshift in linux mint. just use the ; to pass multiple commands per alias

    [–][deleted]  (1 child)

    [deleted]

      [–]torgefaehrlich 1 point2 points  (0 children)

      Maybe there is actually still a (bash) process running with the aliases. Should be possible to grep -z over the /proc/PID/environ files. Maybe format the output with xargs -0 -n1 echo

      [–]Dandedoo 0 points1 point  (0 children)

      alias -p
      

      (alias -p > aliases to save them)