mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-28 06:41:08 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d598aade16 | |||
| 1b49de9645 | |||
| d56338e233 | |||
| ef6ccb92c0 |
@@ -18,6 +18,9 @@ export XDG_RUNTIME_DIR="$HOME/.local/run"
|
||||
# Paths
|
||||
export PATH="$XDG_BIN_HOME:$DOTFILES/local/bin:$HOME/.local/go/bin:$XDG_DATA_HOME/cargo/bin:$PATH"
|
||||
|
||||
source "$DOTFILES/config/exports"
|
||||
source "$DOTFILES/config/functions"
|
||||
source "$DOTFILES/config/alias"
|
||||
x-load-configs
|
||||
|
||||
# shellcheck source=../config/fzf/fzf.bash
|
||||
@@ -32,4 +35,4 @@ x-have rbenv && {
|
||||
}
|
||||
|
||||
eval "$(starship init bash)"
|
||||
source $DOTFILES/config/alias
|
||||
source "$DOTFILES/config/alias"
|
||||
|
||||
@@ -101,4 +101,4 @@ TMUX_WINDOW_NAME_PLUGIN="$DOTFILES/config/tmux/plugins/tmux-window-name/scripts/
|
||||
}
|
||||
|
||||
eval "$(starship init zsh)"
|
||||
source $DOTFILES/config/alias
|
||||
source "$DOTFILES/config/alias"
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
# Antigen configuration
|
||||
# https://github.com/zsh-users/antigen/wiki/Configuration
|
||||
export ADOTDIR="$XDG_DATA_HOME/antigen"
|
||||
export ANTIGEN_CACHE="$XDG_CACHE_HOME/antigen"
|
||||
export ANTIGEN_SYSTEM_RECEIPT_F=".local/share/antigen/antigen_system_lastupdate"
|
||||
export ANTIGEN_PLUGIN_RECEIPT_F=".local/share/antigen/antigen_plugin_lastupdate"
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# shell functions
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
@@ -2,17 +2,27 @@
|
||||
# Install cargo/rust packages.
|
||||
#
|
||||
# shellcheck source=shared.sh
|
||||
source "$HOME/.dotfiles/config/exports"
|
||||
source "$HOME/.dotfiles/config/alias"
|
||||
source "$HOME/.dotfiles/config/functions"
|
||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
||||
|
||||
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
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path -y
|
||||
}
|
||||
|
||||
source "$CARGO_HOME/env"
|
||||
|
||||
! x-have rustup && {
|
||||
msg_err "rustup could not be found. Aborting..."
|
||||
exit 1
|
||||
}
|
||||
|
||||
rustup default system
|
||||
|
||||
packages=(
|
||||
# starship.rs
|
||||
"starship"
|
||||
|
||||
Reference in New Issue
Block a user