Update some pieces
This commit is contained in:
@ -1,19 +1,19 @@
|
||||
---
|
||||
title: "Tip: A bash alias for copying from the web"
|
||||
title: "Tip: A bash alias for copying commands from the web"
|
||||
shortTitle: Bash alias for copying from the web
|
||||
type: tip
|
||||
language: git
|
||||
tags: [configuration]
|
||||
author: chalarangelo
|
||||
cover: capsule-coffee
|
||||
excerpt: Many online resources prefix their terminal commands with a dollar sign. Luckily, we've got a solution to this small annoyance.
|
||||
excerpt: Learn how to eliminate the annoyance of copying dollar signs ($) along with terminal commands from the web with a simple bash alias.
|
||||
dateModified: 2023-03-05T05:00:00-04:00
|
||||
---
|
||||
|
||||
If you've ever copied a terminal command from the web, chances are you've also copied the dollar sign (`$`) that precedes it. This is a small annoyance that many developers encounter almost daily, but it can be easily dealt with. All you need to do is add an `alias` for the dollar sign to your `.bashrc` or `.zshrc` file:
|
||||
If you've ever copied a terminal command from the web, chances are you've also copied the **dollar sign** (`$`) that precedes it. This is a small annoyance that many developers encounter almost daily, but it can be easily dealt with. All you need to do is add an `alias` for the dollar sign to your `.bashrc` or `.zshrc` file:
|
||||
|
||||
```shell
|
||||
alias '$'=''
|
||||
```
|
||||
|
||||
But what about variables? Aren't these prefixed with a dollar sign? This alias won't break your scripts, as aliases replace only the first word of each simple command. Simply put, the only dollar sign that will be replaced is the one at the beginning of the line.
|
||||
But what about variables? Aren't these prefixed with a dollar sign? This bash alias won't break your scripts, as aliases replace only the first word of each simple command. Simply put, the only dollar sign that will be replaced is the one at the **beginning of the line**.
|
||||
|
||||
@ -1,10 +1,11 @@
|
||||
---
|
||||
title: DNS Record Basics
|
||||
title: A beginner's guide to DNS records
|
||||
shortTitle: DNS Record Basics
|
||||
type: cheatsheet
|
||||
tags: [webdev,dns,server,cheatsheet]
|
||||
author: chalarangelo
|
||||
cover: sparkles
|
||||
excerpt: DNS records may not be a thing you work too often with. Regardless, some basic knowledge can go a long way.
|
||||
excerpt: DNS records may not be something you work with frequently, but having a basic understanding can be highly beneficial.
|
||||
dateModified: 2022-01-09T05:00:00-04:00
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user