- Linux Distros
- macOS
- Windows
- When Rider Standalone version is installed in Linux, it comes without shell scripts, this gist can solve your problem.
DISCLAIMER:
- If you have more than one IDE from JetBrains, I strongly recommend you to install the Toolbox App, it solve the problem in the best way and do all the job for you, about update, shell scripts and what is necessary to your IDEs works correctly/uses of scripts in terminal!
- Tested only at the
Ubuntu
os, if you try in another system, let us know in the comments at the end of the gist!
- Verify where your JetBrains Rider was installed;
- Now you need to create an alias in your shell or zsh root:
- Access your /.oh-my-zsh folder; /home/{userName}/.oh-my-zsh/custom
- Inside it, create a file anyName.zsh;
- Add the following alias in your new file
alias rider_path="/{yourPathToRider}/'JetBrains Rider-2022.2.1'/bin/rider.sh"
; - At the terminal, get back to the root path;
- Add this function to the final of your
.zshrc
file:
# rider open project
function rider() {
rider_path 0>/dev/null 1>/dev/null 2>/dev/null $1 &
}
# rider end
- Type
source ~/.zshrc
in your terminal; - In some cases, in addition to step 6, you should need to close your terminal and open a new one and to test the new alias.
- At the root path, edit your /.bashrc folder; /home/{userName}/.bashrc
- Add the following alias in your file
alias rider_path="/{yourPathToRider}/'JetBrains Rider-2022.2.1'/bin/rider.sh"
; - At the terminal, get back to the root path;
- Add this function to the final of your
.bashrc
file:
# rider open project
function rider() {
rider_path 0>/dev/null 1>/dev/null 2>/dev/null $1 &
}
# rider end
- Type
source ~/.zshrc
in your terminal; - In some cases, in addition to step 6, you should need to close your terminal and open a new one and to test the new alias.
- @minsk-dev: Implemented the Null device operation to work as planned, add
&
operator at the end of userInput at the terminal.