Skip to content

Commit

Permalink
Add scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardolat committed Jul 20, 2024
1 parent f0acbad commit c0743c5
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/fixperms.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/bash

# Fix permissions of all files in the current directory and subdirectories
chmod -R 777 ./
39 changes: 39 additions & 0 deletions scripts/startup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Define command aliases
alias t='task'
alias td='task dev'
alias tb='task build'
alias tt='task test'
alias tl='task lint'
alias tf='task format'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias ..='cd ..'
alias c='clear'
echo "[OK] aliases set"

# Set the user file-creation mode mask to 000, which allows all
# users read, write, and execute permissions for newly created files.
umask 000
echo "[OK] umask set"

# Run the 'fixperms' task that fixes the permissions of the files and
# directories in the project.
task fixperms
echo "[OK] permissions fixed"

# Configure Git to ignore ownership and file mode changes.
git config --global --add safe.directory '*'
git config --global core.fileMode false
git config --unset core.fileMode
git config core.fileMode false
echo "[OK] git configured"

echo "
───────────────────────────────────────────────
── Website: https://eduardo.lat ───────────────
── Github: https://github.com/eduardolat ──────
───────────────────────────────────────────────
── Development environment is ready to use! ───
───────────────────────────────────────────────
"

0 comments on commit c0743c5

Please sign in to comment.