diff options
| author | Deposite Pirate | 2025-01-12 14:40:33 +0100 |
|---|---|---|
| committer | Deposite Pirate | 2025-01-12 14:40:33 +0100 |
| commit | e7764f9b08072cfb67c2d3ecf075df9a80aee6fd (patch) | |
| tree | 628d5f66e1d62f1d710bcbe472aa68b5e19522f8 /functions/mkhomedirs.fish | |
| parent | 62d7fa8cfa2e6de053d7c1238bd8fdcdf0cc8a7d (diff) | |
Import config.
Diffstat (limited to 'functions/mkhomedirs.fish')
| -rw-r--r-- | functions/mkhomedirs.fish | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/functions/mkhomedirs.fish b/functions/mkhomedirs.fish new file mode 100644 index 0000000..7052baf --- /dev/null +++ b/functions/mkhomedirs.fish @@ -0,0 +1,24 @@ +function mkhomedirs --description 'Make common directories in $HOME' + +set -f saveumask (umask) +umask 0077 + +mkdir -p \ + ~/Config \ + ~/.config/fish/conf.d \ + ~/.config/fish/functions \ + ~/.local/bin \ + ~/.local/share/nvim/site/pack/local/start \ + ~/.gnupg + +if string match -q -e 'Linux' (uname) + +mkdir -p \ + ~/.local/share/applications \ + ~/.config/systemd/user + +end + +umask $saveumask + +end |
