mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-06 09:59:33 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b139ff6136 | ||
|
|
fd6f59706b | ||
| 4edca57eea | |||
| 26dbcedf1b |
12
Brewfile
12
Brewfile
@@ -20,6 +20,7 @@ brew "autoconf"
|
|||||||
brew "bandwhich"
|
brew "bandwhich"
|
||||||
brew "brew-php-switcher"
|
brew "brew-php-switcher"
|
||||||
brew "glib"
|
brew "glib"
|
||||||
|
brew "pkg-config"
|
||||||
brew "coreutils"
|
brew "coreutils"
|
||||||
brew "openldap"
|
brew "openldap"
|
||||||
brew "zstd"
|
brew "zstd"
|
||||||
@@ -34,9 +35,7 @@ brew "git"
|
|||||||
brew "git-extras"
|
brew "git-extras"
|
||||||
brew "git-flow-avh"
|
brew "git-flow-avh"
|
||||||
brew "git-recent"
|
brew "git-recent"
|
||||||
brew "git-standup", link: false
|
|
||||||
brew "gnu-sed"
|
brew "gnu-sed"
|
||||||
brew "p11-kit"
|
|
||||||
brew "unbound"
|
brew "unbound"
|
||||||
brew "gnutls"
|
brew "gnutls"
|
||||||
brew "gnupg"
|
brew "gnupg"
|
||||||
@@ -64,9 +63,6 @@ brew "nvm"
|
|||||||
brew "openjdk"
|
brew "openjdk"
|
||||||
brew "openapi-generator"
|
brew "openapi-generator"
|
||||||
brew "openfortivpn"
|
brew "openfortivpn"
|
||||||
brew "php"
|
|
||||||
brew "php-cs-fixer"
|
|
||||||
brew "phpmd"
|
|
||||||
brew "phpstan"
|
brew "phpstan"
|
||||||
brew "python@3.8"
|
brew "python@3.8"
|
||||||
brew "qcachegrind"
|
brew "qcachegrind"
|
||||||
@@ -75,6 +71,7 @@ brew "rcm"
|
|||||||
brew "ripgrep"
|
brew "ripgrep"
|
||||||
brew "ruby"
|
brew "ruby"
|
||||||
brew "shellcheck"
|
brew "shellcheck"
|
||||||
|
brew "shfmt"
|
||||||
brew "skopeo"
|
brew "skopeo"
|
||||||
brew "terminal-notifier", link: false
|
brew "terminal-notifier", link: false
|
||||||
brew "terraform@0.12"
|
brew "terraform@0.12"
|
||||||
@@ -101,8 +98,13 @@ brew "shivammathur/php/php@8.0"
|
|||||||
brew "wpscanteam/tap/wpscan"
|
brew "wpscanteam/tap/wpscan"
|
||||||
cask "fig"
|
cask "fig"
|
||||||
cask "fog"
|
cask "fog"
|
||||||
|
cask "fontplop"
|
||||||
|
cask "fork"
|
||||||
cask "google-cloud-sdk"
|
cask "google-cloud-sdk"
|
||||||
cask "insomnia"
|
cask "insomnia"
|
||||||
|
cask "iterm2"
|
||||||
|
cask "keybase"
|
||||||
|
cask "lens"
|
||||||
cask "ngrok"
|
cask "ngrok"
|
||||||
cask "qlimagesize"
|
cask "qlimagesize"
|
||||||
cask "qlmarkdown"
|
cask "qlmarkdown"
|
||||||
|
|||||||
77
install.sh
Normal file
77
install.sh
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# Usage:
|
||||||
|
#
|
||||||
|
# sh install.sh
|
||||||
|
#
|
||||||
|
# Environment variables: VERBOSE, CP, LN, MKDIR, RM, DIRNAME.
|
||||||
|
#
|
||||||
|
# env VERBOSE=1 sh install.sh
|
||||||
|
#
|
||||||
|
# DO NOT EDIT THIS FILE
|
||||||
|
#
|
||||||
|
# This file is generated by rcm(7) as:
|
||||||
|
#
|
||||||
|
# rcup -B 0 -g
|
||||||
|
#
|
||||||
|
# To update it, re-run the above command.
|
||||||
|
#
|
||||||
|
: ${VERBOSE:=0}
|
||||||
|
: ${CP:=/bin/cp}
|
||||||
|
: ${LN:=/bin/ln}
|
||||||
|
: ${MKDIR:=/bin/mkdir}
|
||||||
|
: ${RM:=/bin/rm}
|
||||||
|
: ${DIRNAME:=/usr/bin/dirname}
|
||||||
|
verbose() {
|
||||||
|
if [ "$VERBOSE" -gt 0 ]; then
|
||||||
|
echo "$@"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
handle_file_cp() {
|
||||||
|
if [ -e "$2" ]; then
|
||||||
|
printf "%s " "overwrite $2? [yN]"
|
||||||
|
read overwrite
|
||||||
|
case "$overwrite" in
|
||||||
|
y)
|
||||||
|
$RM -rf "$2"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "skipping $2"
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
verbose "'$1' -> '$2'"
|
||||||
|
$MKDIR -p "$($DIRNAME "$2")"
|
||||||
|
$CP -R "$1" "$2"
|
||||||
|
}
|
||||||
|
handle_file_ln() {
|
||||||
|
if [ -e "$2" ]; then
|
||||||
|
printf "%s " "overwrite $2? [yN]"
|
||||||
|
read overwrite
|
||||||
|
case "$overwrite" in
|
||||||
|
y)
|
||||||
|
$RM -rf "$2"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "skipping $2"
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
verbose "'$1' -> '$2'"
|
||||||
|
$MKDIR -p "$($DIRNAME "$2")"
|
||||||
|
$LN -sf "$1" "$2"
|
||||||
|
}
|
||||||
|
handle_file_ln "/Users/ivuorinen/.dotfiles/Brewfile" "/Users/ivuorinen/.Brewfile"
|
||||||
|
handle_file_ln "/Users/ivuorinen/.dotfiles/alias" "/Users/ivuorinen/.alias"
|
||||||
|
handle_file_ln "/Users/ivuorinen/.dotfiles/bash_profile" "/Users/ivuorinen/.bash_profile"
|
||||||
|
handle_file_ln "/Users/ivuorinen/.dotfiles/bashrc" "/Users/ivuorinen/.bashrc"
|
||||||
|
handle_file_ln "/Users/ivuorinen/.dotfiles/config/antigen.zsh" "/Users/ivuorinen/.config/antigen.zsh"
|
||||||
|
handle_file_ln "/Users/ivuorinen/.dotfiles/config/gh/config.yml" "/Users/ivuorinen/.config/gh/config.yml"
|
||||||
|
handle_file_ln "/Users/ivuorinen/.dotfiles/gitconfig" "/Users/ivuorinen/.gitconfig"
|
||||||
|
handle_file_ln "/Users/ivuorinen/.dotfiles/gitignore_global" "/Users/ivuorinen/.gitignore_global"
|
||||||
|
handle_file_ln "/Users/ivuorinen/.dotfiles/huskyrc" "/Users/ivuorinen/.huskyrc"
|
||||||
|
handle_file_ln "/Users/ivuorinen/.dotfiles/install.sh" "/Users/ivuorinen/.install.sh"
|
||||||
|
handle_file_ln "/Users/ivuorinen/.dotfiles/vuerc" "/Users/ivuorinen/.vuerc"
|
||||||
|
handle_file_ln "/Users/ivuorinen/.dotfiles/zshrc" "/Users/ivuorinen/.zshrc"
|
||||||
20
local/bin/x-open-ports
Executable file
20
local/bin/x-open-ports
Executable file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# List open (listened) ports, without the crud that
|
||||||
|
# usually comes with `lsof -i`
|
||||||
|
#
|
||||||
|
# Originally from: https://www.commandlinefu.com/commands/view/8951
|
||||||
|
# Original author: https://www.commandlinefu.com/commands/by/wickedcpj
|
||||||
|
#
|
||||||
|
echo 'User: Command: Port:';
|
||||||
|
echo '=====================================================';
|
||||||
|
|
||||||
|
lsof -i 4 -P -n +c 0 | \
|
||||||
|
grep -i 'listen' | \
|
||||||
|
awk '{print $3, $1, $9}' | \
|
||||||
|
sed 's/ [a-z0-9\.\*]*:/ /' | \
|
||||||
|
sort -k 3 -n | \
|
||||||
|
xargs printf '%-20s %-25s %-5s\n' | uniq
|
||||||
|
|
||||||
|
echo "";
|
||||||
|
|
||||||
2
zshrc
2
zshrc
@@ -2,6 +2,8 @@
|
|||||||
[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh"
|
[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh"
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
export PATH="/opt/homebrew/bin:/opt/homebrew/sbin:$PATH"
|
||||||
|
|
||||||
LOCAL_BIN="$HOME/.local/bin"
|
LOCAL_BIN="$HOME/.local/bin"
|
||||||
OPT_FOLDER="/usr/local/opt"
|
OPT_FOLDER="/usr/local/opt"
|
||||||
PHP_74=$(brew --prefix php@7.4)/bin
|
PHP_74=$(brew --prefix php@7.4)/bin
|
||||||
|
|||||||
Reference in New Issue
Block a user