@sebastienrousseau/dotfiles 0.2.457 → 0.2.458

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/README.md +124 -90
  2. package/dist/Makefile +7 -7
  3. package/dist/bin/constants.d.ts +4 -2
  4. package/dist/bin/constants.d.ts.map +1 -1
  5. package/dist/bin/constants.js +1 -1
  6. package/dist/bin/constants.js.map +1 -1
  7. package/dist/bin/dotfiles.js +1 -2
  8. package/dist/bin/dotfiles.js.map +1 -1
  9. package/dist/bin/index.js +0 -0
  10. package/dist/filesizes.txt +240 -230
  11. package/dist/{shell → lib}/README.md +0 -0
  12. package/dist/lib/aliases/default/default.aliases.sh +183 -0
  13. package/dist/{shell → lib}/aliases/gcloud/gcloud.aliases.sh +1 -1
  14. package/dist/lib/aliases/git/git.aliases.sh +569 -0
  15. package/dist/{shell → lib}/aliases/heroku/heroku.aliases.sh +1 -1
  16. package/dist/{shell → lib}/aliases/jekyll/jekyll.aliases.sh +1 -1
  17. package/dist/{shell → lib}/aliases/pnpm/pnpm.aliases.sh +1 -1
  18. package/dist/{shell → lib}/aliases/subversion/subversion.aliases.sh +1 -1
  19. package/dist/{shell → lib}/aliases/tmux/tmux.aliases.sh +1 -1
  20. package/dist/{shell → lib}/aliases.sh +2 -2
  21. package/dist/{shell → lib}/configurations/README.md +0 -0
  22. package/dist/{shell → lib}/configurations/bash/bashrc +3 -3
  23. package/dist/{shell → lib}/configurations/curl/cacert.pem +0 -0
  24. package/dist/{shell → lib}/configurations/curl/curlrc +1 -1
  25. package/dist/{shell → lib}/configurations/default/color.sh +1 -1
  26. package/dist/{shell → lib}/configurations/default/editor.sh +1 -1
  27. package/dist/{shell → lib}/configurations/default/prompt.sh +1 -1
  28. package/dist/{shell/configurations/input → lib/configurations/inputrc}/inputrc +1 -1
  29. package/dist/{shell → lib}/configurations/jshint/jshintrc +0 -0
  30. package/dist/{shell → lib}/configurations/profile/profile +1 -1
  31. package/dist/lib/configurations/tmux/default +17 -0
  32. package/dist/lib/configurations/tmux/display +25 -0
  33. package/dist/lib/configurations/tmux/linux +17 -0
  34. package/dist/lib/configurations/tmux/navigation +29 -0
  35. package/dist/lib/configurations/tmux/panes +9 -0
  36. package/dist/lib/configurations/tmux/theme +28 -0
  37. package/dist/lib/configurations/tmux/tmux +20 -0
  38. package/dist/lib/configurations/tmux/vi +5 -0
  39. package/dist/{shell → lib}/configurations/vim/vimrc +1 -1
  40. package/dist/{shell → lib}/configurations/wget/wgetrc +1 -1
  41. package/dist/{shell → lib}/configurations/zsh/zshrc +3 -3
  42. package/dist/{shell → lib}/configurations.sh +2 -2
  43. package/dist/{shell → lib}/exit.sh +1 -1
  44. package/dist/{shell → lib}/functions/README.md +0 -0
  45. package/dist/{shell → lib}/functions/cdls.sh +1 -1
  46. package/dist/{shell → lib}/functions/curlheader.sh +1 -1
  47. package/dist/{shell → lib}/functions/curltime.sh +1 -1
  48. package/dist/{shell → lib}/functions/encode64.sh +1 -1
  49. package/dist/{shell → lib}/functions/environment.sh +1 -1
  50. package/dist/{shell → lib}/functions/extract.sh +1 -1
  51. package/dist/{shell → lib}/functions/filehead.sh +0 -0
  52. package/dist/{shell → lib}/functions/genpwd.sh +1 -1
  53. package/dist/{shell → lib}/functions/goto.sh +1 -1
  54. package/dist/{shell → lib}/functions/hidehiddenfiles.sh +1 -1
  55. package/dist/{shell → lib}/functions/hostinfo.sh +1 -1
  56. package/dist/{shell → lib}/functions/hstats.sh +1 -1
  57. package/dist/{shell → lib}/functions/httpdebug.sh +1 -1
  58. package/dist/{shell → lib}/functions/keygen.sh +1 -1
  59. package/dist/{shell → lib}/functions/last.sh +1 -1
  60. package/dist/{shell → lib}/functions/logout.sh +1 -1
  61. package/dist/{shell → lib}/functions/lowercase.sh +1 -1
  62. package/dist/{shell → lib}/functions/macos.sh +1 -1
  63. package/dist/{shell → lib}/functions/matrix.sh +1 -1
  64. package/dist/{shell → lib}/functions/mcd.sh +1 -1
  65. package/dist/{shell → lib}/functions/mount_read_only.sh +1 -1
  66. package/dist/{shell → lib}/functions/myproc.sh +1 -1
  67. package/dist/{shell → lib}/functions/prependpath.sh +1 -1
  68. package/dist/{shell → lib}/functions/ql.sh +1 -1
  69. package/dist/{shell → lib}/functions/rd.sh +1 -1
  70. package/dist/{shell → lib}/functions/remove_disk.sh +1 -1
  71. package/dist/{shell → lib}/functions/ren.sh +1 -1
  72. package/dist/{shell → lib}/functions/showhiddenfiles.sh +1 -1
  73. package/dist/{shell → lib}/functions/size.sh +1 -1
  74. package/dist/{shell → lib}/functions/stopwatch.sh +1 -1
  75. package/dist/{shell → lib}/functions/uppercase.sh +1 -1
  76. package/dist/{shell → lib}/functions/view-source.sh +1 -1
  77. package/dist/{shell → lib}/functions/vscode.sh +1 -1
  78. package/dist/{shell → lib}/functions/whoisport.sh +1 -1
  79. package/dist/{shell → lib}/functions/zipf.sh +1 -1
  80. package/dist/{shell → lib}/functions.sh +2 -2
  81. package/dist/{shell → lib}/history.sh +1 -1
  82. package/dist/{shell → lib}/paths/ant/ant.paths.sh +1 -1
  83. package/dist/{shell → lib}/paths/default/default.paths.sh +1 -1
  84. package/dist/{shell → lib}/paths/homebrew/homebrew.paths.sh +1 -1
  85. package/dist/{shell → lib}/paths/java/java.paths.sh +1 -1
  86. package/dist/{shell → lib}/paths/maven/maven.paths.sh +1 -1
  87. package/dist/{shell → lib}/paths/node/node.paths.sh +1 -1
  88. package/dist/{shell → lib}/paths/nvm/nvm.paths.sh +1 -1
  89. package/dist/{shell → lib}/paths/pnpm/pnpm.paths.sh +1 -1
  90. package/dist/{shell → lib}/paths/python/python.paths.sh +1 -1
  91. package/dist/{shell → lib}/paths/ruby/ruby.paths.sh +1 -1
  92. package/dist/{shell → lib}/paths/tmux/tmux.paths.sh +2 -2
  93. package/dist/{shell → lib}/paths.sh +2 -2
  94. package/package.json +28 -28
  95. package/dist/bin/compile.sh +0 -16
  96. package/dist/bin/copy.sh +0 -21
  97. package/dist/bin/dotfiles.sh +0 -185
  98. package/dist/shell/aliases/default/default.aliases.sh +0 -199
  99. package/dist/shell/configurations/tmux/tmux +0 -95
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.458) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
@@ -11,5 +11,5 @@ fi
11
11
 
12
12
  if [[ -z "${TMUX}" ]] && [[ ${UID} != 0 ]]; then
13
13
  tmux kill-session -t 2>/dev/null
14
- tmux new-session -t
14
+ tmux
15
15
  fi
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.458) - https://dotfiles.io
3
3
  # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
4
  # License: MIT
5
5
 
6
6
  ## 🅿🅰🆃🅷🆂
7
7
 
8
8
  # Load custom executable paths.
9
- for file in "${HOME}"/.dotfiles/shell/paths/[!.#]*/*.sh; do
9
+ for file in "${HOME}"/.dotfiles/lib/paths/[!.#]*/*.sh; do
10
10
  # shellcheck source=/dev/null
11
11
  . "${file}"
12
12
  done
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "assets": [
3
- "index.js"
3
+ "./dist/bin/index.js"
4
4
  ],
5
5
  "author": "Sebastien Rousseau (https://github.com/sebastienrousseau)",
6
6
  "autoupdate": {
@@ -16,7 +16,7 @@
16
16
  "target": "git://github.com/sebastienrousseau/dotfiles.git"
17
17
  },
18
18
  "bin": {
19
- "dotfiles": "./index.js"
19
+ "dotfiles": "./dist/bin/index.js"
20
20
  },
21
21
  "bugs": {
22
22
  "url": "https://github.com/sebastienrousseau/dotfiles/issues"
@@ -26,22 +26,22 @@
26
26
  ],
27
27
  "description": "Dotfiles - A set of macOS / Linux and Windows configuration files - Simply designed to fit your shell life.",
28
28
  "devDependencies": {
29
- "@types/node": "^16.11.64",
29
+ "@types/node": "^16.11.65",
30
30
  "@types/shelljs": "0.8.11",
31
+ "compressing": "^1.6.2",
31
32
  "filesizes": "^0.1.2",
32
33
  "fs-extra": "10.1.0",
33
34
  "jsmin": "^1.0.1",
34
- "pnpm": "^7.13.3",
35
+ "pnpm": "^7.13.4",
35
36
  "rimraf": "^3.0.2",
36
37
  "shelljs": "^0.8.5",
37
38
  "shelljs-nodecli": "^0.1.1",
38
39
  "tsd": "0.24.1",
39
- "typescript": "^4.8.4",
40
- "compressing": "^1.6.2"
40
+ "typescript": "^4.8.4"
41
41
  },
42
42
  "directories": {
43
43
  "bin": "./bin",
44
- "shell": "./shell"
44
+ "shell": "./lib"
45
45
  },
46
46
  "engines": {
47
47
  "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
@@ -63,7 +63,7 @@
63
63
  "license": "MIT",
64
64
  "license_URI": "http://www.opensource.org/licenses/mit-license.php",
65
65
  "lockfileVersion": 1,
66
- "main": "./bin/index.js",
66
+ "main": "./dist/bin/index.js",
67
67
  "name": "@sebastienrousseau/dotfiles",
68
68
  "publishConfig": {
69
69
  "access": "public",
@@ -73,8 +73,8 @@
73
73
  "type": "git",
74
74
  "url": "git@github.com:sebastienrousseau/dotfiles.git"
75
75
  },
76
- "types": "./dist/index.d.ts",
77
- "version": "0.2.457",
76
+ "types": "./dist/bin/index.d.ts",
77
+ "version": "0.2.458",
78
78
  "scripts": {
79
79
  "assemble": "pnpm run backup && pnpm run directory && pnpm run copy",
80
80
  "backup": "pnpm run bk:dir && pnpm run bk:bsh && pnpm run bk:zsh",
@@ -82,29 +82,29 @@
82
82
  "bk:dir": "if [ -d $HOME/.dotfiles ]; then mv -f $HOME/.dotfiles $HOME/dotfiles_backup; fi ",
83
83
  "bk:zsh": "if [ -z $HOME/.zshrc ]; then mv -f $HOME/.zshrc $HOME/.dotfiles_backup/zshrc.bk; fi ",
84
84
  "build": "pnpm run clean && tsc --build tsconfig.json && pnpm run compile",
85
- "changeset": "changeset",
86
- "cl:tmp": "rimraf \"./dist/shell/**/*.tmp\"",
85
+ "cl:tmp": "rimraf \"./dist/lib/**/*.tmp\"",
87
86
  "clean": "rimraf \"dist/\" && tsc --build --clean",
88
- "compile": "chmod 755 \"./bin/compile.sh\" && ./bin/compile.sh",
89
- "copy": "chmod 755 \"./bin/copy.sh\" && ./bin/copy.sh",
90
- "cp:bash": "cp -vf ./shell/configurations/bash/bashrc $HOME/.bashrc",
91
- "cp:bin": "cp -vf -R ./bin/ ./dist/bin",
92
- "cp:cert": "cp -vf ./shell/configurations/curl/cacert.pem $HOME/cacert.pem",
93
- "cp:curl": "cp -vf ./shell/configurations/curl/curlrc $HOME/.curlrc",
94
- "cp:dirs": "cp -vf -R ./shell $HOME/.dotfiles/shell/",
95
- "cp:inpt": "cp -vf ./shell/configurations/inputrc/inputrc $HOME/.inputrc",
96
- "cp:jsht": "cp -vf ./shell/configurations/jshint/jshintrc $HOME/.jshintrc",
87
+ "compile": "chmod 755 \"./scripts/compile.sh\" && ./scripts/compile.sh",
88
+ "copy": "chmod 755 \"./scripts/copy.sh\" && ./scripts/copy.sh",
89
+ "cp:bash": "cp -vf ./lib/configurations/bash/bashrc $HOME/.bashrc",
90
+ "cp:bin": "cp -vf -R ./bin ./dist/",
91
+ "cp:cert": "cp -vf ./lib/configurations/curl/cacert.pem $HOME/cacert.pem",
92
+ "cp:curl": "cp -vf ./lib/configurations/curl/curlrc $HOME/.curlrc",
93
+ "cp:dirs": "cp -vf -R ./lib $HOME/.dotfiles/lib/",
94
+ "cp:inpt": "cp -vf ./lib/configurations/inputrc/inputrc $HOME/.inputrc",
95
+ "cp:jsht": "cp -vf ./lib/configurations/jshint/jshintrc $HOME/.jshintrc",
97
96
  "cp:make": "cp -vf ./Makefile ./dist",
98
- "cp:prof": "cp -vf ./shell/configurations/profile/profile $HOME/.profile",
99
- "cp:shell": "cp -vR ./shell/ ./dist/shell/",
100
- "cp:tmux": "cp -vf ./shell/configurations/tmux/tmux $HOME/.tmux.conf",
101
- "cp:vimr": "cp -vf ./shell/configurations/vim/vimrc $HOME/.vimrc",
102
- "cp:wget": "cp -vf ./shell/configurations/wget/wgetrc $HOME/.wgetrc",
103
- "cp:zshr": "cp -vf ./shell/configurations/zsh/zshrc $HOME/.zshrc",
97
+ "cp:prof": "cp -vf ./lib/configurations/profile/profile $HOME/.profile",
98
+ "cp:lib": "cp -vR ./lib ./dist/",
99
+ "cp:tmux": "cp -vf ./lib/configurations/tmux/tmux.conf $HOME/.tmux.conf && cp -vR ./lib/configurations/tmux/ $HOME/.dotfiles/lib/configurations/tmux/",
100
+ "cp:vimr": "cp -vf ./lib/configurations/vim/vimrc $HOME/.vimrc",
101
+ "cp:wget": "cp -vf ./lib/configurations/wget/wgetrc $HOME/.wgetrc",
102
+ "cp:zshr": "cp -vf ./lib/configurations/zsh/zshrc $HOME/.zshrc",
104
103
  "directory": "mkdir $HOME/.dotfiles",
105
104
  "filesizes": "filesizes ./dist/ > ./dist/filesizes.txt",
106
- "help": "chmod 755 \"./bin/dotfiles.sh\" && ./bin/dotfiles.sh",
105
+ "help": "chmod 755 \"./scripts/dotfiles.sh\" && ./scripts/dotfiles.sh",
107
106
  "minify": "jsmin ./bin/backup.js > dist/bin/backup.js && jsmin ./bin/constants.js > dist/bin/constants.js && jsmin ./bin/copy.js > dist/bin/copy.js && jsmin ./bin/dotfiles.js > dist/bin/dotfiles.js && jsmin ./bin/download.js > dist/bin/download.js && jsmin ./bin/index.js > dist/bin/index.js && jsmin ./bin/transfer.js > dist/bin/transfer.js && jsmin ./bin/unpack.js > dist/bin/unpack.js",
107
+ "pack": "pnpm pack",
108
108
  "start": "node ./bin/index.js",
109
109
  "test": "echo \"Error: no test specified\" && exit 1"
110
110
  }
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- ## 🅲🅾🅼🅿🅸🅻🅴 🅳🅾🆃🅵🅸🅻🅴🆂 - Compile dotfiles.
7
-
8
- compile() {
9
- pnpm run cp:shell &&
10
- pnpm run cl:tmp &&
11
- pnpm run cp:bin &&
12
- pnpm run cp:make &&
13
- pnpm run minify &&
14
- pnpm run filesizes
15
- }
16
- compile
package/dist/bin/copy.sh DELETED
@@ -1,21 +0,0 @@
1
- #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- ## 🅲🅾🅿🆈 🅳🅾🆃🅵🅸🅻🅴🆂 - Copy dotfiles.
7
-
8
- copy() {
9
- pnpm run cp:bash &&
10
- pnpm run cp:cert &&
11
- pnpm run cp:curl &&
12
- pnpm run cp:dirs &&
13
- pnpm run cp:inpt &&
14
- pnpm run cp:jsht &&
15
- pnpm run cp:prof &&
16
- pnpm run cp:tmux &&
17
- pnpm run cp:vimr &&
18
- pnpm run cp:wget &&
19
- pnpm run cp:zshr
20
- }
21
- copy
@@ -1,185 +0,0 @@
1
- #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- ## 🆅🅰🆁🅸🅰🅱🅻🅴🆂 - Set variables.
7
- BACKUPDIR="${HOME}/dotfiles_backup" # Backup directory.
8
- BIGreen='\033[1;92m' # Green color.
9
- BIRed='\033[1;91m' # Red color.
10
- DOTFILESDIR="${HOME}/.dotfiles" # Location of dotfiles.
11
- DOWNLOADDIR="${HOME}/Downloads" # Download directory.
12
- NC='\033[0m' # Reset/No Color
13
- VERSION="0.2.457" # Dotfiles Version number.
14
-
15
- ## 🅱🅰🅲🅺🆄🅿 - Backup existing files.
16
- backup() {
17
- echo "${BIRed}❭${NC} Creating a backup directory '${BIGreen}${BACKUPDIR}${NC}'."
18
- mkdir -p "${BACKUPDIR}"
19
-
20
- echo "${BIRed}❭${NC} Backing up existing dotfiles in '${BIGreen}${BACKUPDIR}${NC}'..."
21
- # File list (use trailing slash for directories)
22
- FILES="
23
- .alias
24
- .bash_aliases
25
- .bash_profile
26
- .bash_prompt
27
- .bashrc
28
- .curlrc
29
- .dir_colors
30
- .exports
31
- .functions
32
- .gitattributes
33
- .gitconfig
34
- .gitignore
35
- .gitmessage
36
- .inputrc
37
- .npmrc
38
- .path
39
- .profile
40
- .tmux.conf
41
- .vimrc
42
- .wgetrc
43
- .yarnrc
44
- .zshenv
45
- .zshrc
46
- cacert.pem
47
- "
48
-
49
- for file in ${FILES}; do
50
- # shellcheck disable=SC2292
51
- if [ -e "${HOME}/${file}" ]; then
52
- echo "${BIRed}❭${NC} Backing up ${BIGreen}${file}${NC}..."
53
- cp -f "${HOME}"/"${file}" "${BACKUPDIR}"/"${file}"
54
- fi
55
- done
56
- }
57
-
58
- ## 🅲🅻🅴🅰🅽 - Clean up.
59
- clean() {
60
- echo "${BIRed}❭${NC} Cleaning up..."
61
- rm -rfi "${DOTFILESDIR}"
62
- rm -rfi "${BACKUPDIR}"
63
- rm -rfi "${DOWNLOADDIR}"/dotfiles*
64
- }
65
-
66
- ## 🅳🅾🆆🅽🅻🅾🅰🅳 - Download the dotfiles on your system.
67
- download() {
68
- echo "${BIRed}❭${NC} Downloading ${BIGreen}Dotfiles v${VERSION}${NC} on your system."
69
- # wget https://github.com/sebastienrousseau/dotfiles/archive/refs/tags/v"${VERSION}".zip -N -O "${DOWNLOADDIR}/v${VERSION}.zip"
70
- curl https://github.com/sebastienrousseau/dotfiles/archive/refs/tags/v"${VERSION}".zip -o "${DOWNLOADDIR}"/v"${VERSION}".zip
71
- }
72
-
73
- ## 🆄🅽🅿🅰🅲🅺 - Unpack the dotfiles on your system.
74
- unpack() {
75
- echo "${BIRed}❭${NC} Unpacking ${BIGreen}Dotfiles v${VERSION}${NC}."
76
- unzip -qq -u "${DOWNLOADDIR}"/v"${VERSION}".zip -d "${DOWNLOADDIR}"
77
- mv "${DOWNLOADDIR}/dotfiles-${VERSION}/shell/" "${DOTFILESDIR}"
78
- rm "${DOWNLOADDIR}/v${VERSION}.zip"
79
- }
80
-
81
- ## 🅰🆂🆂🅴🅼🅱🅻🅴 - Assemble the dotfiles on your system.
82
- assemble() {
83
- echo "${BIRed}❭${NC} Preparing the dotfiles on your system."
84
- backup &&
85
- download &&
86
- unpack &&
87
- copy
88
- }
89
-
90
- ## 🅲🅾🅿🆈 - Copy the dotfiles on your system.
91
- copy() {
92
- # echo "${BIRed}❭${NC} Copying the Dotfiles on your system."
93
- # cd "${DOTFILESDIR}" &&
94
-
95
- echo "${BIRed}❭${NC} Copying the Dotfiles on your system."
96
- echo "${BIRed}❭${NC} Copying ${BIGreen}.bashrc${NC}"
97
- cp -f "${DOTFILESDIR}"/shell/configurations/bash/bashrc "${HOME}"/.bashrc &&
98
- echo "${BIRed}❭${NC} Copying ${BIGreen}cacert.pem${NC}"
99
- cp -f "${DOTFILESDIR}"/shell/configurations/curl/cacert.pem "${HOME}"/cacert.pem &&
100
- echo "${BIRed}❭${NC} Copying ${BIGreen}.curlrc${NC}"
101
- cp -f "${DOTFILESDIR}"/shell/configurations/curl/curlrc "${HOME}"/.curlrc &&
102
- echo "${BIRed}❭${NC} Copying ${BIGreen}.jshintrc${NC}"
103
- cp -f "${DOTFILESDIR}"/shell/configurations/jshint/jshintrc "${HOME}"/.jshintrc &&
104
- echo "${BIRed}❭${NC} Copying ${BIGreen}.profile${NC}"
105
- cp -f "${DOTFILESDIR}"/shell/configurations/profile/profile "${HOME}"/.profile &&
106
- echo "${BIRed}❭${NC} Copying ${BIGreen}.tmux.conf${NC}"
107
- cp -f "${DOTFILESDIR}"/shell/configurations/tmux/tmux "${HOME}"/.tmux.conf &&
108
- echo "${BIRed}❭${NC} Copying ${BIGreen}.vimrc${NC}"
109
- cp -f "${DOTFILESDIR}"/shell/configurations/vim/vimrc "${HOME}"/.vimrc &&
110
- echo "${BIRed}❭${NC} Copying ${BIGreen}.wgetrc${NC}"
111
- cp -f "${DOTFILESDIR}"/shell/configurations/wget/wgetrc "${HOME}"/.wgetrc &&
112
- echo "${BIRed}❭${NC} Copying ${BIGreen}.zshrc${NC}"
113
- cp -f "${DOTFILESDIR}"/shell/configurations/zsh/zshrc "${HOME}"/.zshrc
114
-
115
- echo "${BIRed}❭${NC} Cleaning up installation files."
116
- rm -Rf "${DOTFILESDIR}"/shell/configurations/bash &&
117
- rm -Rf "${DOTFILESDIR}"/shell/configurations/curl &&
118
- rm -Rf "${DOTFILESDIR}"/shell/configurations/jshint &&
119
- rm -Rf "${DOTFILESDIR}"/shell/configurations/profile &&
120
- rm -Rf "${DOTFILESDIR}"/shell/configurations/tmux &&
121
- rm -Rf "${DOTFILESDIR}"/shell/configurations/vim &&
122
- rm -Rf "${DOTFILESDIR}"/shell/configurations/wget &&
123
- rm -Rf "${DOTFILESDIR}"/shell/configurations/zsh &&
124
-
125
- echo "${BIRed}❭${NC} ${BIGreen}Dotfiles v${VERSION}${NC} has been installed on your system."
126
- }
127
-
128
- ## 🅷🅴🅻🅿 🅼🅴🅽🆄 - Display help menu.
129
- help() {
130
- clear
131
- cat <<EOF
132
-
133
- ┌───────────────────────────────────────────┐
134
- │ Dotfiles (v${VERSION}) │
135
- ├───────────────────────────────────────────┤
136
- │ Simply designed to fit your shell life. │
137
- └───────────────────────────────────────────┘
138
-
139
- USAGE:
140
-
141
- dotfiles [COMMAND]
142
-
143
- COMMANDS:
144
-
145
- backup - Backup existing dotfiles from the '${HOME}' directory
146
- clean - Removes any previous setup directories
147
- copy - Copy the new dotfiles files to your '${HOME}' directory
148
- download - Download the latest Dotfiles (v${VERSION})
149
- assemble - Run the full installation process
150
- unpack - Unpack the Dotfiles
151
- help - Show the help menu
152
-
153
- DOCUMENTATION:
154
- website - https://dotfiles.io
155
-
156
- LICENSE:
157
- This project is licensed under the MIT License.
158
-
159
- EOF
160
- }
161
-
162
- # shellcheck disable=SC2292
163
- if [ "$1" = "backup" ]; then
164
- echo "${BIRed}❭${NC} Backing up.${NC}"
165
- backup
166
- elif [ "$1" = "clean" ]; then
167
- echo "${BIRed}❭${NC} Removes any previous setup directories.${NC}"
168
- clean
169
- elif [ "$1" = "copy" ]; then
170
- echo "${BIRed}❭${NC} Copying dotfiles.${NC}"
171
- copy
172
- elif [ "$1" = "download" ]; then
173
- echo "${BIRed}❭${NC} Downloading ${BIGreen}Dotfiles v${VERSION}${NC}."
174
- download
175
- elif [ "$1" = "help" ]; then
176
- help
177
- elif [ "$1" = "assemble" ]; then
178
- echo "${BIRed}❭${NC} Installing ${BIGreen}Dotfiles v${VERSION}${NC}."
179
- assemble
180
- elif [ "$1" = "unpack" ]; then
181
- echo "${BIRed}❭${NC} Unpacking ${BIGreen}Dotfiles v${VERSION}${NC}."
182
- unpack
183
- else
184
- help
185
- fi
@@ -1,199 +0,0 @@
1
- #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- # 🅳🅴🅵🅰🆄🅻🆃 🅰🅻🅸🅰🆂🅴🆂
7
- unalias -a # Remove all previous environment defined aliases.
8
- alias -- -='cd -' # -: Shortcut to go to previous directory.
9
- alias .....='cd ../../../..' # .....: Shortcut to go to great-great-grandparent directory.
10
- alias ....='cd ../../..' # ....: Shortcut to go to great-grandparent directory.
11
- alias ...='cd ../..' # ...: Shortcut to go to grandparent directory.
12
- alias ..='cd ..' # ..: Shortcut to go to parent directory.
13
- alias ':q'='quit' # q: Shortcut for the `exit` command.
14
- alias '~'='cd ~' # ~: Shortcut to go to home directory.
15
- alias 'l.'="ls -dlhF .* | grep -v '^d'" # l.: List hidden files.
16
- alias 000='chmod -R 000' # 000: Make all files and directories read-only.
17
- alias 644='chmod -R 644' # 644: Make all files and directories readable and writable.
18
- alias 666='chmod -R 666' # 666: Make all files and directories readable and writable.
19
- alias 755='chmod -R 755' # 755: Make all files and directories readable and writable.
20
- alias 777='chmod -R 777' # 777: Make all files and directories readable and writable.
21
- alias bye='quit' # q: Shortcut for the `exit` command.
22
- alias c="clear" # c: Clear screen shortcut.
23
- alias cde="cd ~/Code; ls" # cde: Shortcut to go to the Code directory and list its contents.
24
- alias cgz='tar -zcvf' # cgz: Compress a whole directory (including subdirectories) to a tarball.
25
- alias chmox='chmod +x' # chmox: Make a file executable.
26
- alias cl="clear" # cl: Clear screen shortcut.
27
- alias clear="clear && printf '\e[3J'" # clear: Clear screen shortcut.
28
- alias clr="clear" # clr: Clear screen shortcut.
29
- alias cls="clear" # cls: Clear screen shortcut.
30
- alias cp="cp -vi" # cp: Copy files and directories.
31
- alias cr='cargo run' # cr: Run cargo.
32
- alias ct="clear && tree ./" # ct: Clear screen and list directory contents.
33
- alias ctf='echo $(ls -1 | wc -l)' # ctf: Count the number of files in the current directory.
34
- alias curl='curl --compressed' # curl: Use compression when transferring data.
35
- alias da='date "+%Y-%m-%d %A %T %Z"' # da: Display the current date and time.
36
- alias del="rm -rfv" # del: Remove a file or directory.
37
- alias digg="dig @8.8.8.8 +nocmd any +multiline +noall +answer" # digg: Dig with Google's DNS.
38
- alias dn="cd ~/Downloads; ls" # dn: Shortcut to go to the Downloads directory and list its contents.
39
- alias dot='cd ${HOME}/.dotfiles/' # dot: Shortcut to go to the dotfiles directory.
40
- alias ds="cd ~/Documents; ls" # ds: Shortcut to go to the Documents directory and list its contents.
41
- alias dsp="sudo du -shc ." # dsp: Show the size of the current directory.
42
- alias dt="cd ~/Desktop; ls" # dt: Shortcut to go to the Desktop directory and list its contents.
43
- alias du='sudo du -h' # du: File size human readable output sorted by size.
44
- alias duf='sudo du -sh *' # duf: File size human readable output sorted.
45
- alias e='vim' # e, edit, mate: Edit current file.
46
- alias edit='vim' # e, edit, mate: Edit current file.
47
- alias egz='tar -xvzf' # egz: Extract a whole directory (including subdirectories)
48
- alias f='find . -name ' # f: Quickly search for file
49
- alias fd='find . -type d -name' # fd: Quickly search for directory
50
- alias ff='find . -type f -name' # ff: Quickly search for file
51
- alias g='git' # g: Shortcut to git.
52
- alias ga='git add ' # ga: Shortcut to git add.
53
- alias gb='git branch ' # gb: Shortcut to git branch.
54
- alias gc='git commit -m ' # gc: Shortcut to git commit.
55
- alias gcb="git checkout -b " # gcb: Create a new branch and switch to it.
56
- alias gcl='git clone ' # gcl: Shortcut to git clone.
57
- alias gco='git checkout ' # gco: Shortcut to git checkout.
58
- alias gd='git diff ' # gd: Shortcut to git diff.
59
- alias gf='git fetch ' # gf: Shortcut to git fetch.
60
- alias gl='git log ' # gl: Shortcut to git log.
61
- alias gmv='git mv' # gmv: Move or rename a file, a directory, or a symlink.
62
- alias gph="git push" # gp: Push local commits to remote.
63
- alias gpl="git pull" # gl: Update and merge remote changes.
64
- alias gr='git remote ' # gr: Shortcut to git remote.
65
- alias grm='git remove' # grm: Remove files from the working tree and from the index.
66
- alias grt='cd "$(git rev-parse --show-toplevel)"' # gr: Change to Git Root directory.
67
- alias gst='git status ' # gst: Shortcut to git status.
68
- alias gsta='git stash save ' # gsta: Shortcut to git stash save.
69
- alias gz='tar -zcvf' # gz: Compress a whole directory (including subdirectories) to a tarball.
70
- alias h='history' # h: Lists all recently used commands.
71
- alias halt="sudo /sbin/halt" # halt: Shutdown the system.
72
- alias ifconfig='sudo ifconfig' # ifconfig: Append sudo to ifconfig (configure network interface parameters) command.
73
- alias ip="ip4; ip6" # ip: Get the public IPv4 and IPv6 addresses.
74
- alias ip4="dig +short myip.opendns.com @resolver1.opendns.com -4" # ip4: Get the public IPv4 address.
75
- alias ip6="dig -6 AAAA +short myip.opendns.com. @resolver1.opendns.com." # ip6: Get the public IPv6 address.
76
- alias ipinfo='ipconfig getpacket en0' # ipInfo0: Get network interface parameters for en0.
77
- alias l='ls -lFh' # l: Size, show type, human readable.
78
- alias l1='ls -1' # l1: Display one file per line.
79
- alias la='ls -Alh' # la: show hidden files on the command line.
80
- alias labc='ls -lap' # labc: List all files in alphabetical order.
81
- alias lc='wc -l' # lc: Count the number of lines in the file.
82
- alias lct='ls -lcrh' # lc: sort by change time
83
- alias ld='ls -ltrh' # lt: sort by date
84
- alias ldir="ls -l | egrep '^d'" # directories only
85
- alias ldot="l." # l.: List hidden files.
86
- alias left='ls -t -1' # left: List files by date, most recent last.
87
- alias lf="ls -l | egrep -v '^d'" # files only
88
- alias lk='ls -lSrh' # lk: sort by size
89
- alias ll='ls -lAFh' # ll: Long list, show almost all, show type, human readable.
90
- alias lla='ls -l -d $PWD/*' # lla: List full path of all files in current directory.
91
- alias lm='ls -alh |more' # lm: pipe through 'more'
92
- alias ln='ln -vi' # ln: interactive symbolic link
93
- alias locale='locale -a | grep UTF-8' # locale: List all available locales.
94
- alias lp='sudo lsof -i -T -n' # lp: List all open ports.
95
- alias lr='ls -lRh' # lr: recursive ls
96
- alias ls='ls --color' # ls: Colorize the output.
97
- alias lS='ls -1FSsh' # lS: Order Files Based on Last Modified Time and size.
98
- alias lt="tree" # lt: List contents of directories in a tree-like format.
99
- alias lu='ls -lurh' # lu: sort by access time
100
- alias lw='ls -xAh' # wide listing format
101
- alias lx='ls | sort -k 1,1 -t .' # lx: sort by extension
102
- alias mate='vim' # e, edit, mate: Edit current file.
103
- alias mc='make clean' # mc: Make clean.
104
- alias md='mkd' # mkd: Create the directory and all parent directories, verbose mode.
105
- alias mi='make install' # mi: Make install.
106
- alias mk=make # mk: Make.
107
- alias mkbz2='tar -cvjf' # mkbz2: Create a temporary tar ball compressed with bzip2.
108
- alias mkcd='mkdir -pv && cd' # mkcd: Create the directory and all parent directories, verbose mode, then change to it.
109
- alias mkd='mkdir -pv' # mkd: Create the directory and all parent directories, verbose mode.
110
- alias mkdd='mkdir -pv $(date +%Y%m%d)' # mkdd: Create a directory with the current date.
111
- alias mkgz='tar -cvzf' # mkgz: Create a temporary tar ball compressed with gzip.
112
- alias mkh="make help" # mkh: Make help.
113
- alias mkr="make run" # mkr: Make run.
114
- alias mkt="make test" # mkt: Make test.
115
- alias mktar='tar -cvf' # mktar: Create a temporary tarball.
116
- alias mv='mv -vi' # mv: Move files interactively (ask before overwrite) and verbose.
117
- alias mx='chmod a+x' # mx: Make executable.
118
- alias nls='sudo lsof -i -P | grep LISTEN' # nls: Show only active network listeners.
119
- alias now='date +"%T"' # now: Show the current time.
120
- alias npmi='npm install ' # npmi: Install npm package.
121
- alias npms='npm start ' # npms: Start npm package.
122
- alias op='sudo lsof -i -P' # op: List of open ports.
123
- alias p='pwd' # p: Shortcut for `pwd` which returns working directory name.
124
- alias pa="clear && pwd && echo '' && ls && echo ''" # pa: Clear the screen, show the current directory, and list the files.
125
- alias paa="clear && pwd && echo '' && ls -a && echo ''" # paa: Clear the screen, show the current directory, and list all files.
126
- alias path='echo -e ${PATH//:/\\n}' # path: Display the $PATH variable on newlines.
127
- alias pid='ps -f' # pid: Display the uid, pid, parent pid, recent CPU usage, process start time, controlling tty, elapsed CPU usage, and the associated command.
128
- alias ping='ping -c 5' # ping: Limit Ping to 5 ECHO_REQUEST packets.
129
- alias please='sudo -' # sudo: Execute a command as the superuser.
130
- alias pn='pnpm' # pn: Shortcut to pnpm.
131
- alias ports='netstat -tulan' # ports: List all listening ports.
132
- alias poweroff="sudo /sbin/shutdown" # poweroff: Poweroff the system.
133
- alias pp="clear && pwd" # pp: Clear the screen and show the current directory.
134
- alias ps='ps auxwww' # kp: Getting full path of executables.
135
- alias pt="clear && pwd && echo '' && tree ./ && echo ''" # pt: Clear the screen and show the current directory and tree.
136
- alias q='quit' # q: Shortcut for the `exit` command.
137
- alias qfind='find . -name ' # qfind: Quickly search for file.
138
- alias quit='exit' # q: Shortcut for the `exit` command.
139
- alias r=reload # r: Reload the shell.
140
- alias reboot="sudo /sbin/reboot" # reboot: Reboot the system.
141
- alias reload='exec $SHELL -l' # reload: Reload the shell.
142
- alias rm='rm -vI' # rm: Prompts for every file before removing.
143
- alias rr="rm -rf" # rr: Remove directory and all its contents.
144
- alias rs='rsync -avz' # rs: Rsync with verbose and progress.
145
- alias s='sudo' # s: Execute a command as the superuser.
146
- alias shutdown='sudo shutdown -h now' # shutdown: Shutdown the system.
147
- alias spd='sudo rm -rf /private/var/log/asl/*' # spd: Remove all log files in /private/var/log/asl.
148
- alias srv='python3 -m http.server' # srv: Start a simple HTTP server.
149
- alias svi='sudo vi' # svi: Run vi in sudo mode.
150
- alias t='tail -f' # t: Prints the last 10 lines of a text or log file, and then waits for new additions to the file to print it in real time.
151
- alias top='sudo btop' # top: Allows the user to interactively monitor the system's vital resources or server's processes in real time.
152
- alias trash="rm -fr ~/.Trash" # trash: Remove all files in the trash.
153
- alias tree='tree --dirsfirst' # tree: Display a directory tree.
154
- alias unbz2='tar -xvjf' # unbz2: Extract a tarball compressed with bzip2.
155
- alias undopush="git push -f origin HEAD^:master" # undopush: Undo the last push.
156
- alias ungz='tar -xvzf' # ungz: Extract a tarball compressed with gzip.
157
- alias untar='tar -xvf' # untar: Extract a tarball.
158
- alias usage='du -ch | grep total' # usage: Grabs the disk usage in the current directory.
159
- alias v='vim $(f)' # v: Edit a file.
160
- alias v='vim' # e, edit, mate: Edit current file.
161
- alias wget='wget -c' # wget: wget with resume.
162
- alias wip='dig +short myip.opendns.com @resolver1.opendns.com' # wip: Get public IP address.
163
- alias wk='date +%V' # wk: Show the current week number.
164
- alias wth='curl https://wttr.in' # wth: Get the weather.
165
- alias x='quit' # q: Shortcut for the `exit` command.
166
-
167
- if [[ "$(uname || true)" = "Darwin" ]]; then
168
- alias upd='
169
- sudo softwareupdate -i -a;
170
- pnpm i;
171
- pnpm i yarn --global;
172
- pnpm i npm --global;
173
- pnpm i pnpm --global;
174
- pnpm up;
175
- brew cu --all;
176
- brew doctor;
177
- brew update;
178
- brew upgrade;
179
- brew cleanup;
180
- mas upgrade;
181
- sudo gem update;
182
- sudo gem cleanup;
183
- '
184
- elif [[ "$(uname || true)" = "Linux" ]]; then
185
- alias open="xdg-open >/dev/null 2>&1" # open: Open a file or URL in the user's preferred application.
186
- alias pbcopy='xsel --clipboard --input' # pbcopy: Copy to clipboard.
187
- alias pbpaste='xsel --clipboard --output' # pbpaste: Paste from clipboard.
188
- alias upd='
189
- sudo apt update;
190
- sudo apt upgrade -y;
191
- pnpm i;
192
- pnpm i yarn --global;
193
- pnpm i npm --global;
194
- pnpm i pnpm --global;
195
- pnpm up;
196
- sudo gem update;
197
- sudo gem cleanup;
198
- '
199
- fi