Skip to content

Commit

Permalink
add dds alias
Browse files Browse the repository at this point in the history
  • Loading branch information
albertodonato committed Dec 29, 2023
1 parent 401c1b1 commit b7c6d3a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,14 @@ The repository consists of the following directories:
these are basically what goes in `.bashrc`, split in different files. Files
in this directory are automatically sourced at shell startup in alphabetic
order.

## Setup

To install:

```bash
mkdir -p ~/system
git clone https://github.com/albertodonato/bash.d ~/system/bash.d
mv ~/.bashrc ~/.bashrc.orig
ln -sf system/bash.d/bashrc ~/.bashrc
```
2 changes: 2 additions & 0 deletions rc.d/200-alias.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ pytree() {
find "$1" -not -regex '.*__pycache__.*' | tree --fromfile
}

alias dds="dd status=progress oflag=sync"

# shellcheck disable=SC2142
alias diffcount="diffstat -s | awk -F, '{ gsub(/[^0-9,]/, \"\"); print \$2+\$3; }'"

Expand Down

0 comments on commit b7c6d3a

Please sign in to comment.