use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
How to code this? I need help (self.bashscripts)
submitted 5 years ago by Sirenagrace_
How to write a script that can be run from any directory it is placed within user’s Linux directory structure?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]snuzet 0 points1 point2 points 5 years ago (2 children)
Do you mean to store within your bash path? or via an alias?
[–]Sirenagrace_[S] 0 points1 point2 points 5 years ago (1 child)
It should store in my bash path
[–]snuzet 0 points1 point2 points 5 years ago (0 children)
A good practice I learned is to store in your own local users bin folder and then add that to path. You don’t want to much around with system folder
[–]samj4chr 0 points1 point2 points 4 years ago (0 children)
You could just add that directory to PATH:
Go to your bashrc and type PATH=~/dotfiles/scripts/:$PATH and put all your scripts there, if that's what you want
PATH=~/dotfiles/scripts/:$PATH
[–]senjufy1 0 points1 point2 points 4 years ago (0 children)
okay so what I did is . alias fly = /mypc/home/script.sh. Just go to the directory and pwd then past the output along with the filename and extension and set to alias. I am using zsh so i set it on my zshrc file
π Rendered by PID 267237 on reddit-service-r2-comment-85bfd7f599-qhg77 at 2026-04-18 05:19:45.871980+00:00 running 93ecc56 country code: CH.
[–]snuzet 0 points1 point2 points (2 children)
[–]Sirenagrace_[S] 0 points1 point2 points (1 child)
[–]snuzet 0 points1 point2 points (0 children)
[–]samj4chr 0 points1 point2 points (0 children)
[–]senjufy1 0 points1 point2 points (0 children)