diff options
Diffstat (limited to 'backup_gitconfig.sh')
-rwxr-xr-x | backup_gitconfig.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backup_gitconfig.sh b/backup_gitconfig.sh new file mode 100755 index 0000000..30d13ea --- /dev/null +++ b/backup_gitconfig.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -o errexit -o nounset -o pipefail + +script_dir="$( cd "$( dirname -- "${BASH_SOURCE[0]}" )" && pwd )" +cp --remove-destination -- "$script_dir/%HOME%/.gitconfig" ~ |