Skip to content

Commit 753c8b9

Browse files
committed
WIP move away from '.'
1 parent f62932f commit 753c8b9

File tree

202 files changed

+26
-513
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+26
-513
lines changed

.dotenv/cygwin/bin/apt-cyg

-474
This file was deleted.

.gitignore

-18
Original file line numberDiff line numberDiff line change
@@ -1,18 +0,0 @@
1-
# ignore everything
2-
*
3-
# except:
4-
!.bash_profile
5-
!.bashrc
6-
!.dotenv
7-
!.dotenv/*
8-
!.git
9-
!.gitconfig
10-
!.gitignore
11-
!.hushlogin
12-
!.inputrc
13-
!.mongorc.js
14-
!.screenrc
15-
!.wgetrc
16-
!bootstrap.sh
17-
!install.sh
18-
!README.md

README.md

+4-6

.bash_profile bash_profile

File renamed without changes.

.bashrc bashrc

+6-6
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ fi
5656

5757
# Source ~/.exports, ~/.functions, ~/.aliases, ~/.completion, ~/.extra, ~/.env if they exist
5858
for file in {exports,functions,aliases,completion,extra,env}; do
59-
[[ -r "${HOME}/.dotenv/.${file}" ]] && source "${HOME}/.dotenv/.${file}"
60-
[[ -r "${HOME}/.dotenv/${DOTENV}/.${file}" ]] && source "${HOME}/.dotenv/${DOTENV}/.${file}"
59+
[[ -r "${HOME}/.dotenv/${file}" ]] && source "${HOME}/.dotenv/${file}"
60+
[[ -r "${HOME}/.dotenv/${DOTENV}/${file}" ]] && source "${HOME}/.dotenv/${DOTENV}/${file}"
6161
done
6262
unset file
6363

@@ -66,13 +66,13 @@ unset file
6666

6767
# Source ~/.post-local, ~/.prompt if they exist
6868
for file in {post-local,prompt}; do
69-
[[ -r "${HOME}/.dotenv/.${file}" ]] && source "${HOME}/.dotenv/.${file}"
70-
[[ -r "${HOME}/.dotenv/${DOTENV}/.${file}" ]] && source "${HOME}/.dotenv/${DOTENV}/.${file}"
69+
[[ -r "${HOME}/.dotenv/${file}" ]] && source "${HOME}/.dotenv/${file}"
70+
[[ -r "${HOME}/.dotenv/${DOTENV}/${file}" ]] && source "${HOME}/.dotenv/${DOTENV}/${file}"
7171
done
7272
unset file
7373

7474
# include utility settings file (git PS1, solarized, mysql, etc...)
75-
[[ -r "${HOME}/.dotenv/.utility" ]] && source "${HOME}/.dotenv/.utility"
75+
[[ -r "${HOME}/.dotenv/utility" ]] && source "${HOME}/.dotenv/utility"
7676

7777
# set $EDITOR to vi(m) if not already set
7878
[[ -z $EDITOR ]] && EDITOR=$(type vim &> /dev/null && echo vim || echo vi)
@@ -106,4 +106,4 @@ shopt -s checkjobs 2> /dev/null
106106
[[ "$(pwd)" == "${HOME}" ]] && [[ -n "${START_DIR}" ]] && [[ -e "${START_DIR}" ]] && cd "${START_DIR}"
107107

108108
# exit with a success status code
109-
return 0
109+
return 0

bootstrap.sh

+7-6
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,16 @@ fi
3838
# link up files
3939
function link_file () {
4040
file="$1"
41+
target="$2"
4142
# remove the backup first
42-
[[ -e "$INSTALL_ROOT/$file.bak" ]] && rm -f "$INSTALL_ROOT/$file.bak"
43+
[[ -e "$INSTALL_ROOT/$target.bak" ]] && rm -f "$INSTALL_ROOT/$target.bak"
4344
# create the backup file
44-
[[ -e "$INSTALL_ROOT/$file" ]] && mv "$INSTALL_ROOT/$file" "$INSTALL_ROOT/$file.bak"
45+
[[ -e "$INSTALL_ROOT/$target" ]] && mv "$INSTALL_ROOT/$target" "$INSTALL_ROOT/$target.bak"
4546
# link up the file
4647
if [[ -e "$DOTFILES_ROOT/$file" ]]; then
47-
echo "linking up '$DOTFILES_ROOT/$file' => '$INSTALL_ROOT/$file'"
48-
if ! ln -sf "$DOTFILES_ROOT/$file" "$INSTALL_ROOT/$file"; then
49-
echo "Unable to symlink '$INSTALL_ROOT/$file'"
48+
echo "linking up '$DOTFILES_ROOT/$file' => '$INSTALL_ROOT/$target'"
49+
if ! ln -sf "$DOTFILES_ROOT/$file" "$INSTALL_ROOT/$target"; then
50+
echo "Unable to symlink '$INSTALL_ROOT/$target'"
5051
fi
5152
fi
5253
}
@@ -116,7 +117,7 @@ fi
116117

117118
# symlink all the files
118119
for file in $LINKED_FILES; do
119-
link_file ".$file"
120+
link_file "$file" ".$file"
120121
done
121122

122123
# done
File renamed without changes.

.dotenv/.aliases dotenv/aliases

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

.dotenv/bin/json dotenv/bin/json

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

dotenv/cygwin/bin/cygsetup

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
cmd /C start 'C:\cygwin\cygsetup.cmd'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

.dotenv/.exports dotenv/exports

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

.dotenv/other/install-ack-all.sh dotenv/other/install-ack-all.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ fi
66

77
ACK_VERSION_FULL="$(curl -s https://api.github.com/repos/petdance/ack2/tags | grep '"name": "' | grep -v "RC\|beta\|alpha" | sort -r --version-sort | head -n 1 | sed 's/.*"name": "\([0123456789._]\+\)",.*/\1/')"
88

9-
curl "http://beyondgrep.com/ack-${ACK_VERSION_FULL}-single-file" > ~/bin/ack && chmod 0755 !#:3
9+
curl "http://beyondgrep.com/ack-${ACK_VERSION_FULL}-single-file" > ~/bin/ack && chmod 0755 ~/bin/ack

.dotenv/other/install-nodejs-windows.sh dotenv/other/install-nodejs-windows.sh

+3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ fi
5757

5858
"/c/Program Files/nodejs/npm.cmd" install -g npm@latest
5959

60+
# fix path for npm command
61+
PATH="/c/Program Files/nodejs:$PATH"
62+
6063
if [[ -e "/c/Users/$USER/AppData/Roaming/npm/npm.cmd" ]]; then
6164
LOCAL_NPM_CMD="/c/Users/$USER/AppData/Roaming/npm/npm.cmd"
6265
else
File renamed without changes.

.dotenv/other/install-youtube-dl-all.sh dotenv/other/install-youtube-dl-all.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ fi
66

77
YT_DL_VERSION_FULL="$(curl -s https://api.github.com/repos/rg3/youtube-dl/tags | grep '"name": "' | grep -v "RC\|beta\|alpha" | sort -r --version-sort | head -n 1 | sed 's/.*"name": "\([0123456789._]\+\)",.*/\1/')"
88

9-
curl "https://yt-dl.org/downloads/${YT_DL_VERSION_FULL}/youtube-dl" > ~/bin/youtube-dl && chmod 0755 !#:3
9+
curl "https://yt-dl.org/downloads/${YT_DL_VERSION_FULL}/youtube-dl" > ~/bin/youtube-dl && chmod 0755 ~/bin/youtube-dl
File renamed without changes.
File renamed without changes.

.dotenv/.prompt dotenv/prompt

File renamed without changes.

.dotenv/.utility dotenv/utility

File renamed without changes.

.gitconfig gitconfig

File renamed without changes.

.hushlogin hushlogin

File renamed without changes.

.inputrc inputrc

File renamed without changes.

.mongorc.js mongorc.js

File renamed without changes.

.screenrc screenrc

File renamed without changes.

.vim/.gitignore vim/.gitignore

File renamed without changes.

.vim/.vimrc vim/.vimrc

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

.vimrc vimrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" Source the dotfiles vimrc file
22
if filereadable(expand('~/.vim/.vimrc'))
3-
source ~/.vim/.vimrc
3+
source ~/.vim/vimrc
44
endif
55

66
" source any local vimrc files

.wgetrc wgetrc

File renamed without changes.

0 commit comments

Comments
 (0)