mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-02 21:48:12 +00:00
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3368217108 | |||
| 85fbc8684b | |||
| a3acd654f2 | |||
| 49362fcc9d | |||
| 742b4af0e8 | |||
| aebb0dadbd | |||
|
|
a7e68f1224 | ||
| 42706adf0b | |||
| fef9398a86 | |||
| c37df72f12 | |||
|
|
45a2330425 |
18
README.md → .github/README.md
vendored
18
README.md → .github/README.md
vendored
@@ -23,13 +23,13 @@ fork or download the repo as a zip and go from there with your own configs.
|
|||||||
|
|
||||||
## The looks
|
## The looks
|
||||||
|
|
||||||
## tmux with starship, the default view
|
## tmux with powerlevel10k, the default view
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## tmux + nvim (astronvim) editing this repository
|
## tmux + nvim (astronvim) editing this repository
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Interesting files and locations
|
## Interesting files and locations
|
||||||
|
|
||||||
@@ -61,12 +61,12 @@ The folder structure follows [XDG Base Directory Specification][xdg] where possi
|
|||||||
|
|
||||||
### XDG Variables
|
### XDG Variables
|
||||||
|
|
||||||
| Env | Default |
|
| Env | Default | Short description |
|
||||||
|--------------------|----------------------|
|
|--------------------|----------------------|------------------------------------------------|
|
||||||
| `$XDG_BIN_HOME` | `$HOME/.local/bin` |
|
| `$XDG_BIN_HOME` | `$HOME/.local/bin` | Local binaries |
|
||||||
| `$XDG_CONFIG_HOME` | `$HOME/.config` |
|
| `$XDG_CONFIG_HOME` | `$HOME/.config` | User-specific configs |
|
||||||
| `$XDG_DATA_HOME` | `$HOME/.local/share` |
|
| `$XDG_DATA_HOME` | `$HOME/.local/share` | User-specific data files |
|
||||||
| `$XDG_STATE_HOME` | `$HOME/.local/state` |
|
| `$XDG_STATE_HOME` | `$HOME/.local/state` | App state that should persist between restarts |
|
||||||
|
|
||||||
- `$XDG_BIN_HOME` defines directory that contains local binaries.
|
- `$XDG_BIN_HOME` defines directory that contains local binaries.
|
||||||
- `$XDG_DATA_HOME` defines the base directory relative to which user-specific data
|
- `$XDG_DATA_HOME` defines the base directory relative to which user-specific data
|
||||||
BIN
.github/screenshots/tmux-astronvim-130x40.png
vendored
Normal file
BIN
.github/screenshots/tmux-astronvim-130x40.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 154 KiB |
BIN
.github/screenshots/tmux-powerlevel10k-130x20.png
vendored
Normal file
BIN
.github/screenshots/tmux-powerlevel10k-130x20.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
5
.ignore
Normal file
5
.ignore
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
config/cheat/cheatsheets/community/**
|
||||||
|
config/tmux/**
|
||||||
|
config/nvim/**
|
||||||
|
tools/**
|
||||||
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
config/cheat/cheatsheets/community/
|
|
||||||
config/tmux/
|
|
||||||
config/nvim/
|
|
||||||
tools/
|
|
||||||
|
|
||||||
20
base/bashrc
20
base/bashrc
@@ -1,8 +1,10 @@
|
|||||||
# Fig pre block. Keep at the top of this file.
|
|
||||||
[[ -f "$HOME/.fig/shell/bashrc.pre.bash" ]] && builtin source "$HOME/.fig/shell/bashrc.pre.bash"
|
|
||||||
# this is my bashrc config. there are many like it, but this one is mine.
|
# this is my bashrc config. there are many like it, but this one is mine.
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
# Fig pre block. Keep at the top of this file.
|
||||||
|
[[ -f "$HOME/.fig/shell/bashrc.pre.bash" ]] \
|
||||||
|
&& builtin source "$HOME/.fig/shell/bashrc.pre.bash"
|
||||||
|
|
||||||
# Defaults
|
# Defaults
|
||||||
export DOTFILES="$HOME/.dotfiles"
|
export DOTFILES="$HOME/.dotfiles"
|
||||||
|
|
||||||
@@ -11,10 +13,10 @@ function x-load-configs()
|
|||||||
{
|
{
|
||||||
# Load the shell dotfiles, and then some:
|
# Load the shell dotfiles, and then some:
|
||||||
for file in $DOTFILES/config/{exports,alias,functions}; do
|
for file in $DOTFILES/config/{exports,alias,functions}; do
|
||||||
[ -r "$file" ] && [ -f "$file" ] && source "$file"
|
[ -r "$file" ] && source "$file"
|
||||||
[ -r "$file-secret" ] && [ -f "$file-secret" ] && source "$file-secret"
|
[ -r "$file-secret" ] && source "$file-secret"
|
||||||
[ -r "$file-$HOSTNAME" ] && [ -f "$file-$HOSTNAME" ] && source "$file-$HOSTNAME"
|
[ -r "$file-$HOSTNAME" ] && source "$file-$HOSTNAME"
|
||||||
[ -r "$file-$HOSTNAME-secret" ] && [ -f "$file-$HOSTNAME-secret" ] && source "$file-$HOSTNAME-secret"
|
[ -r "$file-$HOSTNAME-secret" ] && source "$file-$HOSTNAME-secret"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
x-load-configs
|
x-load-configs
|
||||||
@@ -22,7 +24,9 @@ x-load-configs
|
|||||||
# Import ssh keys in keychain
|
# Import ssh keys in keychain
|
||||||
ssh-add -A 2>/dev/null;
|
ssh-add -A 2>/dev/null;
|
||||||
|
|
||||||
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}"/fzf/fzf.bash ] && source "${XDG_CONFIG_HOME:-$HOME/.config}"/fzf/fzf.bash
|
[ -f "${DOTFILES}/config/fzf/fzf.bash" ] \
|
||||||
|
&& source "${DOTFILES}/config/fzf/fzf.bash"
|
||||||
|
|
||||||
# Fig post block. Keep at the bottom of this file.
|
# Fig post block. Keep at the bottom of this file.
|
||||||
[[ -f "$HOME/.fig/shell/bashrc.post.bash" ]] && builtin source "$HOME/.fig/shell/bashrc.post.bash"
|
[[ -f "$HOME/.fig/shell/bashrc.post.bash" ]] \
|
||||||
|
&& builtin source "$HOME/.fig/shell/bashrc.post.bash"
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
[work]
|
|
||||||
name = Ismo Vuorinen
|
|
||||||
email = ismo.vuorinen@vincit.fi
|
|
||||||
|
|
||||||
[home]
|
|
||||||
name = Ismo Vuorinen
|
|
||||||
email = ismo@ivuorinen.net
|
|
||||||
|
|
||||||
[github]
|
|
||||||
name = ivuorinen
|
|
||||||
email = ivuorinen@users.noreply.github.com
|
|
||||||
|
|
||||||
34
base/gitprofile
Normal file
34
base/gitprofile
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"profiles": {
|
||||||
|
"github": [
|
||||||
|
{
|
||||||
|
"key": "user.name",
|
||||||
|
"value": "Ismo Vuorinen"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "user.email",
|
||||||
|
"value": "ivuorinen@users.noreply.github.com"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"home": [
|
||||||
|
{
|
||||||
|
"key": "user.email",
|
||||||
|
"value": "ismo@ivuorinen.net"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "user.name",
|
||||||
|
"value": "Ismo Vuorinen"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"work": [
|
||||||
|
{
|
||||||
|
"key": "user.email",
|
||||||
|
"value": "ismo.vuorinen@vincit.fi"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "user.name",
|
||||||
|
"value": "Ismo Vuorinen"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
1713
base/p10k.zsh
Normal file
1713
base/p10k.zsh
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1 +0,0 @@
|
|||||||
ZDOTDIR=~/.config/zsh
|
|
||||||
79
base/zshrc
79
base/zshrc
@@ -1,10 +1,79 @@
|
|||||||
# Fig pre block. Keep at the top of this file.
|
|
||||||
[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh"
|
|
||||||
# this is my zsh config. there are many like it, but this one is mine.
|
# this is my zsh config. there are many like it, but this one is mine.
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
export ZDOTDIR="$HOME/.config/zsh/"
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||||
mkdir -p "$ZDOTDIR"
|
# Initialization code that may require console input (password prompts, [y/n]
|
||||||
|
# confirmations, etc.) must go above this block; everything else may go below.
|
||||||
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||||
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Fig pre block. Keep at the top of this file.
|
||||||
|
[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] \
|
||||||
|
&& builtin source "$HOME/.fig/shell/zshrc.pre.zsh"
|
||||||
|
|
||||||
|
# Defaults
|
||||||
|
export DOTFILES="$HOME/.dotfiles"
|
||||||
|
# shellcheck source=shared.sh
|
||||||
|
source "$DOTFILES/scripts/shared.sh"
|
||||||
|
|
||||||
|
autoload -U colors zsh/terminfo
|
||||||
|
colors
|
||||||
|
setopt correct
|
||||||
|
|
||||||
|
export ZSH_CUSTOM_COMPLETION_PATH="$XDG_CONFIG_HOME/zsh/completion"
|
||||||
|
x-dc "$ZSH_CUSTOM_COMPLETION_PATH"
|
||||||
|
|
||||||
|
# Add completion scripts to zsh path
|
||||||
|
FPATH="$ZSH_CUSTOM_COMPLETION_PATH:$FPATH"
|
||||||
|
autoload -Uz compinit
|
||||||
|
compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION"
|
||||||
|
|
||||||
|
if type brew &>/dev/null
|
||||||
|
then
|
||||||
|
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
|
||||||
|
compinit
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Run x-load-configs in your terminal to reload the files.
|
||||||
|
function x-load-configs()
|
||||||
|
{
|
||||||
|
# Load the shell dotfiles, and then some:
|
||||||
|
for file in $DOTFILES/config/{exports,alias,functions}; do
|
||||||
|
[ -r "$file" ] && source "$file"
|
||||||
|
[ -r "$file-secret" ] && source "$file-secret"
|
||||||
|
[ -r "$file-$HOSTNAME" ] && source "$file-$HOSTNAME"
|
||||||
|
[ -r "$file-$HOSTNAME-secret" ] && source "$file-$HOSTNAME-secret"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
x-load-configs
|
||||||
|
|
||||||
|
# Import ssh keys in keychain
|
||||||
|
ssh-add -A 2>/dev/null;
|
||||||
|
|
||||||
|
# Try to load antigen, if present
|
||||||
|
ANTIGEN_ZSH_PATH="$XDG_BIN_HOME/antigen.zsh"
|
||||||
|
[[ -f "$ANTIGEN_ZSH_PATH" ]] && source "$ANTIGEN_ZSH_PATH"
|
||||||
|
|
||||||
|
# antigen is present
|
||||||
|
have antigen && {
|
||||||
|
antigen use oh-my-zsh
|
||||||
|
|
||||||
|
# config/functions
|
||||||
|
x-default-antigen-bundles
|
||||||
|
|
||||||
|
antigen apply
|
||||||
|
}
|
||||||
|
|
||||||
|
[ -f "${DOTFILES}/config/fzf/fzf.zsh" ] \
|
||||||
|
&& source "${DOTFILES}/config/fzf/fzf.zsh"
|
||||||
|
|
||||||
|
export LESSHISTFILE="$XDG_CACHE_HOME"/less_history
|
||||||
|
|
||||||
# Fig post block. Keep at the bottom of this file.
|
# Fig post block. Keep at the bottom of this file.
|
||||||
[[ -f "$HOME/.fig/shell/zshrc.post.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.post.zsh"
|
[[ -f "$HOME/.fig/shell/zshrc.post.zsh" ]] \
|
||||||
|
&& builtin source "$HOME/.fig/shell/zshrc.post.zsh"
|
||||||
|
|
||||||
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,11 @@ if [[ $(uname) == 'Darwin' ]]; then
|
|||||||
alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl"
|
alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# tmux: automatically attach or create session with name 'main'
|
||||||
|
alias tmux='tmux new-session -A -s main'
|
||||||
|
# tmux: attach or create new session
|
||||||
|
alias ta='tmux attach || tmux'
|
||||||
|
|
||||||
# watch with: differences, precise, beep and color
|
# watch with: differences, precise, beep and color
|
||||||
alias watchx='watch -dpbc'
|
alias watchx='watch -dpbc'
|
||||||
# delete .DS_Store files
|
# delete .DS_Store files
|
||||||
|
|||||||
@@ -17,16 +17,15 @@ export XDG_BIN_HOME="$HOME/.local/bin"
|
|||||||
export XDG_CACHE_HOME="$HOME/.cache"
|
export XDG_CACHE_HOME="$HOME/.cache"
|
||||||
export XDG_RUNTIME_DIR="$HOME/.local/run"
|
export XDG_RUNTIME_DIR="$HOME/.local/run"
|
||||||
|
|
||||||
# Homebrew configuration
|
eval "$(brew shellenv)"
|
||||||
export HOMEBREW="/opt/homebrew"
|
|
||||||
export HOMEBREW_BIN="$HOMEBREW/bin"
|
export HOMEBREW_PREFIX="$XDG_STATE_HOME/homebrew"
|
||||||
export HOMEBREW_SBIN="$HOMEBREW/sbin"
|
|
||||||
export HOMEBREW_PKG="$HOMEBREW/opt"
|
export HOMEBREW_BIN="$HOMEBREW_PREFIX/bin"
|
||||||
export HOMEBREW_NO_ENV_HINTS=1
|
export HOMEBREW_PKG="$HOMEBREW_PREFIX/opt"
|
||||||
|
export HOMEBREW_SBIN="$HOMEBREW_PREFIX/sbin"
|
||||||
|
|
||||||
path_append "/usr/local/bin"
|
path_append "/usr/local/bin"
|
||||||
path_prepend "$HOMEBREW_SBIN"
|
|
||||||
path_prepend "$HOMEBREW_BIN"
|
|
||||||
path_prepend "$XDG_BIN_HOME"
|
path_prepend "$XDG_BIN_HOME"
|
||||||
|
|
||||||
# brew, https://brew.sh
|
# brew, https://brew.sh
|
||||||
|
|||||||
@@ -84,6 +84,9 @@ ask()
|
|||||||
# Defines default antigen bundles
|
# Defines default antigen bundles
|
||||||
x-default-antigen-bundles()
|
x-default-antigen-bundles()
|
||||||
{
|
{
|
||||||
|
# the theme to use
|
||||||
|
antigen theme romkatv/powerlevel10k
|
||||||
|
|
||||||
# these should be always available
|
# these should be always available
|
||||||
antigen bundle colored-man-pages
|
antigen bundle colored-man-pages
|
||||||
antigen bundle command-not-found
|
antigen bundle command-not-found
|
||||||
|
|||||||
@@ -102,6 +102,12 @@ brew "dotenv-linter"
|
|||||||
brew "editorconfig-checker"
|
brew "editorconfig-checker"
|
||||||
# Useful examples at the command-line
|
# Useful examples at the command-line
|
||||||
brew "eg-examples"
|
brew "eg-examples"
|
||||||
|
# C/C++ and Java libraries for Unicode and globalization
|
||||||
|
brew "icu4c"
|
||||||
|
# OpenType text shaping engine
|
||||||
|
brew "harfbuzz"
|
||||||
|
# Development kit for the Java programming language
|
||||||
|
brew "openjdk"
|
||||||
# Run arbitrary commands when files change
|
# Run arbitrary commands when files change
|
||||||
brew "entr"
|
brew "entr"
|
||||||
# Perl lib for reading and writing EXIF metadata
|
# Perl lib for reading and writing EXIF metadata
|
||||||
@@ -150,10 +156,6 @@ brew "gpgme"
|
|||||||
brew "gpg-tui"
|
brew "gpg-tui"
|
||||||
# Image manipulation
|
# Image manipulation
|
||||||
brew "netpbm"
|
brew "netpbm"
|
||||||
# C/C++ and Java libraries for Unicode and globalization
|
|
||||||
brew "icu4c"
|
|
||||||
# OpenType text shaping engine
|
|
||||||
brew "harfbuzz"
|
|
||||||
# Framework for layout and rendering of i18n text
|
# Framework for layout and rendering of i18n text
|
||||||
brew "pango"
|
brew "pango"
|
||||||
# Library to render SVG files using Cairo
|
# Library to render SVG files using Cairo
|
||||||
@@ -196,8 +198,6 @@ brew "mas"
|
|||||||
brew "ncdu"
|
brew "ncdu"
|
||||||
# Ambitious Vim-fork focused on extensibility and agility
|
# Ambitious Vim-fork focused on extensibility and agility
|
||||||
brew "neovim"
|
brew "neovim"
|
||||||
# No Nonsense Neovim Client in Rust
|
|
||||||
brew "neovide"
|
|
||||||
# HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server
|
# HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server
|
||||||
brew "nginx"
|
brew "nginx"
|
||||||
# Port scanning utility for large networks
|
# Port scanning utility for large networks
|
||||||
@@ -208,8 +208,6 @@ brew "nvm"
|
|||||||
brew "openjdk@11"
|
brew "openjdk@11"
|
||||||
# Generate clients, server & docs from an OpenAPI spec (v2, v3)
|
# Generate clients, server & docs from an OpenAPI spec (v2, v3)
|
||||||
brew "openapi-generator"
|
brew "openapi-generator"
|
||||||
# Development kit for the Java programming language
|
|
||||||
brew "openjdk"
|
|
||||||
# Swiss-army knife of markup format conversion
|
# Swiss-army knife of markup format conversion
|
||||||
brew "pandoc"
|
brew "pandoc"
|
||||||
# Highly capable, feature-rich programming language
|
# Highly capable, feature-rich programming language
|
||||||
@@ -240,8 +238,8 @@ brew "rust"
|
|||||||
brew "shellcheck"
|
brew "shellcheck"
|
||||||
# Autoformat shell script source code
|
# Autoformat shell script source code
|
||||||
brew "shfmt"
|
brew "shfmt"
|
||||||
# Cross-shell prompt for astronauts
|
# Support CI generation of SBOMs via golang tooling
|
||||||
brew "starship"
|
brew "spdx-sbom-generator"
|
||||||
# Version control system designed to be a better CVS
|
# Version control system designed to be a better CVS
|
||||||
brew "subversion"
|
brew "subversion"
|
||||||
# Feature-rich console based todo list manager
|
# Feature-rich console based todo list manager
|
||||||
@@ -356,10 +354,10 @@ cask "jetbrains-toolbox"
|
|||||||
cask "lens"
|
cask "lens"
|
||||||
# Keep all tasks from your todo apps on your menu bar
|
# Keep all tasks from your todo apps on your menu bar
|
||||||
cask "monofocus"
|
cask "monofocus"
|
||||||
# Neovim Client
|
|
||||||
cask "neovide"
|
|
||||||
# Reverse proxy, secure introspectable tunnels to localhost
|
# Reverse proxy, secure introspectable tunnels to localhost
|
||||||
cask "ngrok"
|
cask "ngrok"
|
||||||
|
# Simple application that will prevent iTunes or Apple Music from launching
|
||||||
|
cask "notunes"
|
||||||
# Knowledge base that works on top of a local folder of plain text Markdown files
|
# Knowledge base that works on top of a local folder of plain text Markdown files
|
||||||
cask "obsidian"
|
cask "obsidian"
|
||||||
# Scheduling application focusing on organization
|
# Scheduling application focusing on organization
|
||||||
@@ -424,6 +422,7 @@ vscode "bmewburn.vscode-intelephense-client"
|
|||||||
vscode "Box-Of-Hats.bemhelper"
|
vscode "Box-Of-Hats.bemhelper"
|
||||||
vscode "bradlc.vscode-tailwindcss"
|
vscode "bradlc.vscode-tailwindcss"
|
||||||
vscode "christian-kohler.npm-intellisense"
|
vscode "christian-kohler.npm-intellisense"
|
||||||
|
vscode "christian-kohler.path-intellisense"
|
||||||
vscode "DavidAnson.vscode-markdownlint"
|
vscode "DavidAnson.vscode-markdownlint"
|
||||||
vscode "dbaeumer.vscode-eslint"
|
vscode "dbaeumer.vscode-eslint"
|
||||||
vscode "DotJoshJohnson.xml"
|
vscode "DotJoshJohnson.xml"
|
||||||
@@ -431,6 +430,7 @@ vscode "eamodio.gitlens"
|
|||||||
vscode "EditorConfig.EditorConfig"
|
vscode "EditorConfig.EditorConfig"
|
||||||
vscode "esbenp.prettier-vscode"
|
vscode "esbenp.prettier-vscode"
|
||||||
vscode "formulahendry.auto-close-tag"
|
vscode "formulahendry.auto-close-tag"
|
||||||
|
vscode "formulahendry.auto-rename-tag"
|
||||||
vscode "formulahendry.code-runner"
|
vscode "formulahendry.code-runner"
|
||||||
vscode "gencer.html-slim-scss-css-class-completion"
|
vscode "gencer.html-slim-scss-css-class-completion"
|
||||||
vscode "github.vscode-github-actions"
|
vscode "github.vscode-github-actions"
|
||||||
@@ -446,6 +446,7 @@ vscode "liamhammett.inline-parameters"
|
|||||||
vscode "macieklad.tailwind-sass-syntax"
|
vscode "macieklad.tailwind-sass-syntax"
|
||||||
vscode "MehediDracula.php-namespace-resolver"
|
vscode "MehediDracula.php-namespace-resolver"
|
||||||
vscode "mikestead.dotenv"
|
vscode "mikestead.dotenv"
|
||||||
|
vscode "MisterJ.vue-volar-extention-pack"
|
||||||
vscode "MrChetan.phpstorm-parameter-hints-in-vscode"
|
vscode "MrChetan.phpstorm-parameter-hints-in-vscode"
|
||||||
vscode "mrorz.language-gettext"
|
vscode "mrorz.language-gettext"
|
||||||
vscode "ms-azuretools.vscode-docker"
|
vscode "ms-azuretools.vscode-docker"
|
||||||
@@ -462,10 +463,10 @@ vscode "msjsdiag.vscode-react-native"
|
|||||||
vscode "mtxr.sqltools"
|
vscode "mtxr.sqltools"
|
||||||
vscode "neilbrayfield.php-docblocker"
|
vscode "neilbrayfield.php-docblocker"
|
||||||
vscode "nhoizey.gremlins"
|
vscode "nhoizey.gremlins"
|
||||||
vscode "octref.vetur"
|
|
||||||
vscode "oderwat.indent-rainbow"
|
vscode "oderwat.indent-rainbow"
|
||||||
vscode "pflannery.vscode-versionlens"
|
vscode "pflannery.vscode-versionlens"
|
||||||
vscode "phiter.phpstorm-snippets"
|
vscode "phiter.phpstorm-snippets"
|
||||||
|
vscode "sibiraj-s.vscode-scss-formatter"
|
||||||
vscode "SonarSource.sonarlint-vscode"
|
vscode "SonarSource.sonarlint-vscode"
|
||||||
vscode "stylelint.vscode-stylelint"
|
vscode "stylelint.vscode-stylelint"
|
||||||
vscode "syler.sass-indented"
|
vscode "syler.sass-indented"
|
||||||
@@ -473,6 +474,7 @@ vscode "timonwong.shellcheck"
|
|||||||
vscode "tootone.org-mode"
|
vscode "tootone.org-mode"
|
||||||
vscode "valeryanm.vscode-phpsab"
|
vscode "valeryanm.vscode-phpsab"
|
||||||
vscode "Vue.volar"
|
vscode "Vue.volar"
|
||||||
|
vscode "Vue.vscode-typescript-vue-plugin"
|
||||||
vscode "WakaTime.vscode-wakatime"
|
vscode "WakaTime.vscode-wakatime"
|
||||||
vscode "withfig.fig"
|
vscode "withfig.fig"
|
||||||
vscode "wix.vscode-import-cost"
|
vscode "wix.vscode-import-cost"
|
||||||
11
config/homebrew/brew.env
Normal file
11
config/homebrew/brew.env
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# shellcheck shell=bash
|
||||||
|
# vim: filetype=zsh
|
||||||
|
# dotenv-linter:off LowercaseKey, KeyWithoutValue, ExtraBlankLine, EndingBlankLine
|
||||||
|
#
|
||||||
|
# Homebrew configuration
|
||||||
|
|
||||||
|
export HOMEBREW_AUTOREMOVE=true
|
||||||
|
export HOMEBREW_AUTO_UPDATE_SECS=86400
|
||||||
|
export HOMEBREW_CLEANUP_MAX_AGE_DAYS=30
|
||||||
|
export HOMEBREW_NO_ENV_HINTS=1
|
||||||
|
|
||||||
@@ -344,9 +344,11 @@
|
|||||||
<key>DimOnlyText</key>
|
<key>DimOnlyText</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>DisableFullscreenTransparency</key>
|
<key>DisableFullscreenTransparency</key>
|
||||||
<true/>
|
<false/>
|
||||||
<key>HapticFeedbackForEsc</key>
|
<key>HapticFeedbackForEsc</key>
|
||||||
<false/>
|
<false/>
|
||||||
|
<key>HideActivityIndicator</key>
|
||||||
|
<false/>
|
||||||
<key>HideScrollbar</key>
|
<key>HideScrollbar</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>HotkeyMigratedFromSingleToMulti</key>
|
<key>HotkeyMigratedFromSingleToMulti</key>
|
||||||
@@ -1064,6 +1066,8 @@
|
|||||||
<false/>
|
<false/>
|
||||||
<key>Shortcut</key>
|
<key>Shortcut</key>
|
||||||
<string></string>
|
<string></string>
|
||||||
|
<key>Show Mark Indicators</key>
|
||||||
|
<false/>
|
||||||
<key>Show Status Bar</key>
|
<key>Show Status Bar</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>Show Timestamps</key>
|
<key>Show Timestamps</key>
|
||||||
|
|||||||
Submodule config/nvim updated: 382b8989f5...6a86f69946
@@ -1,37 +0,0 @@
|
|||||||
# Get editor completions based on the config schema
|
|
||||||
"$schema" = 'https://starship.rs/config-schema.json'
|
|
||||||
|
|
||||||
# Inserts a blank line between shell prompts
|
|
||||||
add_newline = true
|
|
||||||
|
|
||||||
# Timeout for commands executed by starship (in milliseconds).
|
|
||||||
command_timeout = 1000
|
|
||||||
|
|
||||||
# Replace the '❯' symbol in the prompt with '➜'
|
|
||||||
[character] # The name of the module we are configuring is 'character'
|
|
||||||
success_symbol = '[➜](bold green)' # The 'success_symbol' segment is being set to '➜' with the color 'bold green'
|
|
||||||
|
|
||||||
[cmd_duration]
|
|
||||||
disabled = true
|
|
||||||
|
|
||||||
[git_branch]
|
|
||||||
symbol = '🌱 '
|
|
||||||
truncation_length = 20
|
|
||||||
truncation_symbol = '…'
|
|
||||||
ignore_branches = ['master', 'main']
|
|
||||||
|
|
||||||
[git_status]
|
|
||||||
up_to_date = '✓'
|
|
||||||
staged = '[++\($count\)](green)'
|
|
||||||
|
|
||||||
[package]
|
|
||||||
format = '[$symbol($version )]($style)'
|
|
||||||
version_format = '${major}.${minor}'
|
|
||||||
|
|
||||||
[php]
|
|
||||||
format = '[$symbol($version )]($style)'
|
|
||||||
version_format = '${major}.${minor}'
|
|
||||||
|
|
||||||
[nodejs]
|
|
||||||
format = '[$symbol($version )]($style)'
|
|
||||||
version_format = '${major}.${minor}'
|
|
||||||
@@ -46,6 +46,7 @@ news.version=2.6.0
|
|||||||
default.project=Inbox
|
default.project=Inbox
|
||||||
calendar.details=full
|
calendar.details=full
|
||||||
calendar.holidays=sparse
|
calendar.holidays=sparse
|
||||||
|
recurrence=on
|
||||||
|
|
||||||
uda.taskwarrior-tui.keyconfig.quit=q
|
uda.taskwarrior-tui.keyconfig.quit=q
|
||||||
uda.taskwarrior-tui.keyconfig.refresh=r
|
uda.taskwarrior-tui.keyconfig.refresh=r
|
||||||
|
|||||||
@@ -1,52 +0,0 @@
|
|||||||
autoload -U colors zsh/terminfo
|
|
||||||
colors
|
|
||||||
setopt correct
|
|
||||||
|
|
||||||
# Add completion scripts to zsh path
|
|
||||||
FPATH="~/.config/zsh/completion:$FPATH"
|
|
||||||
autoload -Uz compinit && compinit -i
|
|
||||||
compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION"
|
|
||||||
|
|
||||||
# Defaults
|
|
||||||
export DOTFILES="$HOME/.dotfiles"
|
|
||||||
# shellcheck source=shared.sh
|
|
||||||
source "$DOTFILES/scripts/shared.sh"
|
|
||||||
|
|
||||||
# Run x-load-configs in your terminal to reload the files.
|
|
||||||
function x-load-configs()
|
|
||||||
{
|
|
||||||
# Load the shell dotfiles, and then some:
|
|
||||||
for file in $DOTFILES/config/{exports,alias,functions}; do
|
|
||||||
[ -f "$file" ] && source "$file"
|
|
||||||
[ -f "$file-secret" ] && source "$file-secret"
|
|
||||||
[ -f "$file-$HOSTNAME" ] && source "$file-$HOSTNAME"
|
|
||||||
[ -f "$file-$HOSTNAME-secret" ] && source "$file-$HOSTNAME-secret"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
x-load-configs
|
|
||||||
|
|
||||||
# Import ssh keys in keychain
|
|
||||||
ssh-add -A 2>/dev/null;
|
|
||||||
|
|
||||||
# Try to load antigen, if present
|
|
||||||
ANTIGEN_ZSH_PATH="$XDG_BIN_HOME/antigen.zsh"
|
|
||||||
[[ -f "$ANTIGEN_ZSH_PATH" ]] && source "$ANTIGEN_ZSH_PATH"
|
|
||||||
|
|
||||||
# antigen is present
|
|
||||||
have antigen && {
|
|
||||||
antigen use oh-my-zsh
|
|
||||||
|
|
||||||
# config/functions
|
|
||||||
x-default-antigen-bundles
|
|
||||||
|
|
||||||
antigen apply
|
|
||||||
}
|
|
||||||
|
|
||||||
# starship is present
|
|
||||||
have starship && eval "$(starship init zsh)"
|
|
||||||
|
|
||||||
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}"/fzf/fzf.zsh ] \
|
|
||||||
&& source "${XDG_CONFIG_HOME:-$HOME/.config}"/fzf/fzf.zsh
|
|
||||||
|
|
||||||
export LESSHISTFILE="$XDG_CACHE_HOME"/less_history
|
|
||||||
|
|
||||||
177
config/zsh/completion/git-profile
Normal file
177
config/zsh/completion/git-profile
Normal file
@@ -0,0 +1,177 @@
|
|||||||
|
#compdef _git-profile git-profile
|
||||||
|
|
||||||
|
# zsh completion for git-profile -*- shell-script -*-
|
||||||
|
|
||||||
|
__git-profile_debug()
|
||||||
|
{
|
||||||
|
local file="$BASH_COMP_DEBUG_FILE"
|
||||||
|
if [[ -n ${file} ]]; then
|
||||||
|
echo "$*" >> "${file}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
_git-profile()
|
||||||
|
{
|
||||||
|
local shellCompDirectiveError=1
|
||||||
|
local shellCompDirectiveNoSpace=2
|
||||||
|
local shellCompDirectiveNoFileComp=4
|
||||||
|
local shellCompDirectiveFilterFileExt=8
|
||||||
|
local shellCompDirectiveFilterDirs=16
|
||||||
|
|
||||||
|
local lastParam lastChar flagPrefix requestComp out directive comp lastComp noSpace
|
||||||
|
local -a completions
|
||||||
|
|
||||||
|
__git-profile_debug "\n========= starting completion logic =========="
|
||||||
|
__git-profile_debug "CURRENT: ${CURRENT}, words[*]: ${words[*]}"
|
||||||
|
|
||||||
|
# The user could have moved the cursor backwards on the command-line.
|
||||||
|
# We need to trigger completion from the $CURRENT location, so we need
|
||||||
|
# to truncate the command-line ($words) up to the $CURRENT location.
|
||||||
|
# (We cannot use $CURSOR as its value does not work when a command is an alias.)
|
||||||
|
words=("${=words[1,CURRENT]}")
|
||||||
|
__git-profile_debug "Truncated words[*]: ${words[*]},"
|
||||||
|
|
||||||
|
lastParam=${words[-1]}
|
||||||
|
lastChar=${lastParam[-1]}
|
||||||
|
__git-profile_debug "lastParam: ${lastParam}, lastChar: ${lastChar}"
|
||||||
|
|
||||||
|
# For zsh, when completing a flag with an = (e.g., git-profile -n=<TAB>)
|
||||||
|
# completions must be prefixed with the flag
|
||||||
|
setopt local_options BASH_REMATCH
|
||||||
|
if [[ "${lastParam}" =~ '-.*=' ]]; then
|
||||||
|
# We are dealing with a flag with an =
|
||||||
|
flagPrefix="-P ${BASH_REMATCH}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Prepare the command to obtain completions
|
||||||
|
requestComp="${words[1]} __complete ${words[2,-1]}"
|
||||||
|
if [ "${lastChar}" = "" ]; then
|
||||||
|
# If the last parameter is complete (there is a space following it)
|
||||||
|
# We add an extra empty parameter so we can indicate this to the go completion code.
|
||||||
|
__git-profile_debug "Adding extra empty parameter"
|
||||||
|
requestComp="${requestComp} \"\""
|
||||||
|
fi
|
||||||
|
|
||||||
|
__git-profile_debug "About to call: eval ${requestComp}"
|
||||||
|
|
||||||
|
# Use eval to handle any environment variables and such
|
||||||
|
out=$(eval ${requestComp} 2>/dev/null)
|
||||||
|
__git-profile_debug "completion output: ${out}"
|
||||||
|
|
||||||
|
# Extract the directive integer following a : from the last line
|
||||||
|
local lastLine
|
||||||
|
while IFS='\n' read -r line; do
|
||||||
|
lastLine=${line}
|
||||||
|
done < <(printf "%s\n" "${out[@]}")
|
||||||
|
__git-profile_debug "last line: ${lastLine}"
|
||||||
|
|
||||||
|
if [ "${lastLine[1]}" = : ]; then
|
||||||
|
directive=${lastLine[2,-1]}
|
||||||
|
# Remove the directive including the : and the newline
|
||||||
|
local suffix
|
||||||
|
(( suffix=${#lastLine}+2))
|
||||||
|
out=${out[1,-$suffix]}
|
||||||
|
else
|
||||||
|
# There is no directive specified. Leave $out as is.
|
||||||
|
__git-profile_debug "No directive found. Setting do default"
|
||||||
|
directive=0
|
||||||
|
fi
|
||||||
|
|
||||||
|
__git-profile_debug "directive: ${directive}"
|
||||||
|
__git-profile_debug "completions: ${out}"
|
||||||
|
__git-profile_debug "flagPrefix: ${flagPrefix}"
|
||||||
|
|
||||||
|
if [ $((directive & shellCompDirectiveError)) -ne 0 ]; then
|
||||||
|
__git-profile_debug "Completion received error. Ignoring completions."
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
while IFS='\n' read -r comp; do
|
||||||
|
if [ -n "$comp" ]; then
|
||||||
|
# If requested, completions are returned with a description.
|
||||||
|
# The description is preceded by a TAB character.
|
||||||
|
# For zsh's _describe, we need to use a : instead of a TAB.
|
||||||
|
# We first need to escape any : as part of the completion itself.
|
||||||
|
comp=${comp//:/\\:}
|
||||||
|
|
||||||
|
local tab=$(printf '\t')
|
||||||
|
comp=${comp//$tab/:}
|
||||||
|
|
||||||
|
__git-profile_debug "Adding completion: ${comp}"
|
||||||
|
completions+=${comp}
|
||||||
|
lastComp=$comp
|
||||||
|
fi
|
||||||
|
done < <(printf "%s\n" "${out[@]}")
|
||||||
|
|
||||||
|
if [ $((directive & shellCompDirectiveNoSpace)) -ne 0 ]; then
|
||||||
|
__git-profile_debug "Activating nospace."
|
||||||
|
noSpace="-S ''"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $((directive & shellCompDirectiveFilterFileExt)) -ne 0 ]; then
|
||||||
|
# File extension filtering
|
||||||
|
local filteringCmd
|
||||||
|
filteringCmd='_files'
|
||||||
|
for filter in ${completions[@]}; do
|
||||||
|
if [ ${filter[1]} != '*' ]; then
|
||||||
|
# zsh requires a glob pattern to do file filtering
|
||||||
|
filter="\*.$filter"
|
||||||
|
fi
|
||||||
|
filteringCmd+=" -g $filter"
|
||||||
|
done
|
||||||
|
filteringCmd+=" ${flagPrefix}"
|
||||||
|
|
||||||
|
__git-profile_debug "File filtering command: $filteringCmd"
|
||||||
|
_arguments '*:filename:'"$filteringCmd"
|
||||||
|
elif [ $((directive & shellCompDirectiveFilterDirs)) -ne 0 ]; then
|
||||||
|
# File completion for directories only
|
||||||
|
local subdir
|
||||||
|
subdir="${completions[1]}"
|
||||||
|
if [ -n "$subdir" ]; then
|
||||||
|
__git-profile_debug "Listing directories in $subdir"
|
||||||
|
pushd "${subdir}" >/dev/null 2>&1
|
||||||
|
else
|
||||||
|
__git-profile_debug "Listing directories in ."
|
||||||
|
fi
|
||||||
|
|
||||||
|
local result
|
||||||
|
_arguments '*:dirname:_files -/'" ${flagPrefix}"
|
||||||
|
result=$?
|
||||||
|
if [ -n "$subdir" ]; then
|
||||||
|
popd >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
return $result
|
||||||
|
else
|
||||||
|
__git-profile_debug "Calling _describe"
|
||||||
|
if eval _describe "completions" completions $flagPrefix $noSpace; then
|
||||||
|
__git-profile_debug "_describe found some completions"
|
||||||
|
|
||||||
|
# Return the success of having called _describe
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
__git-profile_debug "_describe did not find completions."
|
||||||
|
__git-profile_debug "Checking if we should do file completion."
|
||||||
|
if [ $((directive & shellCompDirectiveNoFileComp)) -ne 0 ]; then
|
||||||
|
__git-profile_debug "deactivating file completion"
|
||||||
|
|
||||||
|
# We must return an error code here to let zsh know that there were no
|
||||||
|
# completions found by _describe; this is what will trigger other
|
||||||
|
# matching algorithms to attempt to find completions.
|
||||||
|
# For example zsh can match letters in the middle of words.
|
||||||
|
return 1
|
||||||
|
else
|
||||||
|
# Perform file completion
|
||||||
|
__git-profile_debug "Activating file completion"
|
||||||
|
|
||||||
|
# We must return the result of this command, so it must be the
|
||||||
|
# last command, or else we must store its result to return it.
|
||||||
|
_arguments '*:filename:_files'" ${flagPrefix}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# don't run the completion function when being source-ed or eval-ed
|
||||||
|
if [ "$funcstack[1]" = "_git-profile" ]; then
|
||||||
|
_git-profile
|
||||||
|
fi
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
: "${DOTFILES:=$HOME/.dotfiles}"
|
: "${DOTFILES:=$HOME/.dotfiles}"
|
||||||
: "${SHARED_SCRIPT:=$DOTFILES/scripts/shared.sh}"
|
: "${SHARED_SCRIPT:=$DOTFILES/scripts/shared.sh}"
|
||||||
: "${INSTALL_SCRIPT:=$DOTFILES/scripts/install-dotfiles.sh}"
|
: "${INSTALL_SCRIPT:=$DOTFILES/scripts/install-dotfiles.sh}"
|
||||||
: "${BREWFILE:=$DOTFILES/Brewfile}"
|
: "${BREWFILE:=$DOTFILES/config/homebrew/Brewfile}"
|
||||||
: "${HOSTFILES:=$DOTFILES/hosts}"
|
: "${HOSTFILES:=$DOTFILES/hosts}"
|
||||||
|
|
||||||
SCRIPT=$(basename "$0")
|
SCRIPT=$(basename "$0")
|
||||||
@@ -47,7 +47,6 @@ function section_install
|
|||||||
all)
|
all)
|
||||||
$0 install macos
|
$0 install macos
|
||||||
$0 install antigen
|
$0 install antigen
|
||||||
$0 install starship
|
|
||||||
$0 brew install
|
$0 brew install
|
||||||
$0 install composer
|
$0 install composer
|
||||||
$0 install dotenv
|
$0 install dotenv
|
||||||
|
|||||||
@@ -36,4 +36,11 @@ for pkg in "${packages[@]}"; do
|
|||||||
echo ""
|
echo ""
|
||||||
done
|
done
|
||||||
|
|
||||||
|
msg "Installing completions for selected packages"
|
||||||
|
|
||||||
|
have git-profile && {
|
||||||
|
git-profile completion zsh > "$ZSH_CUSTOM_COMPLETION_PATH/git-profile" \
|
||||||
|
&& msg_yay "Installed completions for git-profile"
|
||||||
|
}
|
||||||
|
|
||||||
msg_ok "Done"
|
msg_ok "Done"
|
||||||
|
|||||||
Reference in New Issue
Block a user