diff options
author | Tristan Williams <tgwil@tgwil.net> | 2024-10-13 02:43:42 -0400 |
---|---|---|
committer | Tristan Williams <tgwil@tgwil.net> | 2024-10-13 02:43:42 -0400 |
commit | 85e0c23f93e68e5c085bc8b5e98add8aaafa4f24 (patch) | |
tree | 6d49418ae962fcf0ceadc37afd3f8f7492a75e9b /home/.bash_aliases | |
parent | Create installer (diff) | |
download | dotfiles.core-85e0c23f93e68e5c085bc8b5e98add8aaafa4f24.tar.gz dotfiles.core-85e0c23f93e68e5c085bc8b5e98add8aaafa4f24.tar.bz2 dotfiles.core-85e0c23f93e68e5c085bc8b5e98add8aaafa4f24.zip |
Add ~/.bash_aliases
Diffstat (limited to 'home/.bash_aliases')
-rw-r--r-- | home/.bash_aliases | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/home/.bash_aliases b/home/.bash_aliases new file mode 100644 index 0000000..fd68320 --- /dev/null +++ b/home/.bash_aliases | |||
@@ -0,0 +1,43 @@ | |||
1 | #!/usr/local/bin/bash | ||
2 | # | ||
3 | # FILE : dotfiles.core/home/.bash_aliases | ||
4 | # TARGET: ~/.bash_aliases | ||
5 | # AUTHOR: tgwil | ||
6 | # | ||
7 | # This file contains core bash aliases for use on every account on | ||
8 | # every machine. Other aliases are included by other alias files from | ||
9 | # other dotfiles repositories. | ||
10 | |||
11 | |||
12 | ######################################################################## | ||
13 | ## File Management | ||
14 | ######################################################################## | ||
15 | # Improve ls output | ||
16 | if [ -x "$(command -v exa)" ]; then | ||
17 | alias ls="exa -1aFghlmU --git --color=always --sort=name --time-style=iso --group-directories-first" | ||
18 | else | ||
19 | alias ls="ls -alhpv --color=always" | ||
20 | fi | ||
21 | |||
22 | # Make things a bit safer | ||
23 | alias mv="mv -i" | ||
24 | alias cp="cp -i" | ||
25 | alias ln="ln -i" | ||
26 | |||
27 | |||
28 | ######################################################################## | ||
29 | ## Diagnostics | ||
30 | ######################################################################## | ||
31 | # Try to humanize Disk Space | ||
32 | if [ -x "$(df -H ~)" ]; then | ||
33 | alias df='df -H' | ||
34 | elif [ -x "$(df -h ~)" ]; then | ||
35 | alias df='df -h' | ||
36 | fi | ||
37 | |||
38 | |||
39 | ######################################################################## | ||
40 | ## Networking | ||
41 | ######################################################################## | ||
42 | # Avoid soul crushing doom when downloading | ||
43 | alias wget="wget -c --tries=10 --timeout=10 --waitretry=15s" | ||