fmt + brewfile update

This commit is contained in:
2023-04-22 14:57:27 +03:00
parent e929b85669
commit d8292ca033
3 changed files with 34 additions and 12 deletions

View File

@@ -69,6 +69,8 @@ brew "eg-examples"
brew "faas-cli" brew "faas-cli"
# Simple, fast and user-friendly alternative to find # Simple, fast and user-friendly alternative to find
brew "fd" brew "fd"
# Banner-like program prints strings as ASCII art
brew "figlet"
# Libraries to talk to Microsoft SQL Server and Sybase databases # Libraries to talk to Microsoft SQL Server and Sybase databases
brew "freetds" brew "freetds"
# Monitor a directory for changes and run a shell command # Monitor a directory for changes and run a shell command
@@ -131,6 +133,8 @@ brew "lazydocker"
brew "libpq" brew "libpq"
# Linguistic software and Finnish dictionary # Linguistic software and Finnish dictionary
brew "libvoikko" brew "libvoikko"
# Rainbows and unicorns in your console!
brew "lolcat"
# Package manager for the Lua programming language # Package manager for the Lua programming language
brew "luarocks" brew "luarocks"
# Swiss Army Knife for macOS # Swiss Army Knife for macOS
@@ -157,6 +161,8 @@ brew "pandoc"
brew "perl" brew "perl"
# General-purpose scripting language # General-purpose scripting language
brew "php@8.1" brew "php@8.1"
# Simple Python style checker in one Python file
brew "pycodestyle"
# Python version management # Python version management
brew "pyenv" brew "pyenv"
# Migrate pip packages from one Python version to another # Migrate pip packages from one Python version to another
@@ -215,6 +221,8 @@ brew "watch"
brew "wget" brew "wget"
# Personal information dashboard for your terminal # Personal information dashboard for your terminal
brew "wtfutil" brew "wtfutil"
# Check your $HOME for unwanted files and directories
brew "xdg-ninja"
# JavaScript package manager # JavaScript package manager
brew "yarn" brew "yarn"
# A vulnerability scanner for container images and filesystems # A vulnerability scanner for container images and filesystems
@@ -293,6 +301,8 @@ cask "quicklook-json"
cask "quicklookase" cask "quicklookase"
# Automatically hides or quits apps after periods of inactivity # Automatically hides or quits apps after periods of inactivity
cask "quitter" cask "quitter"
# Control your tools with a few keystrokes
cask "raycast"
# Move and resize windows using keyboard shortcuts or snap areas # Move and resize windows using keyboard shortcuts or snap areas
cask "rectangle" cask "rectangle"
# MySQL/MariaDB database management # MySQL/MariaDB database management

View File

@@ -6,7 +6,7 @@
source "$DOTFILES/scripts/shared.sh" source "$DOTFILES/scripts/shared.sh"
# Weather in Tampere, or other city # Weather in Tampere, or other city
function weather weather()
{ {
# https://github.com/chubin/wttr.in#usage # https://github.com/chubin/wttr.in#usage
local city="${1:-Tampere}" local city="${1:-Tampere}"
@@ -14,25 +14,25 @@ function weather
} }
# Docker # Docker
function ssh-docker ssh-docker()
{ {
docker exec -it "$@" bash docker exec -it "$@" bash
} }
# Create a new directory and enter it # Create a new directory and enter it
function mkd mkd()
{ {
mkdir -p "$@" && cd "$@" || exit mkdir -p "$@" && cd "$@" || exit
} }
# All the dig info # All the dig info
function digga digga()
{ {
dig +nocmd "$1" any +multiline +noall +answer dig +nocmd "$1" any +multiline +noall +answer
} }
# Rector project to php version 8.0 by default. # Rector project to php version 8.0 by default.
function rector rector()
{ {
local php="${1:-80}" local php="${1:-80}"
docker run -v "$(pwd)":/project rector/rector:latest process \ docker run -v "$(pwd)":/project rector/rector:latest process \
@@ -42,7 +42,7 @@ function rector
} }
# Commit everything # Commit everything
function commit commit()
{ {
commitMessage="$*" commitMessage="$*"
@@ -54,7 +54,7 @@ function commit
eval "git commit -a -m '${commitMessage}'" eval "git commit -a -m '${commitMessage}'"
} }
function scheduler scheduler()
{ {
while :; do while :; do
php artisan schedule:run php artisan schedule:run
@@ -63,13 +63,26 @@ function scheduler
done done
} }
function silent silent()
{ {
"$@" >&/dev/null "$@" >&/dev/null
} }
ask()
{
while true; do
read -p "$1 ([y]/n) " -r
REPLY=${REPLY:-"y"}
if [[ $REPLY =~ ^[Yy]$ ]]; then
return 1
elif [[ $REPLY =~ ^[Nn]$ ]]; then
return 0
fi
done
}
# Defines default antigen bundles # Defines default antigen bundles
function x-default-antigen-bundles x-default-antigen-bundles()
{ {
# these should be always available # these should be always available
antigen bundle colored-man-pages antigen bundle colored-man-pages
@@ -83,7 +96,6 @@ function x-default-antigen-bundles
antigen bundle zsh-users/zsh-syntax-highlighting antigen bundle zsh-users/zsh-syntax-highlighting
# these should be available if there's need # these should be available if there's need
have git && antigen bundle git
have brew && antigen bundle brew have brew && antigen bundle brew
have docker && antigen bundle docker have docker && antigen bundle docker
have docker-compose && antigen bundle sroze/docker-compose-zsh-plugin have docker-compose && antigen bundle sroze/docker-compose-zsh-plugin

View File

@@ -94,8 +94,8 @@ function section_install
nvm) nvm)
curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/$VERSION_NVM/install.sh" | bash \ curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/$VERSION_NVM/install.sh" | bash \
&& nvm install --lts --latest-npm --default && nvm install --lts --latest-npm --default
git checkout "$DOTFILES/base/zshrc" git checkout "$DOTFILES/base/zshrc"
msg_yay "nvm installed!" msg_yay "nvm installed!"
;; ;;
npm) npm)
bash "$DOTFILES/scripts/install-npm-packages.sh" \ bash "$DOTFILES/scripts/install-npm-packages.sh" \