mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-23 19:56:42 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| adecceda7a | |||
| 8a3b2e703c | |||
| 1ee726e30c | |||
| 9857c8eb00 | |||
| a919d9544e | |||
| 7bc7921a17 |
58
.github/README.md
vendored
58
.github/README.md
vendored
@@ -8,6 +8,9 @@ this repository will live accordingly.
|
|||||||
Please for the love of everything good do not use these 1:1 as your own dotfiles,
|
Please for the love of everything good do not use these 1:1 as your own dotfiles,
|
||||||
fork or download the repo as a zip and go from there with your own configs.
|
fork or download the repo as a zip and go from there with your own configs.
|
||||||
|
|
||||||
|
It would be nice if you'd add an issue linking to your fork or repo so I can
|
||||||
|
see what interesing stuff you've done with it. Sharing is caring.
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
### First time setup
|
### First time setup
|
||||||
@@ -35,7 +38,7 @@ fork or download the repo as a zip and go from there with your own configs.
|
|||||||
|
|
||||||
| Path | Description |
|
| Path | Description |
|
||||||
| ------------------- | -------------------------------------------- |
|
| ------------------- | -------------------------------------------- |
|
||||||
| `.github` | GitHub Repository configuration files. |
|
| `.github` | GitHub Repository configuration files, meta. |
|
||||||
| `hosts/{hostname}/` | Configs that should apply to that host only. |
|
| `hosts/{hostname}/` | Configs that should apply to that host only. |
|
||||||
| `local/bin` | Helper scripts that I've collected or wrote. |
|
| `local/bin` | Helper scripts that I've collected or wrote. |
|
||||||
| `scripts` | Setup scripts. |
|
| `scripts` | Setup scripts. |
|
||||||
@@ -51,7 +54,9 @@ fork or download the repo as a zip and go from there with your own configs.
|
|||||||
|
|
||||||
### dfm - the dotfiles manager
|
### dfm - the dotfiles manager
|
||||||
|
|
||||||
`.local/bin/dfm` is a shell script that has some tools that help with dotfiles management.
|
[`.local/bin/dfm`][dfm] is a shell script that has some tools that help with dotfiles management.
|
||||||
|
|
||||||
|
Running `dfm` gives you a list of available commands.
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
@@ -66,51 +71,8 @@ The folder structure follows [XDG Base Directory Specification][xdg] where possi
|
|||||||
| `$XDG_DATA_HOME` | `$HOME/.local/share` | User-specific data files |
|
| `$XDG_DATA_HOME` | `$HOME/.local/share` | User-specific data files |
|
||||||
| `$XDG_STATE_HOME` | `$HOME/.local/state` | App state that should persist between restarts |
|
| `$XDG_STATE_HOME` | `$HOME/.local/state` | App state that should persist between restarts |
|
||||||
|
|
||||||
#### XDG_BIN_HOME (`$HOME/.local/bin`)
|
Please see [docs/folders.md][docs-folders] for more information.
|
||||||
|
|
||||||
`$XDG_BIN_HOME` defines directory that contains local binaries.
|
|
||||||
|
|
||||||
User-specific executable files may be stored in `$HOME/.local/bin`.
|
|
||||||
Distributions should ensure this directory shows up in the UNIX `$PATH`
|
|
||||||
environment variable, at an appropriate place.
|
|
||||||
|
|
||||||
#### XDG_DATA_HOME (`$HOME/.local/share`)
|
|
||||||
|
|
||||||
`$XDG_DATA_HOME` defines the base directory relative to which
|
|
||||||
user-specific _data files_ should be stored.
|
|
||||||
|
|
||||||
If `$XDG_DATA_HOME` is either not set or empty,
|
|
||||||
a default equal to `$HOME/.local/share` should be used.
|
|
||||||
|
|
||||||
#### XDG_CONFIG_HOME (`$HOME/.config`)
|
|
||||||
|
|
||||||
`$XDG_CONFIG_HOME` defines the base directory relative to which
|
|
||||||
user-specific _configuration files_ should be stored.
|
|
||||||
|
|
||||||
If `$XDG_CONFIG_HOME` is either not set or empty,
|
|
||||||
a default equal to `$HOME/.config` should be used.
|
|
||||||
|
|
||||||
#### XDG_STATE_HOME (`$HOME/.local/state`)
|
|
||||||
|
|
||||||
`$XDG_STATE_HOME` defines the base directory relative to which
|
|
||||||
user-specific _state files_ should be stored.
|
|
||||||
|
|
||||||
If `$XDG_STATE_HOME` is either not set or empty,
|
|
||||||
a default equal to `$HOME/.local/state` should be used.
|
|
||||||
|
|
||||||
The `$XDG_STATE_HOME` contains _state data_ that should
|
|
||||||
_persist between (application) restarts_, but that is not important or
|
|
||||||
portable enough to the user that it should be stored in `$XDG_DATA_HOME`.
|
|
||||||
|
|
||||||
- It may contain:
|
|
||||||
- actions history (logs, history, recently used files, …)
|
|
||||||
- current state of the application that can be reused
|
|
||||||
on a restart (view, layout, open files, undo history, …)
|
|
||||||
|
|
||||||
#### XDG_DATA_DIRS
|
|
||||||
|
|
||||||
`$XDG_DATA_DIRS` defines the preference-ordered set of base directories
|
|
||||||
to search for data files in addition to the `$XDG_DATA_HOME` base directory.
|
|
||||||
The directories in `$XDG_DATA_DIRS` should be separated with a colon ':'.
|
|
||||||
|
|
||||||
|
[dfm]: https://github.com/ivuorinen/dotfiles/blob/main/local/bin/dfm
|
||||||
|
[docs-folders]: https://github.com/ivuorinen/dotfiles/blob/main/docs/folders.md
|
||||||
[xdg]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
|
[xdg]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# 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
|
||||||
|
|
||||||
source "$HOME/.dotfiles/config/shared"
|
source "$HOME/.dotfiles/config/shared.sh"
|
||||||
|
|
||||||
x-load-configs
|
x-load-configs
|
||||||
|
|
||||||
|
|||||||
@@ -16,4 +16,4 @@ 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"
|
||||||
|
|
||||||
source "$DOTFILES/config/shared"
|
eval "$DOTFILES/config/shared.sh"
|
||||||
|
|||||||
14
base/zshrc
14
base/zshrc
@@ -1,12 +1,11 @@
|
|||||||
# 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
|
||||||
|
|
||||||
source "$HOME/.dotfiles/config/shared"
|
eval "$HOME/.dotfiles/config/shared.sh"
|
||||||
|
x-load-configs
|
||||||
|
|
||||||
export PATH="$XDG_BIN_HOME:$DOTFILES/local/bin:$HOME/.local/go/bin:$XDG_DATA_HOME/bob/nvim-bin:$XDG_DATA_HOME/cargo/bin:/opt/homebrew/bin:/usr/local/bin:$PATH"
|
export PATH="$XDG_BIN_HOME:$DOTFILES/local/bin:$HOME/.local/go/bin:$XDG_DATA_HOME/bob/nvim-bin:$XDG_DATA_HOME/cargo/bin:/opt/homebrew/bin:/usr/local/bin:$PATH"
|
||||||
|
|
||||||
x-load-configs
|
|
||||||
|
|
||||||
x-have oh-my-posh && {
|
x-have oh-my-posh && {
|
||||||
eval "$(oh-my-posh init zsh --config "$DOTFILES/config/omp/own.toml")"
|
eval "$(oh-my-posh init zsh --config "$DOTFILES/config/omp/own.toml")"
|
||||||
}
|
}
|
||||||
@@ -38,9 +37,6 @@ export ZSH_TMUX_UNICODE=true
|
|||||||
export ZSH_TMUX_AUTOQUIT=false
|
export ZSH_TMUX_AUTOQUIT=false
|
||||||
export ZSH_TMUX_DEFAULT_SESSION_NAME=main
|
export ZSH_TMUX_DEFAULT_SESSION_NAME=main
|
||||||
|
|
||||||
export NVM_DIR="$XDG_CONFIG_HOME/nvm"
|
|
||||||
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc
|
|
||||||
|
|
||||||
# z, the zsh version
|
# z, the zsh version
|
||||||
export ZSHZ_DATA="$XDG_STATE_HOME/z"
|
export ZSHZ_DATA="$XDG_STATE_HOME/z"
|
||||||
antigen bundle z
|
antigen bundle z
|
||||||
@@ -54,10 +50,6 @@ antigen bundle zsh-users/zsh-completions
|
|||||||
|
|
||||||
x-have python && antigen bundle MichaelAquilina/zsh-autoswitch-virtualenv
|
x-have python && antigen bundle MichaelAquilina/zsh-autoswitch-virtualenv
|
||||||
|
|
||||||
# nvm is a strange beast
|
|
||||||
zstyle ':omz:plugins:nvm' autoload yes
|
|
||||||
antigen bundle nvm
|
|
||||||
|
|
||||||
# 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
|
||||||
antigen apply
|
antigen apply
|
||||||
@@ -90,8 +82,6 @@ x-have antidot && {
|
|||||||
eval "$(antidot init)"
|
eval "$(antidot init)"
|
||||||
}
|
}
|
||||||
|
|
||||||
source "$DOTFILES/config/alias"
|
|
||||||
|
|
||||||
# Herd checks for a few environment variables to inject PHP binaries and configurations.
|
# Herd checks for a few environment variables to inject PHP binaries and configurations.
|
||||||
# Herd injected PHP binary.
|
# Herd injected PHP binary.
|
||||||
# export PATH="/Users/ivuorinen/Library/Application\ Support/Herd/bin/":$PATH
|
# export PATH="/Users/ivuorinen/Library/Application\ Support/Herd/bin/":$PATH
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ weather()
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
ssh-docker()
|
ssh_docker()
|
||||||
{
|
{
|
||||||
docker exec -it "$@" bash
|
docker exec -it "$@" bash
|
||||||
}
|
}
|
||||||
|
|||||||
21
config/asdf/cargo-packages
Normal file
21
config/asdf/cargo-packages
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
// A cargo subcommand for checking and applying
|
||||||
|
// updates to installed executables
|
||||||
|
cargo-update
|
||||||
|
// Cargo cache management utility
|
||||||
|
cargo-cache
|
||||||
|
// An incremental parsing system for programming tools
|
||||||
|
tree-sitter-cli
|
||||||
|
// a subprocess caching utility
|
||||||
|
bkt
|
||||||
|
// a structural diff that understands syntax
|
||||||
|
difftastic
|
||||||
|
// A simple, fast and user-friendly alternative to 'find'
|
||||||
|
fd-find
|
||||||
|
// recursively searches directories for a
|
||||||
|
// regex pattern while respecting your gitignore
|
||||||
|
ripgrep
|
||||||
|
// A version manager for neovim
|
||||||
|
bob-nvim
|
||||||
|
// bottom, btm - A cross-platform graphical process/system monitor with
|
||||||
|
// a customizable interface and a multitude of features.
|
||||||
|
bottom
|
||||||
@@ -15,6 +15,7 @@ nodejs https://github.com/asdf-vm/asdf-nodejs.git
|
|||||||
pipx https://github.com/yozachar/asdf-pipx.git 31db618
|
pipx https://github.com/yozachar/asdf-pipx.git 31db618
|
||||||
pre-commit https://github.com/jonathanmorley/asdf-pre-commit.git 26bfc42
|
pre-commit https://github.com/jonathanmorley/asdf-pre-commit.git 26bfc42
|
||||||
ripgrep https://gitlab.com/wt0f/asdf-ripgrep.git e836665
|
ripgrep https://gitlab.com/wt0f/asdf-ripgrep.git e836665
|
||||||
|
rust https://github.com/code-lever/asdf-rust.git 95acf4f
|
||||||
semgrep https://github.com/brentjanderson/asdf-semgrep.git 13ff78b
|
semgrep https://github.com/brentjanderson/asdf-semgrep.git 13ff78b
|
||||||
shellcheck https://github.com/luizm/asdf-shellcheck.git 780d78d
|
shellcheck https://github.com/luizm/asdf-shellcheck.git 780d78d
|
||||||
shfmt https://github.com/luizm/asdf-shfmt.git a42c5ff
|
shfmt https://github.com/luizm/asdf-shfmt.git a42c5ff
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ nodejs 22.4.1
|
|||||||
pipx 1.6.0
|
pipx 1.6.0
|
||||||
pre-commit 3.7.1
|
pre-commit 3.7.1
|
||||||
ripgrep 14.1.0
|
ripgrep 14.1.0
|
||||||
|
rust 1.79.0
|
||||||
semgrep system
|
semgrep system
|
||||||
shellcheck 0.10.0
|
shellcheck 0.10.0
|
||||||
shfmt 3.8.0
|
shfmt 3.8.0
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ have()
|
|||||||
# function to run dark-notify and change alacritty theme
|
# function to run dark-notify and change alacritty theme
|
||||||
# it uses flock to prevent running multiple instances
|
# it uses flock to prevent running multiple instances
|
||||||
# install flock with `brew install flock` on macOS
|
# install flock with `brew install flock` on macOS
|
||||||
function darknotify-alacritty
|
function darknotify_alacritty
|
||||||
{
|
{
|
||||||
have flock && [[ -f /tmp/dark-notify-alacritty.lock ]] && return
|
have flock && [[ -f /tmp/dark-notify-alacritty.lock ]] && return
|
||||||
have dark-notify && {
|
have dark-notify && {
|
||||||
@@ -48,7 +48,7 @@ function darknotify-alacritty
|
|||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
darknotify-alacritty
|
darknotify_alacritty
|
||||||
|
|
||||||
brew_installed()
|
brew_installed()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ export ASDF_NODEJS_LEGACY_FILE_DYNAMIC_STRATEGY="latest_available"
|
|||||||
export ASDF_NPM_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/npm-packages"
|
export ASDF_NPM_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/npm-packages"
|
||||||
export ASDF_GOLANG_MOD_VERSION_ENABLED=true
|
export ASDF_GOLANG_MOD_VERSION_ENABLED=true
|
||||||
export ASDF_GOLANG_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/golang-packages"
|
export ASDF_GOLANG_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/golang-packages"
|
||||||
|
export ASDF_CRATE_DEFAULT_PACKAGES_FILE="${XDG_CONFIG_HOME}/asdf/cargo-packages"
|
||||||
export PATH="${ASDF_DIR}/bin:${PATH}"
|
export PATH="${ASDF_DIR}/bin:${PATH}"
|
||||||
|
|
||||||
# bob manages nvim versions
|
# bob manages nvim versions
|
||||||
|
|||||||
1
config/shared → config/shared.sh
Normal file → Executable file
1
config/shared → config/shared.sh
Normal file → Executable file
@@ -21,4 +21,3 @@ export PATH="$XDG_BIN_HOME:$DOTFILES/local/bin:$HOME/.local/go/bin:$XDG_DATA_HOM
|
|||||||
source "$DOTFILES/config/exports"
|
source "$DOTFILES/config/exports"
|
||||||
source "$DOTFILES/config/functions"
|
source "$DOTFILES/config/functions"
|
||||||
source "$DOTFILES/config/alias"
|
source "$DOTFILES/config/alias"
|
||||||
|
|
||||||
53
docs/folders.md
Normal file
53
docs/folders.md
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
# Interesting folders
|
||||||
|
|
||||||
|
## XDG
|
||||||
|
|
||||||
|
XDG is a set of specifications that provide a standard for the organization
|
||||||
|
of user-specific files and directories. It is based on the _XDG Base Directory Specification_.
|
||||||
|
|
||||||
|
### XDG_BIN_HOME (`$HOME/.local/bin`)
|
||||||
|
|
||||||
|
`$XDG_BIN_HOME` defines directory that contains local binaries.
|
||||||
|
|
||||||
|
User-specific executable files may be stored in `$HOME/.local/bin`.
|
||||||
|
Distributions should ensure this directory shows up in the UNIX `$PATH`
|
||||||
|
environment variable, at an appropriate place.
|
||||||
|
|
||||||
|
### XDG_DATA_HOME (`$HOME/.local/share`)
|
||||||
|
|
||||||
|
`$XDG_DATA_HOME` defines the base directory relative to which
|
||||||
|
user-specific _data files_ should be stored.
|
||||||
|
|
||||||
|
If `$XDG_DATA_HOME` is either not set or empty,
|
||||||
|
a default equal to `$HOME/.local/share` should be used.
|
||||||
|
|
||||||
|
### XDG_CONFIG_HOME (`$HOME/.config`)
|
||||||
|
|
||||||
|
`$XDG_CONFIG_HOME` defines the base directory relative to which
|
||||||
|
user-specific _configuration files_ should be stored.
|
||||||
|
|
||||||
|
If `$XDG_CONFIG_HOME` is either not set or empty,
|
||||||
|
a default equal to `$HOME/.config` should be used.
|
||||||
|
|
||||||
|
### XDG_STATE_HOME (`$HOME/.local/state`)
|
||||||
|
|
||||||
|
`$XDG_STATE_HOME` defines the base directory relative to which
|
||||||
|
user-specific _state files_ should be stored.
|
||||||
|
|
||||||
|
If `$XDG_STATE_HOME` is either not set or empty,
|
||||||
|
a default equal to `$HOME/.local/state` should be used.
|
||||||
|
|
||||||
|
The `$XDG_STATE_HOME` contains _state data_ that should
|
||||||
|
_persist between (application) restarts_, but that is not important or
|
||||||
|
portable enough to the user that it should be stored in `$XDG_DATA_HOME`.
|
||||||
|
|
||||||
|
- It may contain:
|
||||||
|
- actions history (logs, history, recently used files, …)
|
||||||
|
- current state of the application that can be reused
|
||||||
|
on a restart (view, layout, open files, undo history, …)
|
||||||
|
|
||||||
|
### XDG_DATA_DIRS
|
||||||
|
|
||||||
|
`$XDG_DATA_DIRS` defines the preference-ordered set of base directories
|
||||||
|
to search for data files in addition to the `$XDG_DATA_HOME` base directory.
|
||||||
|
The directories in `$XDG_DATA_DIRS` should be separated with a colon ':'.
|
||||||
BIN
hosts/air/config/wallpaper.jpg
Normal file
BIN
hosts/air/config/wallpaper.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
@@ -65,7 +65,7 @@ function section_install
|
|||||||
$0 install asdf
|
$0 install asdf
|
||||||
# $0 install ohmybash
|
# $0 install ohmybash
|
||||||
# $0 install pip
|
# $0 install pip
|
||||||
$0 install cargo
|
# $0 install cargo
|
||||||
$0 install composer
|
$0 install composer
|
||||||
# $0 install dotenv
|
# $0 install dotenv
|
||||||
$0 install fzf
|
$0 install fzf
|
||||||
|
|||||||
@@ -2,10 +2,7 @@
|
|||||||
# Create file containing key mappings for Neovim
|
# Create file containing key mappings for Neovim
|
||||||
# Usage: ./create-nvim-keymaps.sh
|
# Usage: ./create-nvim-keymaps.sh
|
||||||
|
|
||||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
eval "$HOME/.dotfiles/scripts/shared.sh"
|
||||||
source "$HOME/.dotfiles/config/exports"
|
|
||||||
source "$HOME/.dotfiles/config/alias"
|
|
||||||
source "$HOME/.dotfiles/config/functions"
|
|
||||||
|
|
||||||
DEST="$HOME/.dotfiles/docs/nvim-keybindings.md"
|
DEST="$HOME/.dotfiles/docs/nvim-keybindings.md"
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# shellcheck source=shared.sh
|
# shellcheck source=shared.sh
|
||||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
eval "$HOME/.dotfiles/scripts/shared.sh"
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$DOTFILES" || exit
|
cd "$DOTFILES" || exit
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Install asdf
|
# Install asdf
|
||||||
|
|
||||||
source "${XDG_CONFIG_HOME}/shared"
|
source "${XDG_CONFIG_HOME}/shared.sh"
|
||||||
source "${DOTFILES}/scripts/shared.sh"
|
source "${DOTFILES}/scripts/shared.sh"
|
||||||
|
|
||||||
export ASDF_DIR="${XDG_BIN_HOME}/asdf"
|
export ASDF_DIR="${XDG_BIN_HOME}/asdf"
|
||||||
|
|||||||
@@ -2,27 +2,12 @@
|
|||||||
# Install cargo/rust packages.
|
# Install cargo/rust packages.
|
||||||
#
|
#
|
||||||
# shellcheck source=shared.sh
|
# shellcheck source=shared.sh
|
||||||
source "$HOME/.dotfiles/config/exports"
|
eval "$HOME/.dotfiles/scripts/shared.sh"
|
||||||
source "$HOME/.dotfiles/config/alias"
|
|
||||||
source "$HOME/.dotfiles/config/functions"
|
|
||||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
|
||||||
|
|
||||||
msg "Starting to install rust/cargo packages"
|
msg "Starting to install rust/cargo packages"
|
||||||
|
|
||||||
! x-have cargo && {
|
|
||||||
msg "cargo could not be found. installing cargo with rustup.rs"
|
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path -y
|
|
||||||
}
|
|
||||||
|
|
||||||
source "$CARGO_HOME/env"
|
source "$CARGO_HOME/env"
|
||||||
|
|
||||||
! x-have rustup && {
|
|
||||||
msg_err "rustup could not be found. Aborting..."
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
rustup default stable
|
|
||||||
|
|
||||||
# If we have cargo install-update, use it first
|
# If we have cargo install-update, use it first
|
||||||
x-have cargo-install-update && {
|
x-have cargo-install-update && {
|
||||||
msg_run "Updating cargo packages with cargo install-update"
|
msg_run "Updating cargo packages with cargo install-update"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# shellcheck disable=SC2231,SC2034,SC2181,SC2068
|
# shellcheck disable=SC2231,SC2034,SC2181,SC2068
|
||||||
# shellcheck source=shared.sh
|
# shellcheck source=shared.sh
|
||||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
eval "$HOME/.dotfiles/scripts/shared.sh"
|
||||||
|
|
||||||
PBB_REQUIRED_TOOLS=(git cheat)
|
PBB_REQUIRED_TOOLS=(git cheat)
|
||||||
for t in ${PBB_REQUIRED_TOOLS[@]}; do
|
for t in ${PBB_REQUIRED_TOOLS[@]}; do
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Install PHP Package Manager Composer
|
# Install PHP Package Manager Composer
|
||||||
#
|
#
|
||||||
# shellcheck source="shared.sh"
|
# shellcheck source="shared.sh"
|
||||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
eval "$HOME/.dotfiles/scripts/shared.sh"
|
||||||
|
|
||||||
! x-have "php" && msg_err "PHP Not Available, cannot install composer" && exit 0
|
! x-have "php" && msg_err "PHP Not Available, cannot install composer" && exit 0
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Install NerdFonts
|
# Install NerdFonts
|
||||||
#
|
#
|
||||||
# shellcheck source="shared.sh"
|
# shellcheck source="shared.sh"
|
||||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
eval "$HOME/.dotfiles/scripts/shared.sh"
|
||||||
|
|
||||||
GIT_REPO="https://github.com/ryanoasis/nerd-fonts.git"
|
GIT_REPO="https://github.com/ryanoasis/nerd-fonts.git"
|
||||||
TMP_PATH="$XDG_CACHE_HOME/nerd-fonts"
|
TMP_PATH="$XDG_CACHE_HOME/nerd-fonts"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# Install fzf
|
# Install fzf
|
||||||
#
|
#
|
||||||
# shellcheck source=shared.sh
|
# shellcheck source=shared.sh
|
||||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
eval "$HOME/.dotfiles/scripts/shared.sh"
|
||||||
|
|
||||||
FZF_GIT="https://github.com/junegunn/fzf.git"
|
FZF_GIT="https://github.com/junegunn/fzf.git"
|
||||||
FZF_PATH="${XDG_CONFIG_HOME}/fzf"
|
FZF_PATH="${XDG_CONFIG_HOME}/fzf"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Install GitHub CLI extensions
|
# Install GitHub CLI extensions
|
||||||
#
|
#
|
||||||
# shellcheck source="shared.sh"
|
# shellcheck source="shared.sh"
|
||||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
eval "$HOME/.dotfiles/scripts/shared.sh"
|
||||||
|
|
||||||
msg_run "Installing gh (GitHub Client) extensions"
|
msg_run "Installing gh (GitHub Client) extensions"
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
# NOTE: Experimental, wip
|
# NOTE: Experimental, wip
|
||||||
#
|
#
|
||||||
# shellcheck source=shared.sh
|
# shellcheck source=shared.sh
|
||||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
eval "$HOME/.dotfiles/scripts/shared.sh"
|
||||||
|
|
||||||
msg_run "Installing git-crypt"
|
msg_run "Installing git-crypt"
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Install Go packages
|
# Install Go packages
|
||||||
#
|
#
|
||||||
# shellcheck source=shared.sh
|
# shellcheck source=shared.sh
|
||||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
eval "$HOME/.dotfiles/scripts/shared.sh"
|
||||||
|
|
||||||
msg_run "Installing go packages"
|
msg_run "Installing go packages"
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# Install neofetch from source
|
# Install neofetch from source
|
||||||
#
|
#
|
||||||
# shellcheck source=shared.sh
|
# shellcheck source=shared.sh
|
||||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
eval "$HOME/.dotfiles/scripts/shared.sh"
|
||||||
|
|
||||||
NEOFETCH_VERSION="7.1.0"
|
NEOFETCH_VERSION="7.1.0"
|
||||||
NEOFETCH_REPO="https://github.com/dylanaraps/neofetch"
|
NEOFETCH_REPO="https://github.com/dylanaraps/neofetch"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Install npm packages globally.
|
# Install npm packages globally.
|
||||||
#
|
#
|
||||||
# shellcheck source=shared.sh
|
# shellcheck source=shared.sh
|
||||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
eval "$HOME/.dotfiles/scripts/shared.sh"
|
||||||
|
|
||||||
msg "Starting to install npm packages"
|
msg "Starting to install npm packages"
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# Install ntfy
|
# Install ntfy
|
||||||
#
|
#
|
||||||
# shellcheck source=shared.sh
|
# shellcheck source=shared.sh
|
||||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
eval "$HOME/.dotfiles/scripts/shared.sh"
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
x-have "ntfy" && msg "ntfy already installed" && exit 0
|
x-have "ntfy" && msg "ntfy already installed" && exit 0
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# Install oh-my-bash
|
# Install oh-my-bash
|
||||||
#
|
#
|
||||||
# shellcheck source=shared.sh
|
# shellcheck source=shared.sh
|
||||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
eval "$HOME/.dotfiles/scripts/shared.sh"
|
||||||
|
|
||||||
export OSH="$HOME/.local/share/oh-my-bash"
|
export OSH="$HOME/.local/share/oh-my-bash"
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# Install oh-my-posh
|
# Install oh-my-posh
|
||||||
#
|
#
|
||||||
# shellcheck source=shared.sh
|
# shellcheck source=shared.sh
|
||||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
eval "$HOME/.dotfiles/scripts/shared.sh"
|
||||||
|
|
||||||
curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/.local/bin
|
curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/.local/bin
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Install python/pip packages.
|
# Install python/pip packages.
|
||||||
#
|
#
|
||||||
# shellcheck source=shared.sh
|
# shellcheck source=shared.sh
|
||||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
eval "$HOME/.dotfiles/scripts/shared.sh"
|
||||||
|
|
||||||
msg "Starting to install pip packages"
|
msg "Starting to install pip packages"
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# Install z
|
# Install z
|
||||||
#
|
#
|
||||||
# shellcheck source=shared.sh
|
# shellcheck source=shared.sh
|
||||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
eval "$HOME/.dotfiles/scripts/shared.sh"
|
||||||
|
|
||||||
Z_GIT_PATH="https://github.com/rupa/z.git"
|
Z_GIT_PATH="https://github.com/rupa/z.git"
|
||||||
Z_BIN_PATH="$XDG_BIN_HOME/z"
|
Z_BIN_PATH="$XDG_BIN_HOME/z"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
[ "$(uname)" != "Darwin" ] && echo "Not a macOS system" && exit 0
|
[ "$(uname)" != "Darwin" ] && echo "Not a macOS system" && exit 0
|
||||||
|
|
||||||
# shellcheck source=shared.sh
|
# shellcheck source=shared.sh
|
||||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
eval "$HOME/.dotfiles/scripts/shared.sh"
|
||||||
|
|
||||||
msg_run "Starting to set macOS defaults, these require sudo privileges:"
|
msg_run "Starting to set macOS defaults, these require sudo privileges:"
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
|| [[ -n $BASH_VERSION ]] && (return 0 2> /dev/null)
|
|| [[ -n $BASH_VERSION ]] && (return 0 2> /dev/null)
|
||||||
) && sourced=1 || sourced=0
|
) && sourced=1 || sourced=0
|
||||||
|
|
||||||
source "$HOME/.dotfiles/config/shared"
|
eval "$HOME/.dotfiles/config/shared.sh"
|
||||||
|
|
||||||
DOTFILES_CURRENT_SHELL=$(ps -p $$ -oargs=)
|
DOTFILES_CURRENT_SHELL=$(ps -p $$ -oargs=)
|
||||||
export DOTFILES_CURRENT_SHELL
|
export DOTFILES_CURRENT_SHELL
|
||||||
|
|||||||
Reference in New Issue
Block a user