mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-02 11:48:03 +00:00
Compare commits
24 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a4d5b87272 | ||
| f953bff183 | |||
| aba33a20a4 | |||
| a20e1e1419 | |||
| 8328f4cd19 | |||
| 4383b130a9 | |||
| 8143999f2a | |||
| 523bec769f | |||
| dee215a29e | |||
| 755ac0fa2c | |||
| a69f1f9f9c | |||
| 934ecb2335 | |||
| 4b6b887ca8 | |||
| fb0b9044eb | |||
| 74ca882192 | |||
| b904f0b60e | |||
| 13764775ca | |||
| 1f7b92285b | |||
| 1f22aee5e3 | |||
| 7dddf3ed75 | |||
| 62cd8cbda4 | |||
| 7dcebc8615 | |||
| 2e6a1582bf | |||
| c316a8eb2f |
BIN
.github/screenshots/oh-my-posh.png
vendored
Normal file
BIN
.github/screenshots/oh-my-posh.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 48 KiB |
8
.gitmodules
vendored
8
.gitmodules
vendored
@@ -41,7 +41,7 @@
|
|||||||
ignore = dirty
|
ignore = dirty
|
||||||
[submodule "tmux/tmux-window-name"]
|
[submodule "tmux/tmux-window-name"]
|
||||||
path = config/tmux/plugins/tmux-window-name
|
path = config/tmux/plugins/tmux-window-name
|
||||||
url = https://github.com/ofirgall/tmux-window-name.git
|
url = https://github.com/ivuorinen/tmux-window-name.git
|
||||||
ignore = dirty
|
ignore = dirty
|
||||||
[submodule "dotbot-pip"]
|
[submodule "dotbot-pip"]
|
||||||
path = tools/dotbot-pip
|
path = tools/dotbot-pip
|
||||||
@@ -52,3 +52,9 @@
|
|||||||
[submodule "tmux/tmux-mode-indicator"]
|
[submodule "tmux/tmux-mode-indicator"]
|
||||||
path = config/tmux/plugins/tmux-mode-indicator
|
path = config/tmux/plugins/tmux-mode-indicator
|
||||||
url = https://github.com/MunifTanjim/tmux-mode-indicator.git
|
url = https://github.com/MunifTanjim/tmux-mode-indicator.git
|
||||||
|
[submodule "tmux/tmux-current-pane-hostname"]
|
||||||
|
path = config/tmux/plugins/tmux-current-pane-hostname
|
||||||
|
url = https://github.com/soyuka/tmux-current-pane-hostname.git
|
||||||
|
[submodule "cheat-tldr"]
|
||||||
|
path = config/cheat/cheatsheets/tldr
|
||||||
|
url = https://github.com/ivuorinen/cheatsheet-tldr.git
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ git submodule add --name dotbot-pip \
|
|||||||
# other repos
|
# other repos
|
||||||
git submodule add --name cheat-community \
|
git submodule add --name cheat-community \
|
||||||
-f https://github.com/cheat/cheatsheets.git config/cheat/cheatsheets/community
|
-f https://github.com/cheat/cheatsheets.git config/cheat/cheatsheets/community
|
||||||
|
git submodule add --name cheat-tldr \
|
||||||
|
-f https://github.com/ivuorinen/cheatsheet-tldr.git config/cheat/cheatsheets/tldr
|
||||||
|
|
||||||
# tmux plugin manager and plugins
|
# tmux plugin manager and plugins
|
||||||
git submodule add --name tmux/tmux-continuum \
|
git submodule add --name tmux/tmux-continuum \
|
||||||
@@ -28,9 +30,11 @@ git submodule add --name tmux/tmux-sessionist \
|
|||||||
git submodule add --name tmux/tmux-suspend \
|
git submodule add --name tmux/tmux-suspend \
|
||||||
-f https://github.com/MunifTanjim/tmux-suspend.git config/tmux/plugins/tmux-suspend
|
-f https://github.com/MunifTanjim/tmux-suspend.git config/tmux/plugins/tmux-suspend
|
||||||
git submodule add --name tmux/tmux-window-name \
|
git submodule add --name tmux/tmux-window-name \
|
||||||
-f https://github.com/ofirgall/tmux-window-name.git config/tmux/plugins/tmux-window-name
|
-f https://github.com/ivuorinen/tmux-window-name.git config/tmux/plugins/tmux-window-name
|
||||||
git submodule add --name tmux/tmux-yank \
|
git submodule add --name tmux/tmux-yank \
|
||||||
-f https://github.com/tmux-plugins/tmux-yank.git config/tmux/plugins/tmux-yank
|
-f https://github.com/tmux-plugins/tmux-yank.git config/tmux/plugins/tmux-yank
|
||||||
|
git submodule add --name tmux/tmux-current-pane-hostname \
|
||||||
|
-f https://github.com/soyuka/tmux-current-pane-hostname.git config/tmux/plugins/tmux-current-pane-hostname
|
||||||
|
|
||||||
# Takes submodules and sets them to ignore all changes
|
# Takes submodules and sets them to ignore all changes
|
||||||
for MODULE in $(git config --file .gitmodules --get-regexp path | awk '{ print $2 }'); do
|
for MODULE in $(git config --file .gitmodules --get-regexp path | awk '{ print $2 }'); do
|
||||||
|
|||||||
@@ -34,5 +34,8 @@ x-have rbenv && {
|
|||||||
eval "$(rbenv init - bash)"
|
eval "$(rbenv init - bash)"
|
||||||
}
|
}
|
||||||
|
|
||||||
eval "$(starship init bash)"
|
# eval "$(starship init bash)"
|
||||||
|
x-have oh-my-posh && {
|
||||||
|
eval "$(oh-my-posh init bash --config $XDG_CONFIG_HOME/oh-my-posh.omp.json)"
|
||||||
|
}
|
||||||
source "$DOTFILES/config/alias"
|
source "$DOTFILES/config/alias"
|
||||||
|
|||||||
42
base/zshrc
42
base/zshrc
@@ -61,8 +61,8 @@ antigen bundle jreese/zsh-titles
|
|||||||
antigen bundle zsh-users/zsh-completions
|
antigen bundle zsh-users/zsh-completions
|
||||||
|
|
||||||
# these should be available if there's need
|
# these should be available if there's need
|
||||||
x-have brew && antigen bundle brew
|
# x-have brew && antigen bundle brew
|
||||||
x-have php && antigen bundle php
|
# x-have php && antigen bundle php
|
||||||
x-have python && antigen bundle MichaelAquilina/zsh-autoswitch-virtualenv
|
x-have python && antigen bundle MichaelAquilina/zsh-autoswitch-virtualenv
|
||||||
|
|
||||||
# nvm is a strange beast
|
# nvm is a strange beast
|
||||||
@@ -71,7 +71,7 @@ antigen bundle nvm
|
|||||||
# antigen bundle "$DOTFILES/config/zsh/plugins/nvm-auto-use"
|
# antigen bundle "$DOTFILES/config/zsh/plugins/nvm-auto-use"
|
||||||
|
|
||||||
# nice to have stuff
|
# nice to have stuff
|
||||||
antigen bundle gcloud
|
# antigen bundle gcloud
|
||||||
|
|
||||||
# this needs to be the last item
|
# this needs to be the last item
|
||||||
antigen bundle zsh-users/zsh-syntax-highlighting
|
antigen bundle zsh-users/zsh-syntax-highlighting
|
||||||
@@ -81,24 +81,32 @@ antigen apply
|
|||||||
[ -f "${DOTFILES}/config/fzf/fzf.zsh" ] \
|
[ -f "${DOTFILES}/config/fzf/fzf.zsh" ] \
|
||||||
&& source "${DOTFILES}/config/fzf/fzf.zsh"
|
&& source "${DOTFILES}/config/fzf/fzf.zsh"
|
||||||
|
|
||||||
x-have op && {
|
|
||||||
eval "$(op completion zsh)"
|
|
||||||
compdef _op op
|
|
||||||
}
|
|
||||||
|
|
||||||
x-have rbenv && {
|
x-have rbenv && {
|
||||||
eval "$(rbenv init - zsh)"
|
eval "$(rbenv init - zsh)"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Autoupdate tmux window name
|
x-have pyenv && {
|
||||||
TMUX_WINDOW_NAME_PLUGIN="$DOTFILES/config/tmux/plugins/tmux-window-name/scripts/rename_session_windows.py"
|
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
[ -f "$TMUX_WINDOW_NAME_PLUGIN" ] && {
|
eval "$(pyenv init -)"
|
||||||
tmux-window-name()
|
eval "$(pyenv virtualenv-init -)"
|
||||||
{
|
|
||||||
($TMUX_WINDOW_NAME_PLUGIN &)
|
|
||||||
}
|
|
||||||
add-zsh-hook chpwd tmux-window-name
|
|
||||||
}
|
}
|
||||||
|
|
||||||
eval "$(starship init zsh)"
|
# Run only if tmux is active
|
||||||
|
[[ -n "$TMUX" ]] && {
|
||||||
|
# Autoupdate tmux window name
|
||||||
|
TMUX_WINDOW_NAME_PLUGIN="$DOTFILES/config/tmux/plugins/tmux-window-name/scripts/rename_session_windows.py"
|
||||||
|
[ -f "$TMUX_WINDOW_NAME_PLUGIN" ] && {
|
||||||
|
tmux-window-name()
|
||||||
|
{
|
||||||
|
($TMUX_WINDOW_NAME_PLUGIN &)
|
||||||
|
}
|
||||||
|
add-zsh-hook chpwd tmux-window-name
|
||||||
|
tmux-window-name
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# eval "$(starship init zsh)"
|
||||||
|
x-have oh-my-posh && {
|
||||||
|
eval "$(oh-my-posh init zsh --config $XDG_CONFIG_HOME/oh-my-posh.omp.json)"
|
||||||
|
}
|
||||||
source "$DOTFILES/config/alias"
|
source "$DOTFILES/config/alias"
|
||||||
|
|||||||
@@ -75,6 +75,8 @@ alias code_scanner='docker run
|
|||||||
registry.gitlab.com/gitlab-org/ci-cd/codequality:"${CODEQUALITY_VERSION:-latest}"
|
registry.gitlab.com/gitlab-org/ci-cd/codequality:"${CODEQUALITY_VERSION:-latest}"
|
||||||
/code'
|
/code'
|
||||||
|
|
||||||
|
alias trivy_scan='docker run -v /var/run/docker.sock:/var/run/docker.sock -v $HOME/Library/Caches:/root/.cache/ aquasec/trivy'
|
||||||
|
|
||||||
alias zedit='$EDITOR ~/.dotfiles'
|
alias zedit='$EDITOR ~/.dotfiles'
|
||||||
|
|
||||||
alias irssi="irssi --config=$XDG_CONFIG_HOME/irssi/config --home=$XDG_CONFIG_HOME/irssi"
|
alias irssi="irssi --config=$XDG_CONFIG_HOME/irssi/config --home=$XDG_CONFIG_HOME/irssi"
|
||||||
|
|||||||
1
config/cheat/cheatsheets/tldr
Submodule
1
config/cheat/cheatsheets/tldr
Submodule
Submodule config/cheat/cheatsheets/tldr added at a60bdfc18c
@@ -72,7 +72,7 @@ cheatpaths:
|
|||||||
tags: [pure-bash-bible]
|
tags: [pure-bash-bible]
|
||||||
readonly: true
|
readonly: true
|
||||||
- name: tldr
|
- name: tldr
|
||||||
path: ~/.dotfiles/config/cheat/cheatsheets/tldr
|
path: ~/.dotfiles/config/cheat/cheatsheets/tldr/tldr
|
||||||
tags: [tldr]
|
tags: [tldr]
|
||||||
readonly: true
|
readonly: true
|
||||||
# While it requires no configuration here, it's also worth noting that
|
# While it requires no configuration here, it's also worth noting that
|
||||||
|
|||||||
@@ -24,6 +24,10 @@ export ANDROID_HOME="$XDG_DATA_HOME/android"
|
|||||||
# bob manages nvim versions
|
# bob manages nvim versions
|
||||||
export PATH="$XDG_DATA_HOME/bob/nvim-bin:$PATH"
|
export PATH="$XDG_DATA_HOME/bob/nvim-bin:$PATH"
|
||||||
|
|
||||||
|
# bkt (shell command caching tool) configuration
|
||||||
|
export BKT_TTL=1m
|
||||||
|
|
||||||
|
# brew, https://docs.brew.sh/Manpage
|
||||||
export HOMEBREW_NO_ENV_HINTS=true
|
export HOMEBREW_NO_ENV_HINTS=true
|
||||||
|
|
||||||
# composer, https://getcomposer.org/
|
# composer, https://getcomposer.org/
|
||||||
|
|||||||
@@ -6,26 +6,17 @@ tap "gesquive/tap"
|
|||||||
tap "github/gh"
|
tap "github/gh"
|
||||||
tap "homebrew/autoupdate"
|
tap "homebrew/autoupdate"
|
||||||
tap "homebrew/bundle"
|
tap "homebrew/bundle"
|
||||||
|
tap "homebrew/cask"
|
||||||
tap "homebrew/cask-fonts"
|
tap "homebrew/cask-fonts"
|
||||||
|
tap "homebrew/core"
|
||||||
tap "homebrew/services"
|
tap "homebrew/services"
|
||||||
tap "jesseduffield/lazygit"
|
tap "jesseduffield/lazygit"
|
||||||
|
tap "keith/formulae"
|
||||||
tap "mongodb/brew"
|
tap "mongodb/brew"
|
||||||
tap "shivammathur/extensions"
|
tap "shivammathur/extensions"
|
||||||
tap "shivammathur/php"
|
tap "shivammathur/php"
|
||||||
tap "teamookla/speedtest"
|
tap "teamookla/speedtest"
|
||||||
tap "xwmx/taps"
|
tap "xwmx/taps"
|
||||||
# Run your GitHub Actions locally
|
|
||||||
brew "act"
|
|
||||||
# Mozilla CA certificate store
|
|
||||||
brew "ca-certificates"
|
|
||||||
# YAML Parser
|
|
||||||
brew "libyaml"
|
|
||||||
# Cryptography and SSL/TLS Toolkit
|
|
||||||
brew "openssl@3"
|
|
||||||
# Automate deployment, configuration, and upgrading
|
|
||||||
brew "ansible"
|
|
||||||
# Checks ansible playbooks for practices and behaviour
|
|
||||||
brew "ansible-lint"
|
|
||||||
# Generic-purpose lossless compression algorithm by Google
|
# Generic-purpose lossless compression algorithm by Google
|
||||||
brew "brotli"
|
brew "brotli"
|
||||||
# Library and utilities for processing GIFs
|
# Library and utilities for processing GIFs
|
||||||
@@ -44,26 +35,20 @@ brew "jpeg-xl"
|
|||||||
brew "aom"
|
brew "aom"
|
||||||
# Apache Portable Runtime library
|
# Apache Portable Runtime library
|
||||||
brew "apr"
|
brew "apr"
|
||||||
|
# Mozilla CA certificate store
|
||||||
|
brew "ca-certificates"
|
||||||
|
# Cryptography and SSL/TLS Toolkit
|
||||||
|
brew "openssl@3"
|
||||||
# Companion library to apr, the Apache Portable Runtime library
|
# Companion library to apr, the Apache Portable Runtime library
|
||||||
brew "apr-util"
|
brew "apr-util"
|
||||||
# Password hashing library and CLI utility
|
# Password hashing library and CLI utility
|
||||||
brew "argon2"
|
brew "argon2"
|
||||||
# Open Source Kubernetes Marketplace
|
# Open Source Kubernetes Marketplace
|
||||||
brew "arkade"
|
brew "arkade"
|
||||||
# Automatic configure script builder
|
|
||||||
brew "autoconf"
|
|
||||||
# GNU multiple precision arithmetic library
|
|
||||||
brew "gmp"
|
|
||||||
# GNU File, Shell, and Text utilities
|
|
||||||
brew "coreutils"
|
|
||||||
# Extendable version manager with support for Ruby, Node.js, Erlang & more
|
|
||||||
brew "asdf"
|
|
||||||
# Spell checker with better logic than ispell
|
# Spell checker with better logic than ispell
|
||||||
brew "aspell"
|
brew "aspell"
|
||||||
# Interpreted, interactive, object-oriented programming language
|
# Automatic configure script builder
|
||||||
brew "python@3.11"
|
brew "autoconf"
|
||||||
# Official Amazon AWS command-line interface
|
|
||||||
brew "awscli"
|
|
||||||
# Bourne-Again SHell, a UNIX command interpreter
|
# Bourne-Again SHell, a UNIX command interpreter
|
||||||
brew "bash"
|
brew "bash"
|
||||||
# Clone of cat(1) with syntax highlighting and Git integration
|
# Clone of cat(1) with syntax highlighting and Git integration
|
||||||
@@ -72,8 +57,6 @@ brew "bat"
|
|||||||
brew "icu4c"
|
brew "icu4c"
|
||||||
# Yet another cross-platform graphical process/system monitor
|
# Yet another cross-platform graphical process/system monitor
|
||||||
brew "bottom"
|
brew "bottom"
|
||||||
# Switch Apache / Valet / CLI configs between PHP versions
|
|
||||||
brew "brew-php-switcher"
|
|
||||||
# Software library to render fonts
|
# Software library to render fonts
|
||||||
brew "freetype"
|
brew "freetype"
|
||||||
# XML-based font configuration API for X Windows
|
# XML-based font configuration API for X Windows
|
||||||
@@ -82,36 +65,26 @@ brew "fontconfig"
|
|||||||
brew "gettext"
|
brew "gettext"
|
||||||
# Core application library for C
|
# Core application library for C
|
||||||
brew "glib"
|
brew "glib"
|
||||||
# Manage compile and link flags for libraries
|
|
||||||
brew "pkg-config"
|
|
||||||
# Human-friendly and fast alternative to cut and (sometimes) awk
|
# Human-friendly and fast alternative to cut and (sometimes) awk
|
||||||
brew "choose-rust"
|
brew "choose-rust"
|
||||||
# Cross-platform make
|
# Cross-platform make
|
||||||
brew "cmake"
|
brew "cmake"
|
||||||
|
# GNU multiple precision arithmetic library
|
||||||
|
brew "gmp"
|
||||||
|
# GNU File, Shell, and Text utilities
|
||||||
|
brew "coreutils"
|
||||||
# Get, unpack, build, and install modules from CPAN
|
# Get, unpack, build, and install modules from CPAN
|
||||||
brew "cpanminus"
|
brew "cpanminus"
|
||||||
# Open source suite of directory software
|
# Open source suite of directory software
|
||||||
brew "openldap"
|
brew "openldap"
|
||||||
# Get a file from an HTTP, HTTPS or FTP server
|
# Get a file from an HTTP, HTTPS or FTP server
|
||||||
brew "curl"
|
brew "curl"
|
||||||
# Diff that understands syntax
|
|
||||||
brew "difftastic"
|
|
||||||
# Tool for exploring each layer in a docker image
|
|
||||||
brew "dive"
|
|
||||||
# Lightweight DNS forwarder and DHCP server
|
# Lightweight DNS forwarder and DHCP server
|
||||||
brew "dnsmasq"
|
brew "dnsmasq"
|
||||||
# Command-line DNS client
|
|
||||||
brew "dog"
|
|
||||||
# Lightning-fast linter for .env files written in Rust
|
# Lightning-fast linter for .env files written in Rust
|
||||||
brew "dotenv-linter"
|
brew "dotenv-linter"
|
||||||
# Tool to verify that your files are in harmony with your .editorconfig
|
|
||||||
brew "editorconfig-checker", link: false
|
|
||||||
# Useful examples at the command-line
|
|
||||||
brew "eg-examples"
|
|
||||||
# Spellchecker wrapping library
|
# Spellchecker wrapping library
|
||||||
brew "enchant"
|
brew "enchant"
|
||||||
# Run arbitrary commands when files change
|
|
||||||
brew "entr"
|
|
||||||
# Perl lib for reading and writing EXIF metadata
|
# Perl lib for reading and writing EXIF metadata
|
||||||
brew "exiftool"
|
brew "exiftool"
|
||||||
# Simple, fast and user-friendly alternative to find
|
# Simple, fast and user-friendly alternative to find
|
||||||
@@ -127,7 +100,7 @@ brew "fzf"
|
|||||||
# Graphics library to dynamically manipulate images
|
# Graphics library to dynamically manipulate images
|
||||||
brew "gd"
|
brew "gd"
|
||||||
# Disk usage analyzer with console interface written in Go
|
# Disk usage analyzer with console interface written in Go
|
||||||
brew "gdu", link: false
|
brew "gdu"
|
||||||
# GitHub command-line tool
|
# GitHub command-line tool
|
||||||
brew "gh"
|
brew "gh"
|
||||||
# Distributed revision control system
|
# Distributed revision control system
|
||||||
@@ -138,8 +111,6 @@ brew "git-crypt"
|
|||||||
brew "git-extras"
|
brew "git-extras"
|
||||||
# See your latest local git branches, formatted real fancy
|
# See your latest local git branches, formatted real fancy
|
||||||
brew "git-recent"
|
brew "git-recent"
|
||||||
# Open-source GitLab command-line tool
|
|
||||||
brew "glab"
|
|
||||||
# Render markdown on the CLI
|
# Render markdown on the CLI
|
||||||
brew "glow"
|
brew "glow"
|
||||||
# GNU implementation of the famous stream editor
|
# GNU implementation of the famous stream editor
|
||||||
@@ -174,10 +145,6 @@ brew "gzip"
|
|||||||
brew "hadolint"
|
brew "hadolint"
|
||||||
# Improved top (interactive process viewer)
|
# Improved top (interactive process viewer)
|
||||||
brew "htop"
|
brew "htop"
|
||||||
# Website copier/offline browser
|
|
||||||
brew "httrack"
|
|
||||||
# Configurable static site generator
|
|
||||||
brew "hugo"
|
|
||||||
# ISO/IEC 23008-12:2017 HEIF file format decoder and encoder
|
# ISO/IEC 23008-12:2017 HEIF file format decoder and encoder
|
||||||
brew "libheif"
|
brew "libheif"
|
||||||
# Tools and libraries to manipulate images in many formats
|
# Tools and libraries to manipulate images in many formats
|
||||||
@@ -188,26 +155,28 @@ brew "irssi"
|
|||||||
brew "jq"
|
brew "jq"
|
||||||
# Network authentication protocol
|
# Network authentication protocol
|
||||||
brew "krb5"
|
brew "krb5"
|
||||||
# Lazier way to manage everything docker
|
# Tool to detect/remediate misconfig and security risks of GitHub/GitLab assets
|
||||||
brew "lazydocker"
|
brew "legitify"
|
||||||
# Postgres C API library
|
# Postgres C API library
|
||||||
brew "libpq"
|
brew "libpq"
|
||||||
# Linguistic software and Finnish dictionary
|
# Manage compile and link flags for libraries
|
||||||
brew "libvoikko"
|
brew "pkg-config"
|
||||||
# Rainbows and unicorns in your console!
|
# YAML Parser
|
||||||
brew "lolcat"
|
brew "libyaml"
|
||||||
|
# Interpreted, interactive, object-oriented programming language
|
||||||
|
brew "python@3.11"
|
||||||
# Package manager for the Lua programming language
|
# Package manager for the Lua programming language
|
||||||
brew "luarocks"
|
brew "luarocks"
|
||||||
# LZMA-based compression program similar to gzip or bzip2
|
# LZMA-based compression program similar to gzip or bzip2
|
||||||
brew "lzip"
|
brew "lzip"
|
||||||
# Swiss Army Knife for macOS
|
# Swiss Army Knife for macOS
|
||||||
brew "m-cli"
|
brew "m-cli"
|
||||||
# Mac App Store command-line interface
|
|
||||||
brew "mas"
|
|
||||||
# Mongrel of mail user agents (part elm, pine, mush, mh, etc.)
|
# Mongrel of mail user agents (part elm, pine, mush, mh, etc.)
|
||||||
brew "mutt"
|
brew "mutt"
|
||||||
# NCurses Disk Usage
|
# NCurses Disk Usage
|
||||||
brew "ncdu"
|
brew "ncdu"
|
||||||
|
# Ambitious Vim-fork focused on extensibility and agility
|
||||||
|
brew "neovim"
|
||||||
# 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
|
||||||
@@ -220,38 +189,28 @@ brew "openjdk@11"
|
|||||||
brew "openapi-generator"
|
brew "openapi-generator"
|
||||||
# Development kit for the Java programming language
|
# Development kit for the Java programming language
|
||||||
brew "openjdk"
|
brew "openjdk"
|
||||||
# Swiss-army knife of markup format conversion
|
|
||||||
brew "pandoc"
|
|
||||||
# Highly capable, feature-rich programming language
|
# Highly capable, feature-rich programming language
|
||||||
brew "perl"
|
brew "perl"
|
||||||
# General-purpose scripting language
|
# Coreutils progress viewer
|
||||||
brew "php@8.1"
|
brew "progress"
|
||||||
# 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
|
||||||
brew "pyenv-pip-migrate"
|
brew "pyenv-pip-migrate"
|
||||||
# Pyenv plugin to manage virtualenv
|
# Pyenv plugin to manage virtualenv
|
||||||
brew "pyenv-virtualenv"
|
brew "pyenv-virtualenv"
|
||||||
# Interpreted, interactive, object-oriented programming language
|
|
||||||
brew "python@3.10"
|
|
||||||
# Interpreted, interactive, object-oriented programming language
|
|
||||||
brew "python@3.8"
|
|
||||||
# Ruby version manager
|
# Ruby version manager
|
||||||
brew "rbenv"
|
brew "rbenv"
|
||||||
# RC file (dotfile) management
|
# RC file (dotfile) management
|
||||||
brew "rcm"
|
brew "rcm"
|
||||||
# Search tool like grep and The Silver Searcher
|
# Search tool like grep and The Silver Searcher
|
||||||
brew "ripgrep"
|
brew "ripgrep"
|
||||||
|
# Safe, concurrent, practical language
|
||||||
|
brew "rust"
|
||||||
# Static analysis and lint tool, for (ba)sh scripts
|
# Static analysis and lint tool, for (ba)sh scripts
|
||||||
brew "shellcheck"
|
brew "shellcheck"
|
||||||
# Autoformat shell script source code
|
# Autoformat shell script source code
|
||||||
brew "shfmt"
|
brew "shfmt"
|
||||||
# Support CI generation of SBOMs via golang tooling
|
|
||||||
brew "spdx-sbom-generator"
|
|
||||||
# Version control system designed to be a better CVS
|
|
||||||
brew "subversion"
|
|
||||||
# Feature-rich console based todo list manager
|
# Feature-rich console based todo list manager
|
||||||
brew "task"
|
brew "task"
|
||||||
# Terminal user interface for taskwarrior
|
# Terminal user interface for taskwarrior
|
||||||
@@ -270,60 +229,51 @@ brew "tfenv"
|
|||||||
brew "tflint"
|
brew "tflint"
|
||||||
# Static analysis security scanner for your terraform code
|
# Static analysis security scanner for your terraform code
|
||||||
brew "tfsec"
|
brew "tfsec"
|
||||||
# Programmatically correct mistyped console commands
|
|
||||||
brew "thefuck"
|
|
||||||
# Terminal multiplexer
|
# Terminal multiplexer
|
||||||
brew "tmux"
|
brew "tmux"
|
||||||
# Display directories as trees (with optional color/HTML output)
|
# Display directories as trees (with optional color/HTML output)
|
||||||
brew "tree"
|
brew "tree"
|
||||||
# Vulnerability scanner for container images, file systems, and Git repos
|
|
||||||
brew "trivy"
|
|
||||||
# Modern watch command
|
|
||||||
brew "viddy"
|
|
||||||
# Tool for creating isolated virtual python environments
|
# Tool for creating isolated virtual python environments
|
||||||
brew "virtualenv"
|
brew "virtualenv"
|
||||||
# Command-line interface to the WakaTime api
|
# Command-line interface to the WakaTime api
|
||||||
brew "wakatime-cli"
|
brew "wakatime-cli"
|
||||||
# Executes a program periodically, showing output fullscreen
|
# Executes a program periodically, showing output fullscreen
|
||||||
brew "watch"
|
brew "watch"
|
||||||
# Watch files and take action when they change
|
|
||||||
brew "watchman"
|
|
||||||
# Internet file retriever
|
# Internet file retriever
|
||||||
brew "wget"
|
brew "wget"
|
||||||
# Personal information dashboard for your terminal
|
|
||||||
brew "wtfutil"
|
|
||||||
# Check your $HOME for unwanted files and directories
|
# Check your $HOME for unwanted files and directories
|
||||||
brew "xdg-ninja", args: ["HEAD"]
|
brew "xdg-ninja", args: ["HEAD"]
|
||||||
# Hackable, minimal, fast TUI file explorer
|
# Hackable, minimal, fast TUI file explorer
|
||||||
brew "xplr"
|
brew "xplr"
|
||||||
# JavaScript package manager
|
# JavaScript package manager
|
||||||
brew "yarn"
|
brew "yarn"
|
||||||
# A vulnerability scanner for container images and filesystems
|
|
||||||
brew "anchore/grype/grype"
|
|
||||||
# High-performance load testing tool, written in Golang.
|
# High-performance load testing tool, written in Golang.
|
||||||
brew "ddosify/tap/ddosify"
|
brew "ddosify/tap/ddosify"
|
||||||
# lets you quickly switch between multiple git user profiles
|
# lets you quickly switch between multiple git user profiles
|
||||||
brew "gesquive/tap/git-user"
|
brew "gesquive/tap/git-user"
|
||||||
# A simple terminal UI for git commands, written in Go
|
brew "keith/formulae/reminders-cli"
|
||||||
brew "jesseduffield/lazygit/lazygit"
|
|
||||||
# High-performance, schema-free, document-oriented database
|
|
||||||
brew "mongodb/brew/mongodb-community"
|
|
||||||
# Imagick PHP extension
|
# Imagick PHP extension
|
||||||
brew "shivammathur/extensions/imagick@8.2"
|
brew "shivammathur/extensions/imagick@8.2"
|
||||||
|
# Imagick PHP extension
|
||||||
|
brew "shivammathur/extensions/imagick@8.3"
|
||||||
|
# Mcrypt PHP extension
|
||||||
|
brew "shivammathur/extensions/mcrypt@8.3"
|
||||||
|
# PCOV PHP extension
|
||||||
|
brew "shivammathur/extensions/pcov@8.3"
|
||||||
|
# Redis PHP extension
|
||||||
|
brew "shivammathur/extensions/redis@8.3"
|
||||||
|
# Uuid PHP extension
|
||||||
|
brew "shivammathur/extensions/uuid@8.3"
|
||||||
# Xdebug PHP extension
|
# Xdebug PHP extension
|
||||||
brew "shivammathur/extensions/xdebug@7.4"
|
brew "shivammathur/extensions/xdebug@7.4"
|
||||||
# Xdebug PHP extension
|
# Xdebug PHP extension
|
||||||
brew "shivammathur/extensions/xdebug@8.0"
|
brew "shivammathur/extensions/xdebug@8.0"
|
||||||
# Xdebug PHP extension
|
# Xdebug PHP extension
|
||||||
brew "shivammathur/extensions/xdebug@8.1"
|
brew "shivammathur/extensions/xdebug@8.1"
|
||||||
|
# Yaml PHP extension
|
||||||
|
brew "shivammathur/extensions/yaml@8.3"
|
||||||
# General-purpose scripting language
|
# General-purpose scripting language
|
||||||
brew "shivammathur/php/php"
|
brew "shivammathur/php/php"
|
||||||
# General-purpose scripting language
|
|
||||||
brew "shivammathur/php/php@7.4"
|
|
||||||
# General-purpose scripting language
|
|
||||||
brew "shivammathur/php/php@8.0"
|
|
||||||
# Ookla Speedtest
|
|
||||||
brew "teamookla/speedtest/speedtest"
|
|
||||||
# Command-line interface for 1Password
|
# Command-line interface for 1Password
|
||||||
cask "1password-cli"
|
cask "1password-cli"
|
||||||
# GPU-accelerated terminal emulator
|
# GPU-accelerated terminal emulator
|
||||||
@@ -338,7 +288,7 @@ cask "coda"
|
|||||||
cask "dbeaver-community"
|
cask "dbeaver-community"
|
||||||
# Database version management tool
|
# Database version management tool
|
||||||
cask "dbngin"
|
cask "dbngin"
|
||||||
# App to build and share containerized applications and microservices
|
# App to build and share containerised applications and microservices
|
||||||
cask "docker"
|
cask "docker"
|
||||||
# UI toolkit for building applications for mobile, web and desktop
|
# UI toolkit for building applications for mobile, web and desktop
|
||||||
cask "flutter"
|
cask "flutter"
|
||||||
@@ -360,8 +310,6 @@ cask "font-source-serif-pro"
|
|||||||
cask "fontplop"
|
cask "fontplop"
|
||||||
# GIT client
|
# GIT client
|
||||||
cask "fork"
|
cask "fork"
|
||||||
# Set of tools to manage resources and applications hosted on Google Cloud
|
|
||||||
cask "google-cloud-sdk"
|
|
||||||
# HTTP and GraphQL Client
|
# HTTP and GraphQL Client
|
||||||
cask "insomnia"
|
cask "insomnia"
|
||||||
# JetBrains tools manager
|
# JetBrains tools manager
|
||||||
@@ -378,19 +326,19 @@ cask "ngrok"
|
|||||||
cask "notunes"
|
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 organisation
|
||||||
cask "omnifocus"
|
cask "omnifocus"
|
||||||
# Collaboration platform for API development
|
# Collaboration platform for API development
|
||||||
cask "postman"
|
cask "postman"
|
||||||
# Display image info and preview unsupported formats in QuickLook
|
# Display image info and preview unsupported formats in QuickLook
|
||||||
cask "qlimagesize"
|
cask "qlimagesize"
|
||||||
# QuickLook generator for Markdown files
|
# Quick Look generator for Markdown files
|
||||||
cask "qlmarkdown"
|
cask "qlmarkdown"
|
||||||
# QuickLook plugin for plaintext files without an extension
|
# Quick Look plugin for plaintext files without an extension
|
||||||
cask "qlstephen"
|
cask "qlstephen"
|
||||||
# QuickLook plugin for JSON files
|
# Quick Look plugin for JSON files
|
||||||
cask "quicklook-json"
|
cask "quicklook-json"
|
||||||
# QuickLook generator for Adobe Swatch Exchange files
|
# Quick Look generator for Adobe Swatch Exchange files
|
||||||
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"
|
||||||
@@ -424,95 +372,5 @@ cask "vlc"
|
|||||||
cask "voikkospellservice"
|
cask "voikkospellservice"
|
||||||
# Rust-based terminal
|
# Rust-based terminal
|
||||||
cask "warp"
|
cask "warp"
|
||||||
mas "1Password for Safari", id: 1569813296
|
# Application for generating TOTP and HOTP codes
|
||||||
mas "Actions", id: 1586435171
|
cask "yubico-authenticator"
|
||||||
mas "Audiobook Builder", id: 1437681957
|
|
||||||
mas "Ivory", id: 6444602274
|
|
||||||
mas "Keynote", id: 409183694
|
|
||||||
mas "LastPass", id: 926036361
|
|
||||||
mas "Numbers", id: 409203825
|
|
||||||
mas "Pages", id: 409201541
|
|
||||||
mas "Pixelmator Pro", id: 1289583905
|
|
||||||
mas "Final Cut Pro", id: 424389933
|
|
||||||
mas "Tailscale", id: 1475387142
|
|
||||||
mas "Xcode", id: 497799835
|
|
||||||
vscode "4ops.terraform"
|
|
||||||
vscode "adamiBs.terraform-live-graph"
|
|
||||||
vscode "akamud.vscode-theme-onelight"
|
|
||||||
vscode "amiralizadeh9480.laravel-extra-intellisense"
|
|
||||||
vscode "andrewleedham.vscode-css-modules"
|
|
||||||
vscode "andrewmcodes.tailwindcss-extension-pack"
|
|
||||||
vscode "austenc.tailwind-docs"
|
|
||||||
vscode "bmewburn.vscode-intelephense-client"
|
|
||||||
vscode "Box-Of-Hats.bemhelper"
|
|
||||||
vscode "bradlc.vscode-tailwindcss"
|
|
||||||
vscode "christian-kohler.npm-intellisense"
|
|
||||||
vscode "christian-kohler.path-intellisense"
|
|
||||||
vscode "DavidAnson.vscode-markdownlint"
|
|
||||||
vscode "dbaeumer.vscode-eslint"
|
|
||||||
vscode "DotJoshJohnson.xml"
|
|
||||||
vscode "eamodio.gitlens"
|
|
||||||
vscode "EditorConfig.EditorConfig"
|
|
||||||
vscode "esbenp.prettier-vscode"
|
|
||||||
vscode "formulahendry.auto-close-tag"
|
|
||||||
vscode "formulahendry.auto-rename-tag"
|
|
||||||
vscode "formulahendry.code-runner"
|
|
||||||
vscode "foxundermoon.shell-format"
|
|
||||||
vscode "gencer.html-slim-scss-css-class-completion"
|
|
||||||
vscode "GitHub.copilot"
|
|
||||||
vscode "GitHub.copilot-chat"
|
|
||||||
vscode "github.vscode-github-actions"
|
|
||||||
vscode "GitHub.vscode-pull-request-github"
|
|
||||||
vscode "GraphQL.vscode-graphql"
|
|
||||||
vscode "GraphQL.vscode-graphql-execution"
|
|
||||||
vscode "GraphQL.vscode-graphql-syntax"
|
|
||||||
vscode "hashicorp.terraform"
|
|
||||||
vscode "heybourn.headwind"
|
|
||||||
vscode "JohnnyMorganz.stylua"
|
|
||||||
vscode "jumpinjackie.vscode-map-preview"
|
|
||||||
vscode "k--kato.intellij-idea-keybindings"
|
|
||||||
vscode "liamhammett.inline-parameters"
|
|
||||||
vscode "macieklad.tailwind-sass-syntax"
|
|
||||||
vscode "MehediDracula.php-namespace-resolver"
|
|
||||||
vscode "mikestead.dotenv"
|
|
||||||
vscode "MisterJ.vue-volar-extention-pack"
|
|
||||||
vscode "MrChetan.phpstorm-parameter-hints-in-vscode"
|
|
||||||
vscode "mrorz.language-gettext"
|
|
||||||
vscode "ms-azuretools.vscode-azureterraform"
|
|
||||||
vscode "ms-azuretools.vscode-docker"
|
|
||||||
vscode "ms-python.python"
|
|
||||||
vscode "ms-python.vscode-pylance"
|
|
||||||
vscode "ms-toolsai.jupyter"
|
|
||||||
vscode "ms-toolsai.jupyter-renderers"
|
|
||||||
vscode "ms-toolsai.vscode-jupyter-cell-tags"
|
|
||||||
vscode "ms-toolsai.vscode-jupyter-slideshow"
|
|
||||||
vscode "ms-vscode-remote.remote-containers"
|
|
||||||
vscode "ms-vscode-remote.remote-wsl"
|
|
||||||
vscode "ms-vscode.azure-account"
|
|
||||||
vscode "ms-vscode.cpptools"
|
|
||||||
vscode "msjsdiag.vscode-react-native"
|
|
||||||
vscode "mtxr.sqltools"
|
|
||||||
vscode "neilbrayfield.php-docblocker"
|
|
||||||
vscode "nhoizey.gremlins"
|
|
||||||
vscode "octref.vetur"
|
|
||||||
vscode "oderwat.indent-rainbow"
|
|
||||||
vscode "pflannery.vscode-versionlens"
|
|
||||||
vscode "phiter.phpstorm-snippets"
|
|
||||||
vscode "sibiraj-s.vscode-scss-formatter"
|
|
||||||
vscode "SonarSource.sonarlint-vscode"
|
|
||||||
vscode "stylelint.vscode-stylelint"
|
|
||||||
vscode "sumneko.lua"
|
|
||||||
vscode "syler.sass-indented"
|
|
||||||
vscode "timonwong.shellcheck"
|
|
||||||
vscode "tootone.org-mode"
|
|
||||||
vscode "valeryanm.vscode-phpsab"
|
|
||||||
vscode "Vue.volar"
|
|
||||||
vscode "Vue.vscode-typescript-vue-plugin"
|
|
||||||
vscode "WakaTime.vscode-wakatime"
|
|
||||||
vscode "wix.vscode-import-cost"
|
|
||||||
vscode "XadillaX.viml"
|
|
||||||
vscode "xdebug.php-debug"
|
|
||||||
vscode "xdebug.php-pack"
|
|
||||||
vscode "yinfei.luahelper"
|
|
||||||
vscode "yoavbls.pretty-ts-errors"
|
|
||||||
vscode "ZainChen.json"
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"extras": [
|
"extras": [
|
||||||
"lazyvim.plugins.extras.coding.copilot",
|
"lazyvim.plugins.extras.coding.copilot",
|
||||||
|
"lazyvim.plugins.extras.coding.yanky",
|
||||||
"lazyvim.plugins.extras.editor.aerial",
|
"lazyvim.plugins.extras.editor.aerial",
|
||||||
"lazyvim.plugins.extras.editor.leap",
|
"lazyvim.plugins.extras.editor.leap",
|
||||||
"lazyvim.plugins.extras.editor.symbols-outline",
|
"lazyvim.plugins.extras.editor.symbols-outline",
|
||||||
|
|||||||
@@ -1,19 +1,22 @@
|
|||||||
-- Keymaps are automatically loaded on the VeryLazy event
|
-- Keymaps are automatically loaded on the VeryLazy event
|
||||||
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||||
-- Add any additional keymaps here
|
-- Add any additional keymaps here
|
||||||
|
local wk = require("which-key")
|
||||||
|
|
||||||
local keymap = vim.keymap.set
|
-- ╭──────────────────────────────────────────────────────────╮
|
||||||
|
-- │ Comment box │
|
||||||
-- ╭──────────────────────────────────────────────────────────╮
|
-- ╰──────────────────────────────────────────────────────────╯
|
||||||
-- │ Comment box │
|
wk.register({
|
||||||
-- ╰──────────────────────────────────────────────────────────╯
|
["<Leader>"] = {
|
||||||
local cb = require("comment-box")
|
b = {
|
||||||
|
c = {
|
||||||
-- left aligned fixed size box with left aligned text
|
name = "□ Comment boxes",
|
||||||
keymap({ "n", "v" }, "<Leader>bcb", cb.lbox, { desc = "Comment: Left aligned" })
|
b = { "<Cmd>CBccbox<CR>", "Box Title" },
|
||||||
-- centered adapted box with centered text
|
t = { "<Cmd>CBllline<CR>", "Titled Line" },
|
||||||
keymap({ "n", "v" }, "<Leader>bcc", cb.ccbox, { desc = "Comment: Centered" })
|
l = { "<Cmd>CBline<CR>", "Simple Line" },
|
||||||
|
m = { "<Cmd>CBllbox14<CR>", "Marked" },
|
||||||
-- centered line
|
d = { "<Cmd>CBd<CR>", "Remove a box" },
|
||||||
keymap("n", "<Leader>bcl", cb.cline, { desc = "Comment: Centered line" })
|
},
|
||||||
keymap("i", "<M-l>", cb.cline, { desc = "Comment: Centered line" })
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|||||||
@@ -40,8 +40,8 @@ require("lazy").setup({
|
|||||||
lazy = false,
|
lazy = false,
|
||||||
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
|
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
|
||||||
-- have outdated releases, which may break your Neovim install.
|
-- have outdated releases, which may break your Neovim install.
|
||||||
version = false, -- always use the latest git commit
|
-- version = false, -- always use the latest git commit
|
||||||
-- version = "*", -- try installing the latest stable version for plugins that support semver
|
version = "*", -- try installing the latest stable version for plugins that support semver
|
||||||
},
|
},
|
||||||
install = { colorscheme = { "tokyonight" } },
|
install = { colorscheme = { "tokyonight" } },
|
||||||
checker = { enabled = true }, -- automatically check for plugin updates
|
checker = { enabled = true }, -- automatically check for plugin updates
|
||||||
|
|||||||
@@ -56,6 +56,15 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"laytan/tailwind-sorter.nvim",
|
||||||
|
dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-lua/plenary.nvim" },
|
||||||
|
build = "cd formatter && npm i && npm run build",
|
||||||
|
config = true,
|
||||||
|
opts = {
|
||||||
|
on_save_enabled = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
-- Describe the regexp under the cursor
|
-- Describe the regexp under the cursor
|
||||||
-- https://github.com/bennypowers/nvim-regexplainer
|
-- https://github.com/bennypowers/nvim-regexplainer
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
-- luacheck: globals vim
|
-- luacheck: globals vim
|
||||||
return {
|
return {
|
||||||
|
-- Cloak allows you to overlay *'s over defined patterns in defined files.
|
||||||
|
-- https://github.com/laytan/cloak.nvim
|
||||||
|
{ "laytan/cloak.nvim" },
|
||||||
-- Not UFO in the sky, but an ultra fold in Neovim.
|
-- Not UFO in the sky, but an ultra fold in Neovim.
|
||||||
-- https://github.com/kevinhwang91/nvim-ufo/
|
-- https://github.com/kevinhwang91/nvim-ufo/
|
||||||
{
|
{
|
||||||
|
|||||||
150
config/oh-my-posh.omp.json
Normal file
150
config/oh-my-posh.omp.json
Normal file
@@ -0,0 +1,150 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||||||
|
"final_space": true,
|
||||||
|
"shell_integration": true,
|
||||||
|
"console_title_template": "{{.UserName}}@{{.HostName}} {{.Shell}} in {{.PWD}}",
|
||||||
|
"blocks": [
|
||||||
|
{
|
||||||
|
"alignment": "left",
|
||||||
|
"segments": [
|
||||||
|
{
|
||||||
|
"foreground": "cyan",
|
||||||
|
"style": "powerline",
|
||||||
|
"template": "{{ .Icon }}",
|
||||||
|
"type": "os"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "session",
|
||||||
|
"style": "plain",
|
||||||
|
"template": " {{ if .SSHSession }} {{ .UserName }}@{{ end }}{{ .HostName }}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"foreground": "cyan",
|
||||||
|
"properties": {
|
||||||
|
"style": "mixed"
|
||||||
|
},
|
||||||
|
"style": "plain",
|
||||||
|
"template": " {{ .Path }} ",
|
||||||
|
"type": "path",
|
||||||
|
"mapped_locations": {
|
||||||
|
"~/Code/*": "\uF09B"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "git",
|
||||||
|
"style": "plain",
|
||||||
|
"foreground": "lightGreen",
|
||||||
|
"template": "{{ .UpstreamIcon }}{{ if or (.Staging.Changed) (.Working.Changed) }}({{if .Behind }}\u2193 {{ .Behind }} {{ end }}{{if .Staging.Changed }}\uF046 {{ .Staging.String }} {{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }}| {{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}){{ end }}",
|
||||||
|
"properties": {
|
||||||
|
"fetch_status": true,
|
||||||
|
"fetch_upstream_icon": true,
|
||||||
|
"untracked_modes": {
|
||||||
|
"~/Code/oh-my-posh/": "no"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "terraform",
|
||||||
|
"style": "plain",
|
||||||
|
"foreground": "#000000",
|
||||||
|
"background": "#ebcc34",
|
||||||
|
"template": "{{.WorkspaceName}}"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "prompt"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"alignment": "left",
|
||||||
|
"segments": [
|
||||||
|
{
|
||||||
|
"foreground": "#68a063",
|
||||||
|
"properties": {
|
||||||
|
"display_mode": "files",
|
||||||
|
"fetch_package_manager": true,
|
||||||
|
"fetch_version": true
|
||||||
|
},
|
||||||
|
"style": "plain",
|
||||||
|
"template": " {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}",
|
||||||
|
"type": "node"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"foreground": "#4063D8",
|
||||||
|
"properties": {
|
||||||
|
"display_mode": "files",
|
||||||
|
"fetch_version": true
|
||||||
|
},
|
||||||
|
"style": "plain",
|
||||||
|
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
|
||||||
|
"type": "crystal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"foreground": "#DE3F24",
|
||||||
|
"properties": {
|
||||||
|
"display_mode": "files",
|
||||||
|
"fetch_version": true
|
||||||
|
},
|
||||||
|
"style": "plain",
|
||||||
|
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
|
||||||
|
"type": "ruby"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"foreground": "#FED142",
|
||||||
|
"properties": {
|
||||||
|
"display_mode": "context",
|
||||||
|
"fetch_virtual_env": false
|
||||||
|
},
|
||||||
|
"style": "plain",
|
||||||
|
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}",
|
||||||
|
"type": "python"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "php",
|
||||||
|
"style": "plain",
|
||||||
|
"template": " {{ .Full }} "
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "prompt"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"alignment": "left",
|
||||||
|
"newline": true,
|
||||||
|
"segments": [
|
||||||
|
{
|
||||||
|
"background": "transparent",
|
||||||
|
"foreground": "lightGreen",
|
||||||
|
"foreground_templates": ["{{ if gt .Code 0 }}red{{ end }}"],
|
||||||
|
"properties": {
|
||||||
|
"always_enabled": true
|
||||||
|
},
|
||||||
|
"style": "plain",
|
||||||
|
"template": "\u279c",
|
||||||
|
"type": "status"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "prompt"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"transient_prompt": {
|
||||||
|
"background": "transparent",
|
||||||
|
"foreground": "lightGreen",
|
||||||
|
"foreground_templates": ["{{ if gt .Code 0 }}red{{ end }}"],
|
||||||
|
"template": "\u279c "
|
||||||
|
},
|
||||||
|
"tooltips": [
|
||||||
|
{
|
||||||
|
"type": "git",
|
||||||
|
"tips": ["git", "g"],
|
||||||
|
"style": "diamond",
|
||||||
|
"foreground": "#193549",
|
||||||
|
"background": "#fffb38",
|
||||||
|
"leading_diamond": "",
|
||||||
|
"trailing_diamond": "",
|
||||||
|
"template": "{{ .HEAD }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}",
|
||||||
|
"properties": {
|
||||||
|
"fetch_status": true,
|
||||||
|
"fetch_upstream_icon": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"version": 2
|
||||||
|
}
|
||||||
1
config/tmux/plugins/tmux-current-pane-hostname
Submodule
1
config/tmux/plugins/tmux-current-pane-hostname
Submodule
Submodule config/tmux/plugins/tmux-current-pane-hostname added at 6bb3c95250
Submodule config/tmux/plugins/tmux-window-name updated: f89e9c9d71...0772aa2033
@@ -8,8 +8,8 @@
|
|||||||
# │ Bindings │
|
# │ Bindings │
|
||||||
# ╰──────────────────────────────────────────────────────────╯
|
# ╰──────────────────────────────────────────────────────────╯
|
||||||
|
|
||||||
# Set <prefix> to Control + Space
|
# Set <prefix> to Control + Space, keeping the default of C-b intact.
|
||||||
unbind C-b
|
# unbind C-b
|
||||||
set -g prefix C-Space
|
set -g prefix C-Space
|
||||||
bind C-Space send-prefix
|
bind C-Space send-prefix
|
||||||
|
|
||||||
@@ -105,7 +105,7 @@ set-option -g window-status-format ' #I:#W '
|
|||||||
set-window-option -g window-status-current-style 'fg=#111111,bg=#7aa2f7'
|
set-window-option -g window-status-current-style 'fg=#111111,bg=#7aa2f7'
|
||||||
set-option -g window-status-current-format ' #I:#W#{?window_zoomed_flag, , } '
|
set-option -g window-status-current-format ' #I:#W#{?window_zoomed_flag, , } '
|
||||||
|
|
||||||
set-option -g status-left "#S"
|
set-option -g status-left "#{hostname_short}/#S"
|
||||||
set-option -g status-right "%H:%M #{tmux_mode_indicator}"
|
set-option -g status-right "%H:%M #{tmux_mode_indicator}"
|
||||||
|
|
||||||
# ╭──────────────────────────────────────────────────────────╮
|
# ╭──────────────────────────────────────────────────────────╮
|
||||||
@@ -120,19 +120,19 @@ set -g @suspend_key 'F12'
|
|||||||
## A plugin to name your tmux windows smartly.
|
## A plugin to name your tmux windows smartly.
|
||||||
## https://github.com/ofirgall/tmux-window-name
|
## https://github.com/ofirgall/tmux-window-name
|
||||||
### Maximum name length of a window
|
### Maximum name length of a window
|
||||||
set -g @tmux_window_name_max_name_len "30"
|
set -g @tmux_window_name_max_name_len "20"
|
||||||
### Replace $HOME with ~ in window names
|
### Replace $HOME with ~ in window names
|
||||||
set -g @tmux_window_name_use_tilde "True"
|
set -g @tmux_window_name_use_tilde "True"
|
||||||
set -g @tmux_window_name_shells "['bash', 'fish', 'sh', 'zsh']"
|
set -g @tmux_window_name_shells "['bash', 'fish', 'sh', 'zsh']"
|
||||||
set -g @tmux_window_dir_programs "['nvim', 'vim', 'vi', 'git']"
|
set -g @tmux_window_dir_programs "['nvim', 'vim', 'vi', 'git']"
|
||||||
set -g @tmux_window_name_ignored_programs "['sqlite3']" # Default is []
|
set -g @tmux_window_name_ignored_programs "['sqlite3', 'x-set-php-aliases']" # Default is []
|
||||||
|
|
||||||
## https://github.com/tmux-plugins/tmux-continuum
|
## https://github.com/tmux-plugins/tmux-continuum
|
||||||
set -g @continuum-restore 'on'
|
set -g @continuum-restore 'on'
|
||||||
|
|
||||||
## https://github.com/tmux-plugins/tmux-resurrect
|
## https://github.com/tmux-plugins/tmux-resurrect
|
||||||
set -g @resurrect-strategy-nvim 'session'
|
set -g @resurrect-strategy-nvim 'session'
|
||||||
set -g @resurrect-dir '$HOME/.local/state/tmux/tmux-resurrect'
|
set -g @resurrect-dir '~/.local/state/tmux/tmux-resurrect'
|
||||||
|
|
||||||
## https://github.com/MunifTanjim/tmux-mode-indicator
|
## https://github.com/MunifTanjim/tmux-mode-indicator
|
||||||
set -g @mode_indicator_prefix_mode_style 'bg=default,fg=#7aa2f7'
|
set -g @mode_indicator_prefix_mode_style 'bg=default,fg=#7aa2f7'
|
||||||
@@ -152,4 +152,5 @@ run-shell ~/.dotfiles/config/tmux/plugins/tmux-sessionist/sessionist.tmux
|
|||||||
run-shell ~/.dotfiles/config/tmux/plugins/tmux-mode-indicator/mode_indicator.tmux
|
run-shell ~/.dotfiles/config/tmux/plugins/tmux-mode-indicator/mode_indicator.tmux
|
||||||
run-shell ~/.dotfiles/config/tmux/plugins/tmux-suspend/suspend.tmux
|
run-shell ~/.dotfiles/config/tmux/plugins/tmux-suspend/suspend.tmux
|
||||||
run-shell ~/.dotfiles/config/tmux/plugins/tmux-yank/yank.tmux
|
run-shell ~/.dotfiles/config/tmux/plugins/tmux-yank/yank.tmux
|
||||||
|
run-shell ~/.dotfiles/config/tmux/plugins/tmux-current-pane-hostname/current_pane_hostname.tmux
|
||||||
|
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ function section_install
|
|||||||
$0 install fonts
|
$0 install fonts
|
||||||
$0 install antigen
|
$0 install antigen
|
||||||
$0 brew install
|
$0 brew install
|
||||||
|
$0 install ohmyposh
|
||||||
$0 install ohmybash
|
$0 install ohmybash
|
||||||
$0 install pip
|
$0 install pip
|
||||||
$0 install cargo
|
$0 install cargo
|
||||||
@@ -185,6 +186,11 @@ function section_install
|
|||||||
bash "$DOTFILES/scripts/install-ohmybash.sh" \
|
bash "$DOTFILES/scripts/install-ohmybash.sh" \
|
||||||
&& msg_yay "oh-my-bash installed!"
|
&& msg_yay "oh-my-bash installed!"
|
||||||
;;
|
;;
|
||||||
|
ohmyposh)
|
||||||
|
msg "oh-my-posh install started..."
|
||||||
|
bash "$DOTFILES/scripts/install-ohmyposh.sh" \
|
||||||
|
&& msg_yay "oh-my-posh installed!"
|
||||||
|
;;
|
||||||
pip)
|
pip)
|
||||||
msg "pip install started..."
|
msg "pip install started..."
|
||||||
bash "$DOTFILES/scripts/install-pip-packages.sh"
|
bash "$DOTFILES/scripts/install-pip-packages.sh"
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# work around https://github.com/Microsoft/vscode/issues/3941
|
|
||||||
# and anyone else who expects to see a 'python' executable
|
|
||||||
|
|
||||||
exec python3 "$@"
|
|
||||||
@@ -26,7 +26,7 @@ rustup default system
|
|||||||
packages=(
|
packages=(
|
||||||
"cargo-cache"
|
"cargo-cache"
|
||||||
# starship.rs
|
# starship.rs
|
||||||
"starship"
|
# "starship"
|
||||||
# An incremental parsing system for programming tools
|
# An incremental parsing system for programming tools
|
||||||
"tree-sitter-cli"
|
"tree-sitter-cli"
|
||||||
# a subprocess caching utility
|
# a subprocess caching utility
|
||||||
|
|||||||
@@ -1,78 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# shellcheck disable=SC2231,SC2034,SC2181,SC2068
|
|
||||||
# shellcheck source=shared.sh
|
|
||||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
|
||||||
|
|
||||||
TLDR_REQUIRED_TOOLS=(git cheat)
|
|
||||||
for t in ${TLDR_REQUIRED_TOOLS[@]}; do
|
|
||||||
! x-have "$t" && echo "(!) $t is missing, can't continue..." && exit 1
|
|
||||||
done
|
|
||||||
|
|
||||||
TLDR_GIT="https://github.com/tldr-pages/tldr.git"
|
|
||||||
TLDR_SOURCE="source: $TLDR_GIT"
|
|
||||||
TLDR_SYNTAX="syntax: markdown"
|
|
||||||
|
|
||||||
TLDR_TEMP_PREFIX=$(basename "$0")
|
|
||||||
TLDR_TEMP_DIR="$XDG_CACHE_HOME/cheat/tldr"
|
|
||||||
|
|
||||||
# If there's no .git, clone the folder
|
|
||||||
if [ ! -d "$TLDR_TEMP_DIR/.git" ]; then
|
|
||||||
msg_run "Starting to clone $TLDR_GIT"
|
|
||||||
git clone --depth 1 --single-branch -q "$TLDR_GIT" "$TLDR_TEMP_DIR" \
|
|
||||||
&& msg_done "Cloned $TLDR_GIT"
|
|
||||||
else
|
|
||||||
# Update the repo
|
|
||||||
msg_run "Starting to update $TLDR_GIT"
|
|
||||||
git -C "$TLDR_TEMP_DIR" reset --hard origin/main
|
|
||||||
git -C "$TLDR_TEMP_DIR" pull -q --depth 2 \
|
|
||||||
&& msg_done "Updated $TLDR_GIT"
|
|
||||||
fi
|
|
||||||
|
|
||||||
msg_run "Removing non-english translation files"
|
|
||||||
rm -rf "$TLDR_TEMP_DIR/pages.*"
|
|
||||||
|
|
||||||
# Fetch the destination directory from cheat defined directories.
|
|
||||||
TLDR_CHEAT_DEST="$(cheat -d | grep tldr | head -1 | awk '{print $2}')"
|
|
||||||
|
|
||||||
[ "$TLDR_CHEAT_DEST" = "" ] \
|
|
||||||
&& msg_err "cheat doesn't know about the destination" \
|
|
||||||
&& exit 1
|
|
||||||
|
|
||||||
if [ ! -d "$TLDR_CHEAT_DEST" ]; then
|
|
||||||
mkdir -p "$TLDR_CHEAT_DEST"
|
|
||||||
fi
|
|
||||||
|
|
||||||
for d in "$TLDR_TEMP_DIR"/pages/*; do
|
|
||||||
DIRNAME=$(basename "$d")
|
|
||||||
# echo "-> $DIRNAME ($d)"
|
|
||||||
|
|
||||||
SECTION_DIR="${TLDR_CHEAT_DEST}/$DIRNAME"
|
|
||||||
|
|
||||||
[ "$DIRNAME" = "common" ] && SECTION_DIR="${TLDR_CHEAT_DEST}"
|
|
||||||
|
|
||||||
TLDR_TAGS="tags: [$DIRNAME]"
|
|
||||||
|
|
||||||
if [ ! -d "$SECTION_DIR" ]; then
|
|
||||||
mkdir -p "$SECTION_DIR"
|
|
||||||
fi
|
|
||||||
|
|
||||||
for FILE in $d/*.md; do
|
|
||||||
BASENAME=$(basename "$FILE" .md)
|
|
||||||
FILENAME="${BASENAME%%.*}"
|
|
||||||
# echo "-> $FILE = $FILENAME"
|
|
||||||
TLDR_FILE="$SECTION_DIR/${BASENAME}"
|
|
||||||
# echo "-> dest: $TLDR_FILE"
|
|
||||||
|
|
||||||
# Update the original file for making the replacable value comparable
|
|
||||||
if [ -f "$FILE" ] && [ '---' != "$(head -1 < "$FILE")" ]; then
|
|
||||||
echo -e "---\n$TLDR_SYNTAX\n$TLDR_TAGS\n$TLDR_SOURCE\n---\n$(cat "$FILE")" > "$FILE"
|
|
||||||
fi
|
|
||||||
|
|
||||||
replacable "$FILE" "$TLDR_FILE"
|
|
||||||
override=$?
|
|
||||||
if [ "$override" -ne 0 ]; then
|
|
||||||
cp "$FILE" "$TLDR_FILE" && msg_run "Updated: $TLDR_FILE"
|
|
||||||
fi
|
|
||||||
|
|
||||||
done
|
|
||||||
done
|
|
||||||
18
scripts/install-ohmyposh.sh
Executable file
18
scripts/install-ohmyposh.sh
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/env zsh
|
||||||
|
#
|
||||||
|
# Install oh-my-posh
|
||||||
|
#
|
||||||
|
# shellcheck source=shared.sh
|
||||||
|
source "$HOME/.dotfiles/scripts/shared.sh"
|
||||||
|
|
||||||
|
curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/.local/bin
|
||||||
|
|
||||||
|
OHMYPOSH_CFG="$HOME/.dotfiles/config/oh-my-posh.omp.json"
|
||||||
|
|
||||||
|
eval "$(oh-my-posh init zsh --config $OHMYPOSH_CFG)"
|
||||||
|
|
||||||
|
#cd ~/.dotfiles || exit
|
||||||
|
#oh-my-posh config export image \
|
||||||
|
# --config "$OHMYPOSH_CFG" \
|
||||||
|
# --output "~/.dotfiles/.github/screenshots/oh-my-posh.png" \
|
||||||
|
# --author "Ismo Vuorinen"
|
||||||
Submodule tools/dotbot-pip updated: 42e6a8f3be...4d0cc116e8
Reference in New Issue
Block a user