Subject | Hash | Author | Date (UTC) |
---|---|---|---|
copy scripts | 2010244fc51915c8700b370a04aa9ea1af6de30d | mucbuc | 2020-07-07 09:23:09 |
dont add changes from lint | b0a615143517985a99f929b1f313751cc9369bb6 | mucbuc | 2020-07-05 04:43:28 |
pre-commit.js | a4ab48e75e496071f24a910524f8ec788c0f5309 | mucbuc | 2020-07-05 04:28:05 |
install husky | 97104fc9ba4dd4164bf29eaf7505f10d61ace7d7 | mucbuc | 2020-07-05 04:21:51 |
print commands | 054c9efa2ae06a16f05a080b111cb3b1b27f3287 | mucbuc | 2020-07-05 04:17:28 |
use green instead of yellow | ce503ff8ef3dba2761179ccb56e629542b3e27cd | mucbuc | 2020-07-04 20:31:01 |
color output | 3d198cf7d4e657ab8ba8d798174116b8336ef258 | mucbuc | 2020-07-04 20:17:24 |
explict mode | ffc586960df26c70adba18de1ed30616e3057edf | mucbuc | 2020-07-04 18:11:36 |
test this | 27b7953902d0e3d7a6c3ed73c911690a5e814954 | mucbuc | 2020-07-04 18:09:59 |
moreshit | 592c64abc5f14a08c094be44f7d19ae6264e36b8 | mucbuc | 2020-07-04 18:08:56 |
fix merge conflict | ab4ee2b9ebbaa6379bdb83664efae5d45c428e5d | mucbuc | 2020-07-04 18:01:40 |
cleanup | e363a09bd4cf01d773d3725db73f3465c89bb4e7 | mucbuc | 2020-07-04 17:58:30 |
wtf | f0af08ef01ec498b6d8be8c6ce5704aa616338d4 | mucbuc | 2020-07-04 17:56:30 |
tewst | 01ae9b15d3a0af828ba5d43c9c76247a7e94d06c | mucbuc | 2020-07-04 17:53:45 |
anoter test | fc42db84f208b381ccff11305bb8d81aafe6c2e7 | mucbuc | 2020-07-04 17:10:17 |
try it | abd7fa98a8b10d1ab31c727b4e5cda32779acd43 | mucbuc | 2020-07-04 17:06:34 |
test | 9f7ddc555012d5a566580179263acd1803935bee | mucbuc | 2020-07-04 16:20:14 |
fix | 95efd43ca494e81d3f61c0e17d05935f9a89e85a | mucbuc | 2020-07-04 16:19:20 |
fix | b7e34312fd89e80bfcabd677fac6a84b03b9db11 | mucbuc | 2020-07-04 16:18:37 |
trim | fe82d46c140168484164e7e0ca8bbde2679af57e | mucbuc | 2020-07-04 16:17:41 |
File | Lines added | Lines deleted |
---|---|---|
editorconfig | 6 | 0 |
gitconfig | 13 | 0 |
install.js | 37 | 0 |
marks_bashrc | 13 | 0 |
vimrc | 9 | 0 |
File editorconfig added (mode: 100644) (index 0000000..dddb23d) | |||
1 | root = true | ||
2 | |||
3 | # Unix-style newlines with a newline ending every file | ||
4 | [*] | ||
5 | end_of_line = lf | ||
6 | insert_final_newline = true |
File gitconfig added (mode: 100644) (index 0000000..0208fae) | |||
1 | [user] | ||
2 | email = mbusenitz@gmail.com | ||
3 | name = mucbuc | ||
4 | [rerere] | ||
5 | enabled = 1 | ||
6 | [fetch] | ||
7 | prune = 1 | ||
8 | [help] | ||
9 | autocorrect = 1 | ||
10 | [alias] | ||
11 | ssb = status -sb | ||
12 | ls = ls-files | ||
13 | dw = diff --word-diff |
File install.js added (mode: 100755) (index 0000000..043249e) | |||
1 | #!/usr/bin/env node | ||
2 | |||
3 | const fs = require("fs"), | ||
4 | homedir = require("os").homedir(), | ||
5 | path = require("path"), | ||
6 | bashPath = path.join(homedir, ".bashrc"), | ||
7 | scriptName = "marks_bashrc", | ||
8 | scriptPath = path.join(__dirname, scriptName), | ||
9 | { COPYFILE_EXCL } = fs.constants; | ||
10 | |||
11 | let bashRC = fs.readFileSync(bashPath, "utf8"); | ||
12 | |||
13 | if (!bashRC.match(scriptName)) { | ||
14 | console.log(`installing ${scriptPath}`); | ||
15 | bashRC += ` | ||
16 | if [ -f ${scriptPath} ]; then | ||
17 | . ${scriptPath} | ||
18 | fi | ||
19 | `; | ||
20 | fs.writeFileSync(bashPath, bashRC); | ||
21 | } else { | ||
22 | console.log(`${scriptPath} already installed`); | ||
23 | } | ||
24 | |||
25 | copyDotFiles(); | ||
26 | |||
27 | function copyDotFiles() { | ||
28 | const files = ["gitconfig", "vimrc", "editorconig"]; | ||
29 | for (let file of files) { | ||
30 | const src = path.join(__dirname, file), | ||
31 | dst = path.join(homedir, `.${file}`); | ||
32 | fs.copyFile(src, dst, COPYFILE_EXCL, (err) => { | ||
33 | if (err) console.log(`${src} already installed`); | ||
34 | else console.log(` ${src} -> ${dst}`); | ||
35 | }); | ||
36 | } | ||
37 | } |
File marks_bashrc added (mode: 100644) (index 0000000..f77cfd5) | |||
1 | echo "marks_bashrc" | ||
2 | |||
3 | alias ll='ls -alh' | ||
4 | alias ls='ls -lh' | ||
5 | alias sudo='sudo ' | ||
6 | |||
7 | IP_WEBSITE=52.26.238.75 | ||
8 | IP_WORKDOG=54.184.199.41 | ||
9 | |||
10 | if [ -f marks_localrc ]; then | ||
11 | . marks_localrc | ||
12 | fi | ||
13 |
File vimrc added (mode: 100644) (index 0000000..c3caa54) | |||
1 | call plug#begin('~/.vim/plugged') | ||
2 | |||
3 | Plug 'airblade/vim-gitgutter' | ||
4 | Plug 'editorconfig/editorconfig-vim' | ||
5 | Plug 'junegunn/fzf' | ||
6 | Plug 'itchyny/lightline.vim' | ||
7 | Plug 'tpope/vim-surround' | ||
8 | |||
9 | call plug#end() |