summaryrefslogtreecommitdiff
path: root/cargo-config.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cargo-config.sh')
-rw-r--r--cargo-config.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/cargo-config.sh b/cargo-config.sh
new file mode 100644
index 0000000..2338945
--- /dev/null
+++ b/cargo-config.sh
@@ -0,0 +1,5 @@
+# Copy cargo config from skel if it is not exist
+if [ ! -f "$HOME/.cargo/config.toml" ] ; then
+ mkdir -p $HOME/.cargo
+ cp -f /etc/skel/.cargo/config.toml $HOME/.cargo
+fi