Instantly share code, notes, and snippets.
Save nex3/c395b2f8fd4b02068be37c961301caa7 to your computer and use it in GitHub Desktop.
ghost commentedJun 25, 2021
It is not working for me. I am using kali linux. Do you know what is the problem?
ghost commentedJul 7, 2021
Life saver 👍
JosephBerm commentedSep 5, 2021
Excellent work. Thank you for this upload.
moghaazi commentedSep 9, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
For those using Z-Shell (zsh) don't forget it's .zshrc instead of .bash_profile
I forget that and spent 3 hours trying all solutions, till I read your comment.
ghost commentedOct 21, 2021
Works on Command prompt. But not in Bash? can anyone help?.
codewith-SJ commentedFeb 22, 2022
it still says unknown command lvim
byteknight commentedFeb 26, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
RapidEE is an outstanding alternative to the Windows built-in control panel dialog box for environment variable management and viewing, including thePATH
variable, of course. For those who like text walls, read on! xP
BTW, thanks nex3. Cool tips!
TL;DR Version:
Although it's not necessary in the slightest, and for the standard non-hacker end-user probably smacks of overkill, if you are like me in meeting the following two criteria:
- A. Are forced to use Windows due to its popularity or your own masochistic tendencies; and furthermore
- B. Make use of environment variables (esp.
PATH
) fairly often, like most developers,
then you should find inRapidEE a beautiful tool to replace the tiny control panel dialog box. The native Windows method is fine for simple, "one-off" changes toPATH
or a different variable, for a more comprehensive, "bird's eye" view of both systemand user variables and the ability to add/delete or modify them—all quickly and easily,without the confusion the regular dialog can entail—the handy, small program calledRapid Environment Editor (orRapidEE) is more than sufficient. Although it's closed-source (afaik), it's free, up-to-date and even supports operations on variables via command-line arguments.
I'm fully aware there are other apps that fill the same need, many of them FOSS, but when I use Windows RapidEE has served me very well, and its features continue to save me many headaches from confusion, tedium and their ilk. Anyway, happy hacking, guys, and thanks again nex3!
ricky900 commentedMar 14, 2022
i tried for lunarvim and its not working
export PATH="$PATH: ~/.local/bin/"
fatherofphysics commentedMar 14, 2022
i tried for lunarvim and its not working export PATH="$PATH: ~/.local/bin/"
use this export PATH="your-dir:$PATH"
linconl-cmd commentedMar 18, 2022
In my experience , used : export PATH=/.cargo/bin:/.local/bin:$PATH In file .bashrc appended last line
ps. DIST. ARCH
mauriciocoruja commentedApr 14, 2022
Still helpful. tks
Chirpingdusty commentedMay 5, 2022
for those using fish on macOS,
go to /Users/
account-name/.config/fishopen config.fish and paste the following line inside the file
export PATH="/Users/account-name/.local/bin:$PATH"
billnice250 commentedMay 8, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Sometimes, I noticed modifying the .bashrc file doesn't work instead,
Adding the new PATH in .zshrc file (which is the default shell for MacOs) works for me.
add a new line in the file $HOME/.zshrc:
#for example
export PATH="your-bin-dir:$PATH"
then run
source $HOME/.zshrc
to reflesh the file
mra-ruiz commentedAug 25, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
For those using Z-Shell (zsh) don't forget it's .zshrc instead of .bash_profile
Thank you!! This worked for me too
azadpsg commentedJan 2, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
for fish terminal users use this
fish_add_pathexport'/home/$USER/.local/bin'
Thesecondbestname commentedJan 22, 2023
for fish terminal users use this
fish_add_pathexport'/home/$USER/.local/bin'
Ok but how does this work? I'm not on my computer rn so I can't check, I am very new and have never seen a fish config file. Could you please explain how this works? Especially because I've seen the path to lunarvim in every other solution.
aristotelesbr commentedFeb 21, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Create an alias and happy coding.
In~/.config/fish/config.fish
add:
alias lvim="~/.local/bin/lvim"
But, to use correctlyexport from fish use:
fish_add_path -m~/.local/bin
oxido-std commentedApr 7, 2023
Thank you. I'm new in linux and thats was driving me crazy.
XEROGAMINN13 commentedJun 2, 2023
termux:cp .local/bin/lvim ../usr/bin/
tinyBrained commentedSep 14, 2023
Hi i am very new to this, so the issues i have right now is, my college has blocked settings and control panel all together and so i am not able to flutter sdk to path using this method, is there anyother way i could add it to path?
tim-247 commentedOct 20, 2023
On linux/macos can you use ~ in your PATH variable or do you have to use the full path to your home folder?
jaimeleo8821 commentedNov 2, 2023
Thanks, I can also edit the /etc/profile to add directory to $PATH and make it permanently.
dwayneheasley commentedNov 22, 2023
worked perfectly, many thanks
@getaway shootout
ShengzheXu commentedDec 12, 2023
For those using Z-Shell (zsh) don't forget it's .zshrc instead of .bash_profile
Hero! Thanks.
correiamath commentedFeb 3, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
SUMMARY
(For who came from LunarVim doc)
Step 1: Open your.bashrc
file
Use a text editor of your choice to open the.bashrc
file. In this example, I'll use thenano
editor:
nano /home/your-user-name/.bashrc
Step 2: Add the directory to the PATH
In the opened.bashrc
file, go to the last line and add the following:
export PATH=/home/your-user-name/.local/bin:$PATH
Step 3: Save and exit
After adding the line to the file, save your changes by pressingCtrl + O
, then press Enter. To exit the editor, pressCtrl + X
.
Now, the specified directory is added to your PATH. This means that executable programs in the specified directory can be executed from any location in the terminal without needing to provide the full path.
dnice1987 commentedFeb 27, 2024
DeepakM-HnH commentedMay 1, 2024
added soanr scanner path in system environment variable "C:\sonar-scanner\bin" and trying to access this path from cicd workflow but it never finding.
Run echo "C:\sonar-scanner\bin" >> $GITHUB_PATH
echo "C:\sonar-scanner\bin" >> $GITHUB_PATH
pls let me know after adding path in enviroment varibale how to get path in workflow.
likoser12 commentedDec 2, 2024
Create an alias and happy coding.
In ~/.config/whatsapp/config.bluewhatsapp add:
alias lvim="~/.local/bin/lvim"
But, to use correctlyBluewhatsapp use:
whatsapp_add_path -m ~/.local/bin
kiltuqw commentedDec 2, 2024
worked perfectly, many many thanks
@goldwhats
MelanieS commentedMar 18, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
If you're in Windows 10 or 11, how to add to your path:https://youtu.be/rWVaxSWvxUQ