ShellCheck
ohmyzsh
Our great sponsors
- InfluxDB - Access the most powerful time series database as a service
- SonarLint - Clean code begins in your IDE with SonarLint
- ONLYOFFICE ONLYOFFICE Docs ā document collaboration in your environment
- CodiumAI - TestGPT | Generating meaningful tests for busy devs
ShellCheck | ohmyzsh | |
---|---|---|
457 | 529 | |
32,187 | 159,355 | |
- | 1.5% | |
7.7 | 9.6 | |
7 days ago | 5 days ago | |
Haskell | Shell | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ShellCheck
-
First time writing bash scripts for work, not sure if this is true elsewhere
not sure about unit/functional testing, but https://www.shellcheck.net/ is handy for linting and finding bad practice.
-
Bash newbie here, wanted to know your opinion
First, how did ShellSheck didn't give you warnings, if you checked it?
-
Bash script string argument is interpreted als multiple arguments
BTW, check out https://www.shellcheck.net/. You can install it to your computer and it'll warn you about this and many other ways you can accidentally shoot at your own foot with Bash.
-
Take your BASH scripting seriously
This is super easy but, may not always be enough.. Luckily, the fine people at ShellCheck gave this some thought and created a nifty tool. Itās got a nice README, is available via most decent package managers and, even has a web interface where you can test snippets (in case youāre bored and on the tube, I guess). The README also includes a Gallery of bad code to showcase some of the stuff shellcheck can pick upĀ on.
-
Which Shell?
Bash because it's everywhere and I've put effort into learning it properly. My scripts almost always pass shellcheck first try, and I know the syntax of bash-specific features reasonably well. I don't see any advantage to learning another shell which I need to explicitly install and relearn all over again.
-
[P] Convert Any language to a Linux command (one-liner)
The Prompt logic could include some nuance to flag potentially harmful commands, but it would still be potentially fallible. However, you raise an excellent point, and value can be added by altering the workflow to run the results through a tool like shellcheck, where you can customize acceptable BASH commands.
-
Prompt advice for ChatGPT4
Idea: Incorporate shellcheck that repeats the code back to the bot until it passes shellcheck at least.
-
Why is it that a command run from the terminal command line produces line break but the same command run within bash script has no line break/
A good way to learn the finicky bits is to run all your scripts through shellcheck. (Better yet, find a plugin for your editor/IDE.) If it flags an issue, read the corresponding wiki page and see if you understand it.
-
Would love some feedback on my first set of shell scripts
Have you run them through shellcheck? https://www.shellcheck.net/
-
I made a volume and brightness indicator for i3wm using dunst
Nice work! I recommend using https://www.shellcheck.net/ to make sure your bash script is in a good modern shape
ohmyzsh
- Configuração do Windows para desenvolvimento
-
Recommend A Theme
oh-my-zsh for Mac
-
How to Install and Set Up Terminator + Oh My ZSH! on Ubuntu 23.04
I've been a fan and loyal user of Oh-my-Zsh! for many years; it makes my shell more useful with little things such as git branch information and smart autocomplete.
To choose a theme, you can have a look at OMZ Themes Section and also the external themes section from their Wiki to choose a theme that you like.
-
Manjaro as my Dev Enviroment
I use kitty, with a Nord theme, transparency, and Zsh with Oh My Zsh, using the clean theme.
-
Software Developer Mac Apps
These are just apps I directly use. You may also like e.g. Fig if you work in the command line and like knowing what actions are supported, though I find Oh My Zsh with autocompletion + on tab suitable.
-
no-my-zsh Killed My History
If you like how oh-my-zsh configures history, then either use oh-my-zsh or copy-paste the code from it: https://github.com/ohmyzsh/ohmyzsh/blob/master/lib/history.zsh.
oh-my-zsh is open source, so you can check what it does. The code is here: https://github.com/ohmyzsh/ohmyzsh/blob/master/lib/key-bindings.zsh. The widget is called up-line-or-beginning-search and you need to autoload it.
-
Fastest way to open emacs
Almost.. I'm not literally typing emacslcient -a"" all the time, I've got https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/emacs/emacsclient.sh linked into my PATH as "edit".
-
Oh-my-zsh without oh-my-zsh?
"ohmyzsh/ohmyzsh path:lib" tells Antidote to download the github repository found at github.com/ohmyzsh/ohmyzsh and then load everything in the lib directory that Antidote just downloaded for you.
What are some alternatives?
oh-my-posh - The snappy and most customisable cross platform/shell prompt renderer
starship - āšļø The minimal, blazing-fast, and infinitely customizable prompt for any shell!
oh-my-bash - A delightful community-driven framework for managing your bash configuration, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
powerlevel10k - A Zsh theme
oh-my-fish - The Fish Shell Framework
spaceship-prompt - :rocket::star: Minimalistic, powerful and extremely customizable Zsh prompt
zsh-autocomplete - š¤ Real-time type-ahead completion for Zsh. Asynchronous find-as-you-type autocompletion.
powerline-shell - A beautiful and useful prompt for your shell
alacritty - A cross-platform, OpenGL terminal emulator.
thefuck - Magnificent app which corrects your previous console command.
bash-language-server - A language server for Bash
zimfw - Zim: Modular, customizable, and blazing fast Zsh framework