Skip to content

Commit 7dfdb25

Browse files
make config more stable
1 parent 4cabbdd commit 7dfdb25

File tree

5 files changed

+148
-8
lines changed

5 files changed

+148
-8
lines changed

install.conf.yaml

+14-3
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,20 @@
2525
~/.gitattributes: git/gitattributes
2626
~/.config/gitcfg: git/gitcfg
2727
~/.aliases: shell/aliases
28-
~/.bashrc: shell/bashrc
28+
~/.bashrc:
29+
path: shell/bashrc
30+
force: true
2931
~/.exports: shell/exports
3032
~/.functions: shell/functions
31-
~/.profile: shell/profile
33+
~/.profile:
34+
path: shell/profile
35+
force: true
3236
~/.config/manage/python: shell/manage-python
3337
~/.config/manage/node: shell/manage-node
3438
~/.locals: locals
35-
~/.zshrc: zsh/zshrc
39+
~/.zshrc:
40+
path: zsh/zshrc
41+
force: true
3642
~/.zshenv: zsh/settings/zshenv
3743
~/.zprofile: zsh/settings/zprofile
3844
~/.zsh/functions: zsh/functions
@@ -43,15 +49,20 @@
4349
~/.config/mc/ini: tools/mc.ini
4450
/usr/local/etc/tor/torrc: tools/browser/tor/torrc
4551
~/Library/ApplicationSupport/iTerm2/DynamicProfiles/custom-profiles.json:
52+
if: '[ `uname` = Darwin ]'
4653
path: terminal/iTerm/profiles.json
4754
~/.config/starship: terminal/starship
4855
~/.tmuxp/configs: terminal/tmux/configs
4956
~/.tmuxp/aliases: terminal/tmux/aliases
5057
~/.tmux: terminal/tmux/config
5158
~/.tmux.conf: terminal/tmux/config/.tmux.conf
5259
~/.config/scripts: scripts
60+
# @todo: group rc files
5361
~/.curlrc: tools/curlrc
5462
~/.wgetrc: tools/wgetrc
63+
~/.gemrc: tools/gemrc
64+
~/.rvmrc: tools/rvmrc
65+
~/.pyenvrc: tools/pyenvrc
5566
~/.zprezto: vendor/prezto
5667
~/.bash-it: vendor/bash-it
5768

tools/gemrc

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
3+
# SEE 'gem help environment'
4+
# for configuring RubyGems
5+
# https://guides.rubygems.org/command-reference/#gem-environment
6+
7+
:sources:
8+
- https://rubygems.org
9+
:backtrace: false
10+
:bulk_threshold: 1000
11+
:benchmark: false
12+
:update_sources: true
13+
:verbose: false
14+
:concurrent_downloads: 8
15+
16+
# WARNING: Found --user-install in ~/.gemrc, please remove it, as it will break rubygems in RVM.
17+
# gem: --user-install
18+
gem: --document ri
19+
20+
# run gem [command] against local|remote|both
21+
search: --remote
22+
install: --remote --env-shebang --no-wrappers --no-document
23+
uninstall: --remote --no-wrappers --no-document
24+
25+
# show the gem's path, description, and other meta when doing gem list
26+
list: --details
27+
28+
# when (only) installing or updating, skip documentation
29+
# NOTE: applying this setting to all gem commands may break things
30+
31+
# HTTP Proxy options
32+
# http-proxy: http://example.com:80

tools/pyenvrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
#To enable shims and autocompletion add to your profile:
3+
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
4+
5+
#To use Homebrew's directories rather than ~/.pyenv add to your profile:
6+
# export PYENV_ROOT=/usr/local/opt/pyenv

tools/rvmrc

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# Example ~/.rvmrc file.
2+
#
3+
# This file shows some examples of setting defaults to your own tastes.
4+
#
5+
# If you wish to adjust the default ruby interpreter/version/patchlevel
6+
# settings they can be found in the $rvm_path/config/db file.
7+
# Beware that currently that file is overwritten on install so
8+
# back it up if you change anything.
9+
10+
# RVM path
11+
# This is where rvm installs and manages everything in by default.
12+
#
13+
# export rvm_path="$HOME/.rvm"
14+
15+
# Source path
16+
# This is where rvm extracts to for compiling & installing.
17+
#
18+
# export rvm_source_path="${rvm_path}/src"
19+
20+
# Log path
21+
# This is where rvm logs all of it's actions to
22+
# (not including the 'do' actions)
23+
#
24+
# export rvm_log_path="${rvm_path}/log"
25+
26+
# Bin path
27+
# This is where rvm places all of it's executable/wrapper scripts.
28+
#
29+
# export rvm_bin_path="${rvm_path}/bin"
30+
31+
# Gem path
32+
# This is where rvm installs all gems to for each ruby
33+
# interpreter/version%gemset
34+
#
35+
# export rvm_gems_path="$rvm_path/gems"
36+
37+
# Gem options
38+
# These options are passed to the 'gem' command in a RVM environment.
39+
#
40+
# export rvm_gem_options="--no-rdoc --no-ri"
41+
42+
# Temp path
43+
# This is where rvm stores all of its temporary files.
44+
#
45+
# export rvm_tmp_path="${rvm_tmp_path:-"$rvm_path/tmp"}"
46+
47+
# Install on use
48+
# Install rubies when used if are not installed.
49+
#
50+
export rvm_install_on_use_flag=1
51+
52+
# Gemset create on use
53+
# This will create a gemset when the gemset is used if it does not exist
54+
#
55+
export rvm_gemset_create_on_use_flag=1
56+
57+
# Make flags
58+
# I have 8 cpu's so I might use 7 make threads:
59+
#
60+
export rvm_make_flags="-j7"
61+
62+
# Source a .rvmrc file in a directory after changing to it, if it exists.
63+
# To disable this feature, set in root/home .rvmrc file:
64+
#
65+
# export rvm_project_rvmrc=0
66+
#
67+
# Or don't even bother sourcing rvm, it *is* optional. Always has been, you can
68+
# instead add $rvm_path/bin to your PATH and use --default to switch...
69+
70+
# Automatically trust project .rvmrc files
71+
#
72+
# export rvm_trust_rvmrcs_flag=1
73+
74+
# Always trust an rvmrc, even if it's contents change.
75+
# CAUTION: Can be dangerous / security risk. Only use this feature if you know
76+
# what you are doing / accept the implications :)
77+
#
78+
# export rvm_always_trust_rvmrc_flag
79+
80+
# Specify RBXOPT enviroment settings that should always be set when calling
81+
# Rubinius scripts. For example, to always run the agent when running from
82+
# an Rubinius environment, set the value to '-Xagent'
83+
#
84+
# export rvm_rbx_opt
85+
86+
# Disable automatic system configuration of RVM via /etc/profile.d/rvm.sh:
87+
#
88+
# export rvm_etc_profile_flag=0
89+
90+
# Add configure flags for builds
91+
#
92+
# export rvm_configure_flags="--with-openssl-dir=$rvm_path/usr --with-readline-dir=$rvm_path/usr"

zsh/settings/zprofile

+4-5
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,13 @@ typeset -gU cdpath fpath mailpath path
2929

3030
export PYENV_ROOT="$HOME/.pyenv"
3131
export PATH="$PYENV_ROOT/bin:$PATH"
32-
export PYTHON_PATH="$(python3 -m site --user-base)/bin:$(python -m site --user-site)/bin:$PYTHONPATH"
33-
export PATH="$(pyenv root)/shims:$(command -v python3):$(command -v python):$PYTHON_PATH:$PATH"
32+
# todo: validate this
33+
# export PYTHON_PATH="$(python3 -m site --user-base)/bin:$(python -m site --user-site)/bin:$PYTHONPATH"
34+
# export PATH="$(pyenv root)/shims:$(command -v python3):$(command -v python):$PYTHON_PATH:$PATH"
3435
# Set the list of directories that Zsh searches for programs.
3536

3637
path=(
37-
$HOME/bin
38-
~/dotfiles/bin
39-
/usr/local/{bin,sbin}
4038
$path
39+
/usr/local/{bin,sbin}
4140
~/.config/scripts
4241
)

0 commit comments

Comments
 (0)