Best of Shell — 2024
- 1
- 2
- 3
- 4
- 5
Community Picks·2y
Starship: A Better Terminal Prompt in 2 Minutes
Starship is a minimal, fast, and customizable shell prompt designed for developers. It comes with built-in modules that automatically display relevant information, and it is easy to configure using TOML. Starship allows users to move or hide prompt information to create a visually efficient workflow, and it supports custom modules, making it adaptable to various development needs.
- 6
ITNEXT·2y
The Zsh Shell Tricks I Wish I’d Known Earlier
Enhance your command-line productivity with Zsh! Zsh is a powerful Unix shell known for its robust features like command-line editing, spell checking, and programmable completion. This guide offers practical tips on cursor navigation, line editing, globbing, command history, parameter expansion, and custom commands. Learn to navigate directories efficiently, create and bind custom commands, and use Zsh’s advanced features to optimize your workflow. Whether you're a developer, system administrator, DevOps engineer, or tech enthusiast, mastering Zsh can significantly boost your efficiency.
- 7
Community Picks·2y
10 simple Linux tips which save 50% of my time in the command line
Discover 10 simple Linux tips to save time in the command line and work efficiently in UNIX. Learn how to execute previous commands quickly, repeat the last command, use history to find frequently used commands, apply regular expressions in grep and find, use aliases, and more.
- 8
Community Picks·2y
BASH/Linux Interview Question for DevOps Engineers
This post covers various interview questions for DevOps engineers related to BASH and Linux, including types of variables used in shell scripting, checking if a file exists, default file permissions, CRONTAB, debugging shell scripts, disk usage, shebang line, Linux process stages, metacharacters, renaming files, reading command line arguments, standard streams in Linux, differentiating between two shell variables, checking file existence, extracting part of a string variable, differences in string matching, SSH authentication, special shell variable $?, using grep to find numeric digits, listing file names only, checking if a zip file contains a directory, and when to use curly braces around shell variables.
- 9
- 10
- 11
- 12
Community Picks·1y
Optimizing Your Linux Shell Experience
Optimize your Linux shell experience by using Huffman encoding principles. By measuring the frequency of your most-used commands, you can create shorter aliases to save time and reduce typos. Examples include aliases for common git commands. This method is applicable to both zsh and bash users.
- 13
Lobsters·2yIn praise of Nushell
Nushell is a non-POSIX shell implemented in Rust that handles structured data and provides a powerful, incremental way of working with pipelines in the terminal. It redefines common shell commands to output structured data and offers a range of basic types and commands for transforming data.
- 14
- 15
Community Picks·2y
Distinctions Between Terminal, Command Line, Shell, and Prompt
Understanding the distinctions between terminal, command line, shell, and prompt can be challenging for newcomers to Linux. The terminal is a graphical interface that runs a shell where commands are executed. The shell processes these commands, while the prompt indicates system readiness for input. The command line is a broader term for an interface where users run commands.
- 16
Hacker News·1y
jdx/mise: dev tools, env vars, task runner
Mise is a versatile front-end tool for development environments, managing development tools, environment variables, and tasks similar to asdf, direnv, and make respectively. It supports installing and switching between different versions of tools like node, python, cmake, terraform, and more. It can be easily installed and integrated into various shells.
- 17
Community Picks·2y
Set up a Mac in 2024 for Power Users and Developers
Learn how to set up a Mac for power users and developers with basic OS settings, essential apps, and customization tips for the dock, finder, and terminal. Discover useful extensions for VS Code and how to configure them. This post provides a comprehensive guide to optimize your Mac experience.
- 18
Hacker News·1y
The Biggest Shell Programs in the World
This post lists some of the largest and most substantial shell programs, focusing on hand-written scripts that use data structures and algorithms, and those exceeding 5,000 lines of code. Examples include ble.sh, a sophisticated Bash Line Editor with 61K lines of code; testssl.sh, a single-file script with 21K lines; Simplenetes, Kubernetes in 17K lines of shell; powerlevel10k, a Zsh theme with 12K lines of code; and many others. These scripts demonstrate advanced programming techniques and complexity within shell scripting.
- 19
Nick Janetakis·2y
clear vs CTRL + L in Your Shell
Learn about the difference between using clear and CTRL + L in the shell to clear the screen and buffer. CTRL + L clears the visible output while still allowing you to scroll up, while clear also clears the buffer. Watch the demo video to see it in action.
- 20
- 21
Hacker News·2y
tzador/makedown: Organise your shell scripts in executable markdown files
makedown combines the use of Markdown and the functionality of Makefiles to organize and execute shell scripts. It supports multiple languages like zsh, bash, JavaScript, and Python. Key features include executable markdown scripting, syntax highlighting, and autocomplete support. Installation can be done via pip, and commands can be run from markdown files using 'makedown' or its shorthand 'm'.
- 22
Hacker News·2y
wolandark/bash-dungeon: An educational dungeon crawler in the shell
An educational dungeon crawler game created in bash, where directories represent dungeons, aiming to teach new users shell commands in a fun and interactive manner. It's a work in progress and requires Docker to get started. Users can sign up for a free GitPod account, pull the docker image, and follow simple commands like `cd`, `ls`, and `cat` to play.
- 23
Changelog·2y
Writing a shell in Go with Qi Xiao (Go Time #336)
Johnny and Qi Xiao discuss the complexities and methods of writing a shell using the Go programming language. They delve into various aspects of the project, offering practical advice and insights for developers interested in undertaking such a feat.
- 24
Lobsters·2ymeithecatte/bashfuck: Write any bash with only the punctuation characters
bashfuck is a unique bash dialect allowing the use of only ASCII special characters, without letters or numbers. It comes with a bashfuck encoder for translating regular bash scripts. The tool relies on the precise wording of bash error messages in English locales and utilizes a workaround for capturing stderr. Users are encouraged to improve the existing decoding code through contributions.
- 25
Chris Titus Tech·2y
The Linux Utility v1.0
Chris Titus introduces a new Linux Utility script with a Rust wrapper designed to simplify various Linux tasks. The utility allows users to quickly set up and customize their Linux environments. It includes scripts written in bash and integrates seamlessly across different Linux distributions like Fedora, Debian, and Arch. Chris emphasizes the importance of open-source collaboration and invites contributors to help improve the tool further.