Skip to content
Snippets Groups Projects
Commit e965901a authored by Jörg Sachse's avatar Jörg Sachse
Browse files

feat: add useful Bash functions

parent cba2e3ac
Branches
No related tags found
No related merge requests found
function mcd () {
mkdir -p "$1";
[[ $? -eq 0 ]] && cd "$1";
}
function backup() { cp "$1"{,.BAK}; }
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
loop: loop:
- "etc/bash.promptrc" - "etc/bash.promptrc"
- "etc/profile.d/bash_aliases.sh" - "etc/profile.d/bash_aliases.sh"
- "etc/profile.d/bash_functions.sh"
- name: configure systemwide bashrc (Bash completion, import custom prompt) - name: configure systemwide bashrc (Bash completion, import custom prompt)
blockinfile: blockinfile:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment