@sebastienrousseau/dotfiles 0.2.469 → 0.2.499

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 (221) hide show
  1. package/docs/ARCHITECTURE.md +62 -0
  2. package/docs/COMPLIANCE.md +47 -0
  3. package/docs/COPYRIGHT +6 -0
  4. package/docs/OPERATIONS.md +103 -0
  5. package/docs/PLAN.md +161 -0
  6. package/docs/PR_DESCRIPTION.md +150 -0
  7. package/docs/ROADMAP.md +148 -0
  8. package/docs/ROADMAP_legacy.md +556 -0
  9. package/docs/SECURITY_CHECKLIST.md +25 -0
  10. package/docs/TASK.md +99 -0
  11. package/docs/WALKTHROUGH.md +46 -0
  12. package/package.json +64 -76
  13. package/scripts/backup.sh +142 -0
  14. package/{dist/scripts → scripts}/banner.sh +1 -1
  15. package/scripts/benchmark.sh +20 -0
  16. package/{dist/scripts → scripts}/build.sh +1 -1
  17. package/{dist/scripts → scripts}/clean.sh +1 -1
  18. package/{dist/scripts → scripts}/compile.sh +1 -1
  19. package/{dist/scripts → scripts}/copy.sh +1 -1
  20. package/scripts/detect-collisions.py +84 -0
  21. package/scripts/doctor.sh +79 -0
  22. package/{dist/scripts → scripts}/dotfiles.sh +1 -1
  23. package/{dist/scripts → scripts}/download.sh +1 -1
  24. package/{dist/scripts → scripts}/help.sh +1 -1
  25. package/scripts/lock-configs.sh +57 -0
  26. package/scripts/package.sh +46 -0
  27. package/{dist/scripts → scripts}/ssh.sh +1 -1
  28. package/scripts/teleport.sh +23 -0
  29. package/scripts/test-aliases.sh +25 -0
  30. package/scripts/test_smoke.sh +88 -0
  31. package/{dist/scripts → scripts}/unpack.sh +1 -1
  32. package/scripts/verify_state.sh +60 -0
  33. package/templates/projects/go/README.md +3 -0
  34. package/templates/projects/go/cmd/__PROJECT_NAME__/main.go +7 -0
  35. package/templates/projects/go/go.mod +3 -0
  36. package/templates/projects/node/README.md +3 -0
  37. package/templates/projects/node/package.json +10 -0
  38. package/templates/projects/node/src/index.js +2 -0
  39. package/templates/projects/python/README.md +3 -0
  40. package/templates/projects/python/pyproject.toml +10 -0
  41. package/templates/projects/python/src/__PROJECT_NAME__/__init__.py +1 -0
  42. package/templates/projects/python/tests/test_basic.py +2 -0
  43. package/LICENSE +0 -1283
  44. package/README.md +0 -398
  45. package/dist/Makefile +0 -140
  46. package/dist/bin/backup.d.ts +0 -3
  47. package/dist/bin/backup.d.ts.map +0 -1
  48. package/dist/bin/backup.js +0 -4
  49. package/dist/bin/backup.js.map +0 -1
  50. package/dist/bin/constants.d.ts +0 -7
  51. package/dist/bin/constants.d.ts.map +0 -1
  52. package/dist/bin/constants.js +0 -2
  53. package/dist/bin/constants.js.map +0 -1
  54. package/dist/bin/copy.d.ts +0 -3
  55. package/dist/bin/copy.d.ts.map +0 -1
  56. package/dist/bin/copy.js +0 -3
  57. package/dist/bin/copy.js.map +0 -1
  58. package/dist/bin/dotfiles.d.ts +0 -3
  59. package/dist/bin/dotfiles.d.ts.map +0 -1
  60. package/dist/bin/dotfiles.js +0 -2
  61. package/dist/bin/dotfiles.js.map +0 -1
  62. package/dist/bin/download.d.ts +0 -3
  63. package/dist/bin/download.d.ts.map +0 -1
  64. package/dist/bin/download.js +0 -2
  65. package/dist/bin/download.js.map +0 -1
  66. package/dist/bin/index.d.ts +0 -2
  67. package/dist/bin/index.d.ts.map +0 -1
  68. package/dist/bin/index.js +0 -1
  69. package/dist/bin/index.js.map +0 -1
  70. package/dist/bin/transfer.d.ts +0 -3
  71. package/dist/bin/transfer.d.ts.map +0 -1
  72. package/dist/bin/transfer.js +0 -4
  73. package/dist/bin/transfer.js.map +0 -1
  74. package/dist/bin/unpack.d.ts +0 -3
  75. package/dist/bin/unpack.d.ts.map +0 -1
  76. package/dist/bin/unpack.js +0 -3
  77. package/dist/bin/unpack.js.map +0 -1
  78. package/dist/filesizes.txt +0 -382
  79. package/dist/lib/README.md +0 -86
  80. package/dist/lib/aliases/README.md +0 -57
  81. package/dist/lib/aliases/archives/README.md +0 -145
  82. package/dist/lib/aliases/archives/archives.aliases.sh +0 -114
  83. package/dist/lib/aliases/cd/README.md +0 -146
  84. package/dist/lib/aliases/cd/cd.aliases.sh +0 -51
  85. package/dist/lib/aliases/chmod/README.md +0 -160
  86. package/dist/lib/aliases/chmod/chmod.aliases.sh +0 -107
  87. package/dist/lib/aliases/clear/README.md +0 -37
  88. package/dist/lib/aliases/clear/clear.aliases.sh +0 -71
  89. package/dist/lib/aliases/configuration/README.md +0 -39
  90. package/dist/lib/aliases/configuration/configuration.aliases.sh +0 -70
  91. package/dist/lib/aliases/default/README.md +0 -40
  92. package/dist/lib/aliases/default/default.aliases.sh +0 -139
  93. package/dist/lib/aliases/dig/README.md +0 -37
  94. package/dist/lib/aliases/dig/dig.aliases.sh +0 -43
  95. package/dist/lib/aliases/disk-usage/README.md +0 -36
  96. package/dist/lib/aliases/disk-usage/du.aliases.sh +0 -84
  97. package/dist/lib/aliases/editor/README.md +0 -53
  98. package/dist/lib/aliases/editor/editor.aliases.sh +0 -26
  99. package/dist/lib/aliases/find/README.md +0 -46
  100. package/dist/lib/aliases/find/find.aliases.sh +0 -60
  101. package/dist/lib/aliases/gcloud/README.md +0 -63
  102. package/dist/lib/aliases/gcloud/gcloud.aliases.sh +0 -335
  103. package/dist/lib/aliases/git/README.md +0 -153
  104. package/dist/lib/aliases/git/git.aliases.sh +0 -544
  105. package/dist/lib/aliases/gnu/README.md +0 -89
  106. package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +0 -150
  107. package/dist/lib/aliases/heroku/README.md +0 -430
  108. package/dist/lib/aliases/heroku/heroku.aliases.sh +0 -1053
  109. package/dist/lib/aliases/interactive/README.md +0 -55
  110. package/dist/lib/aliases/interactive/interactive.aliases.sh +0 -50
  111. package/dist/lib/aliases/list/README.md +0 -131
  112. package/dist/lib/aliases/list/list.aliases.sh +0 -132
  113. package/dist/lib/aliases/macOS/README.md +0 -42
  114. package/dist/lib/aliases/macOS/macos.aliases.sh +0 -65
  115. package/dist/lib/aliases/make/README.md +0 -32
  116. package/dist/lib/aliases/make/make.aliases.sh +0 -35
  117. package/dist/lib/aliases/mkdir/README.md +0 -30
  118. package/dist/lib/aliases/mkdir/mkdir.aliases.sh +0 -29
  119. package/dist/lib/aliases/npm/README.md +0 -41
  120. package/dist/lib/aliases/npm/npm.aliases.sh +0 -61
  121. package/dist/lib/aliases/permission/README.md +0 -47
  122. package/dist/lib/aliases/permission/permission.aliases.sh +0 -73
  123. package/dist/lib/aliases/pnpm/README.md +0 -53
  124. package/dist/lib/aliases/pnpm/pnpm.aliases.sh +0 -76
  125. package/dist/lib/aliases/ps/README.md +0 -29
  126. package/dist/lib/aliases/ps/ps.aliases.sh +0 -20
  127. package/dist/lib/aliases/python/python.aliases.sh +0 -141
  128. package/dist/lib/aliases/rsync/README.md +0 -25
  129. package/dist/lib/aliases/rsync/rsync.aliases.sh +0 -17
  130. package/dist/lib/aliases/rust/README.md +0 -182
  131. package/dist/lib/aliases/rust/rust.aliases.sh +0 -119
  132. package/dist/lib/aliases/subversion/README.md +0 -66
  133. package/dist/lib/aliases/subversion/subversion.aliases.sh +0 -47
  134. package/dist/lib/aliases/sudo/README.md +0 -27
  135. package/dist/lib/aliases/sudo/sudo.aliases.sh +0 -20
  136. package/dist/lib/aliases/tmux/README.md +0 -31
  137. package/dist/lib/aliases/tmux/tmux.aliases.sh +0 -36
  138. package/dist/lib/aliases/update/README.md +0 -38
  139. package/dist/lib/aliases/update/update.aliases.sh +0 -310
  140. package/dist/lib/aliases/uuid/README.md +0 -24
  141. package/dist/lib/aliases/uuid/uuid.aliases.sh +0 -19
  142. package/dist/lib/aliases/wget/README.md +0 -27
  143. package/dist/lib/aliases/wget/wget.aliases.sh +0 -22
  144. package/dist/lib/aliases.sh +0 -50
  145. package/dist/lib/configurations/README.md +0 -18
  146. package/dist/lib/configurations/bash/bashrc +0 -167
  147. package/dist/lib/configurations/curl/cacert.pem +0 -3460
  148. package/dist/lib/configurations/curl/curlrc +0 -53
  149. package/dist/lib/configurations/default/color.sh +0 -24
  150. package/dist/lib/configurations/default/constants.sh +0 -43
  151. package/dist/lib/configurations/default/editor.sh +0 -18
  152. package/dist/lib/configurations/default/prompt.sh +0 -48
  153. package/dist/lib/configurations/gem/gemrc +0 -9
  154. package/dist/lib/configurations/input/inputrc +0 -23
  155. package/dist/lib/configurations/jshint/jshintrc +0 -37
  156. package/dist/lib/configurations/nano/nanorc +0 -35
  157. package/dist/lib/configurations/profile/profile +0 -37
  158. package/dist/lib/configurations/prompt/prompt.sh +0 -81
  159. package/dist/lib/configurations/tmux/default +0 -18
  160. package/dist/lib/configurations/tmux/display +0 -30
  161. package/dist/lib/configurations/tmux/linux +0 -18
  162. package/dist/lib/configurations/tmux/navigation +0 -30
  163. package/dist/lib/configurations/tmux/panes +0 -10
  164. package/dist/lib/configurations/tmux/theme +0 -29
  165. package/dist/lib/configurations/tmux/tmux +0 -21
  166. package/dist/lib/configurations/vim/vimrc +0 -193
  167. package/dist/lib/configurations/wget/wgetrc +0 -40
  168. package/dist/lib/configurations/zsh/zshrc +0 -50
  169. package/dist/lib/configurations.sh +0 -45
  170. package/dist/lib/functions/README.md +0 -92
  171. package/dist/lib/functions/apihealth.sh +0 -277
  172. package/dist/lib/functions/apilatency.sh +0 -157
  173. package/dist/lib/functions/apiload.sh +0 -165
  174. package/dist/lib/functions/backup.sh +0 -143
  175. package/dist/lib/functions/cdls.sh +0 -60
  176. package/dist/lib/functions/curlheader.sh +0 -78
  177. package/dist/lib/functions/curlstatus.sh +0 -74
  178. package/dist/lib/functions/curltime.sh +0 -75
  179. package/dist/lib/functions/encode64.sh +0 -107
  180. package/dist/lib/functions/environment.sh +0 -78
  181. package/dist/lib/functions/extract.sh +0 -86
  182. package/dist/lib/functions/freespace.sh +0 -67
  183. package/dist/lib/functions/genpwd.sh +0 -105
  184. package/dist/lib/functions/goto.sh +0 -67
  185. package/dist/lib/functions/hexdump.sh +0 -96
  186. package/dist/lib/functions/hiddenfiles.sh +0 -77
  187. package/dist/lib/functions/hostinfo.sh +0 -98
  188. package/dist/lib/functions/hstats.sh +0 -75
  189. package/dist/lib/functions/httpdebug.sh +0 -113
  190. package/dist/lib/functions/kebabcase.sh +0 -61
  191. package/dist/lib/functions/keygen.sh +0 -194
  192. package/dist/lib/functions/last.sh +0 -112
  193. package/dist/lib/functions/logout.sh +0 -120
  194. package/dist/lib/functions/lowercase.sh +0 -61
  195. package/dist/lib/functions/matrix.sh +0 -216
  196. package/dist/lib/functions/mount_read_only.sh +0 -11
  197. package/dist/lib/functions/myproc.sh +0 -9
  198. package/dist/lib/functions/prependpath.sh +0 -21
  199. package/dist/lib/functions/ql.sh +0 -9
  200. package/dist/lib/functions/rd.sh +0 -17
  201. package/dist/lib/functions/remove_disk.sh +0 -11
  202. package/dist/lib/functions/ren.sh +0 -73
  203. package/dist/lib/functions/sentencecase.sh +0 -63
  204. package/dist/lib/functions/showhiddenfiles.sh +0 -14
  205. package/dist/lib/functions/size.sh +0 -16
  206. package/dist/lib/functions/snakecase.sh +0 -61
  207. package/dist/lib/functions/stopwatch.sh +0 -15
  208. package/dist/lib/functions/sysinfo.sh +0 -145
  209. package/dist/lib/functions/titlecase.sh +0 -65
  210. package/dist/lib/functions/uppercase.sh +0 -61
  211. package/dist/lib/functions/view-source.sh +0 -9
  212. package/dist/lib/functions/vscode.sh +0 -32
  213. package/dist/lib/functions/whoisport.sh +0 -14
  214. package/dist/lib/functions/zipf.sh +0 -16
  215. package/dist/lib/functions.sh +0 -46
  216. package/dist/lib/history.sh +0 -90
  217. package/dist/lib/paths/README.md +0 -52
  218. package/dist/lib/paths/custom.paths.sh +0 -40
  219. package/dist/lib/paths/default.paths.sh +0 -37
  220. package/dist/lib/paths.sh +0 -46
  221. package/dist/scripts/backup.sh +0 -95
@@ -1,193 +0,0 @@
1
- " 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.469) - <https://dotfiles.io>
2
- " Made with ♥ in London, UK by Sebastien Rousseau
3
- " Copyright (c) 2015-2025. All rights reserved
4
- " License: MIT
5
-
6
- "-----------------------------------------------------------------------------
7
- " Plugin Manager: vim-plug
8
- "-----------------------------------------------------------------------------
9
- " Auto-install vim-plug if not present
10
- if empty(glob('~/.vim/autoload/plug.vim'))
11
- silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
12
- https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
13
- autocmd VimEnter * PlugInstall | source $MYVIMRC
14
- endif
15
- runtime autoload/plug.vim
16
-
17
- call plug#begin('~/.vim/plugged')
18
-
19
- " Core Functionality
20
- Plug 'preservim/nerdtree' " File explorer
21
- Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } " Fuzzy finder
22
- Plug 'junegunn/fzf.vim' " FZF integration
23
- Plug 'easymotion/vim-easymotion' " Enhanced motion commands
24
- Plug 'mbbill/undotree' " Visual undo history
25
-
26
- " Editor Enhancement
27
- Plug 'jiangmiao/auto-pairs' " Auto-close pairs
28
- Plug 'tpope/vim-surround' " Surround text objects
29
- Plug 'tpope/vim-commentary' " Comment code
30
- Plug 'editorconfig/editorconfig-vim' " EditorConfig support
31
-
32
- " Git Integration
33
- Plug 'tpope/vim-fugitive' " Git commands
34
- Plug 'airblade/vim-gitgutter' " Git diff in sign column
35
-
36
- " Language Support & Completion
37
- Plug 'neoclide/coc.nvim', {'branch': 'release'} " Intellisense engine
38
- Plug 'sheerun/vim-polyglot' " Language pack
39
- Plug 'dense-analysis/ale' " Linting engine
40
- Plug 'rust-lang/rust.vim' " Rust support
41
- Plug 'fatih/vim-go' " Go support
42
- Plug 'plasticboy/vim-markdown' " Markdown support
43
-
44
- " UI Enhancement
45
- Plug 'vim-airline/vim-airline' " Status line
46
- Plug 'vim-airline/vim-airline-themes' " Airline themes
47
- Plug 'dracula/vim', { 'as': 'dracula' } " Color scheme
48
-
49
- call plug#end()
50
-
51
- "-----------------------------------------------------------------------------
52
- " Terminal Settings
53
- "-----------------------------------------------------------------------------
54
- set t_Co=256 " Use 256 colors
55
- let &t_ut='' " Clear background better
56
- if has('termguicolors')
57
- set termguicolors " Enable true colors
58
- endif
59
-
60
- "-----------------------------------------------------------------------------
61
- " General Settings
62
- "-----------------------------------------------------------------------------
63
- set nocompatible " Use Vim settings rather than Vi
64
- set encoding=utf-8 " UTF-8 encoding
65
- set fileencoding=utf-8 " UTF-8 file encoding
66
- set history=10000 " Command history
67
- set hidden " Allow hidden buffers
68
- set secure " Restrict unsafe commands
69
- set autoread " Auto-reload changed files
70
- set mouse=a " Enable mouse support
71
- set backspace=indent,eol,start " Normal backspace behavior
72
-
73
- "-----------------------------------------------------------------------------
74
- " UI Configuration
75
- "-----------------------------------------------------------------------------
76
- set background=dark " Dark background
77
- colorscheme dracula " Use dracula theme
78
-
79
- set number " Show line numbers
80
- set relativenumber " Relative line numbers
81
- set cursorline " Highlight current line
82
- set ruler " Show cursor position
83
- set colorcolumn=80 " Mark column 80
84
- set signcolumn=yes " Always show sign column
85
- set cmdheight=1 " Command line height
86
- set laststatus=2 " Always show status line
87
- set showcmd " Show command in progress
88
- set showmode " Show current mode
89
- set showmatch " Show matching brackets
90
- set title " Window title
91
- set visualbell " Visual bell
92
- set noerrorbells " No error bells
93
- set list " Show invisible characters
94
- set listchars=tab:>\ ,trail:-,nbsp:+ " Show invisible characters
95
-
96
- "-----------------------------------------------------------------------------
97
- " Editor Settings
98
- "-----------------------------------------------------------------------------
99
- set expandtab " Use spaces instead of tabs
100
- set tabstop=2 " Spaces per tab
101
- set softtabstop=2 " Spaces per tab in insert mode
102
- set shiftwidth=2 " Spaces for autoindent
103
- set autoindent " Copy indent from current line
104
- set smartindent " Smart auto-indenting
105
- set wrap " Wrap lines
106
- set linebreak " Break lines at word boundary
107
- set textwidth=80 " Text width
108
-
109
- "-----------------------------------------------------------------------------
110
- " Search Settings
111
- "-----------------------------------------------------------------------------
112
- set hlsearch " Highlight search results
113
- set incsearch " Incremental search
114
- set ignorecase " Case-insensitive search
115
- set smartcase " Smart case search
116
- set path+=** " Search down into subfolders
117
-
118
- "-----------------------------------------------------------------------------
119
- " File Management
120
- "-----------------------------------------------------------------------------
121
- set nobackup " No backup files
122
- set nowritebackup " No backup while editing
123
- set noswapfile " No swap files
124
- set undofile " Persistent undo
125
- set undodir=~/.vim/undodir " Undo directory
126
-
127
- " Create undo directory if it doesn't exist
128
- if !isdirectory(&undodir)
129
- call mkdir(&undodir, 'p', 0700)
130
- endif
131
-
132
- "-----------------------------------------------------------------------------
133
- " Airline Configuration
134
- "-----------------------------------------------------------------------------
135
- let g:airline_powerline_fonts = 0 " Disable powerline fonts
136
- let g:airline_symbols_ascii = 1 " Use ASCII symbols
137
- let g:airline#extensions#tabline#enabled = 1
138
- let g:airline#extensions#tabline#formatter = 'unique_tail'
139
- let g:airline_skip_empty_sections = 1
140
-
141
- "-----------------------------------------------------------------------------
142
- " Key Mappings
143
- "-----------------------------------------------------------------------------
144
- let mapleader = " " " Set leader key to space
145
-
146
- " File operations
147
- nnoremap <Leader>w :w<CR> " Quick save
148
- nnoremap <Leader>q :q<CR> " Quick quit
149
- nnoremap <Leader>x :x<CR> " Save and quit
150
- nnoremap <Leader>sv :source $MYVIMRC<CR> " Reload vimrc
151
-
152
- " Window navigation
153
- nnoremap <C-h> <C-w>h " Move to left window
154
- nnoremap <C-j> <C-w>j " Move to window below
155
- nnoremap <C-k> <C-w>k " Move to window above
156
- nnoremap <C-l> <C-w>l " Move to right window
157
-
158
- " Plugin mappings
159
- nnoremap <C-n> :NERDTreeToggle<CR>
160
- nnoremap <Leader>f :Files<CR>
161
- nnoremap <Leader>b :Buffers<CR>
162
-
163
- "-----------------------------------------------------------------------------
164
- " Plugin Settings
165
- "-----------------------------------------------------------------------------
166
- " NERDTree
167
- let NERDTreeShowHidden = 1
168
-
169
- " FZF
170
- let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.8 } }
171
-
172
- " ALE
173
- let g:ale_fix_on_save = 1
174
- let g:ale_linters = {
175
- \ 'python': ['flake8', 'pylint'],
176
- \ 'javascript': ['eslint'],
177
- \ 'typescript': ['eslint'],
178
- \ 'rust': ['analyzer']
179
- \}
180
-
181
- "-----------------------------------------------------------------------------
182
- " Auto Commands
183
- "-----------------------------------------------------------------------------
184
- if has("autocmd")
185
- augroup FileTypeSpecific
186
- autocmd!
187
- autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
188
- autocmd FileType json setlocal ts=2 sts=2 sw=2 expandtab
189
- autocmd FileType markdown setlocal wrap linebreak nolist
190
- autocmd FileType rust setlocal ts=4 sts=4 sw=4 expandtab
191
- autocmd FileType go setlocal noexpandtab ts=4 sw=4
192
- augroup END
193
- endif
@@ -1,40 +0,0 @@
1
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.469) - <https://dotfiles.io>
2
- # Made with ♥ in London, UK by Sebastien Rousseau
3
- # Copyright (c) 2015-2025. All rights reserved
4
- # License: MIT
5
-
6
- # WGET default options
7
- # see https://www.gnu.org/software/wget/manual/html_node/Wgetrc-Commands.html
8
-
9
- # Use the server-provided last modification date, if available
10
- timestamping = on
11
-
12
- # Do not go up in the directory structure when downloading recursively
13
- no_parent = on
14
-
15
- # Wait 60 seconds before timing out. This applies to all timeouts: DNS, connect and read. (The default read timeout is 15 minutes!)
16
- timeout = 60
17
-
18
- # Retry a few times when a download fails, but don’t overdo it. (The default is 20!)
19
- tries = 3
20
-
21
- # Retry even when the connection was refused
22
- retry_connrefused = on
23
-
24
- # Use the last component of a redirection URL for the local file name
25
- trust_server_names = on
26
-
27
- # Follow FTP links from HTML documents by default
28
- follow_ftp = on
29
-
30
- # Add a `.html` extension to `text/html` or `application/xhtml+xml` files that lack one, or a `.css` extension to `text/css` files that lack one
31
- adjust_extension = on
32
-
33
- # Ignore `robots.txt` and `<meta name=robots content=nofollow>`
34
- robots = off
35
-
36
- # Print the HTTP and FTP server responses
37
- server_response = on
38
-
39
- # Disguise as IE 9 on Windows 7
40
- user_agent = Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
@@ -1,50 +0,0 @@
1
- #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.469) - <https://dotfiles.io>
3
- # Made with ♥ in London, UK by @sebastienrousseau
4
- # Copyright (c) 2015-2025. All rights reserved
5
- # License: MIT
6
-
7
- ## 🆅🅰🆁🅸🅰🅱🅻🅴🆂 - Set Dotfiles variable.
8
- HOSTNAME=$(hostname -f) # hostname of the machine.
9
- INPUTRC=${HOME}/.inputrc # set INPUTRC (so that .inputrc is respected)
10
- OS_ARCH=$(uname -m) # machine hardware name.
11
- OS_NAME=$(uname) # operating system name.
12
- OS_VERSION=$(uname -r) # operating system version number.
13
- SSL_CERT_FILE=${HOME}/cacert.pem # set the SSL_CERT_FILE environment variable.
14
- USER_LANGUAGE="en_GB.UTF-8" # default language.
15
- # USER=$(whoami) # current user name.
16
-
17
- ## 🅴🆇🅿🅾🆁🆃🆂 - Export the variables.
18
- export ARCHFLAGS="-arch ${OS_ARCH}" # archflags for the current machine.
19
- export DOTFILES_VERSION='0.2.469' # version of the dotfiles.
20
- export DOTFILES="${HOME}"/.dotfiles/lib # path to the cross plaform dotfiles.
21
- export HOSTNAME=${HOSTNAME} # hostname of the machine.
22
- export INPUTRC=${INPUTRC} # set INPUTRC (so that .inputrc is respected)
23
- export LANG=${USER_LANGUAGE} # default language.
24
- export LANGUAGE=${USER_LANGUAGE} # default language.
25
- export LC_ALL=${USER_LANGUAGE} # default language.
26
- export LC_CTYPE=${USER_LANGUAGE} # default language.
27
- export OS_ARCH # machine hardware name.
28
- export OS_NAME # operating system name.
29
- export OS_VERSION # operating system version number.
30
- export SSL_CERT_FILE=${SSL_CERT_FILE} # set the SSL_CERT_FILE environment variable.
31
- export TERM=xterm-256color # default terminal color.
32
-
33
- ## 🅻🅾🅰🅳🅴🆁🆂 - Load the dotfiles.
34
- for loaders in "${DOTFILES}"/*.sh; do
35
- # shellcheck source=/dev/null
36
- . "${loaders}"
37
- done
38
-
39
- # Remove duplicates in zsh $PATH
40
- # shellcheck disable=SC2034
41
- typeset -aU path
42
-
43
- # Initialize the completion system
44
- autoload -Uz compinit
45
-
46
- # Enable colors in prompt
47
- autoload -Uz colors && colors
48
-
49
- # Starting to find autocorrect rather annoying...
50
- unsetopt correct_all
@@ -1,45 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- ################################################################################
4
- # 🅳🅾🆃🅵🅸🅻🅴🆂
5
- # Script: configurations.sh
6
- # Version: 0.2.469
7
- # Author: Sebastien Rousseau
8
- # Copyright (c) 2015-2025. All rights reserved
9
- # Description: Script to manage shell configurations
10
- # Website: https://dotfiles.io
11
- # License: MIT
12
- ################################################################################
13
-
14
- ## 🅲🅾🅽🅵🅸🅶🆄🆁🅰🆃🅸🅾🅽🆂
15
- # Function: load_custom_configurations
16
- #
17
- # Description:
18
- # Loads custom shell configurations from the specified directory.
19
- #
20
- # Arguments:
21
- # None
22
- #
23
- # Further Reading:
24
- # ShellCheck Documentation: https://github.com/koalaman/shellcheck
25
-
26
- load_custom_configurations() {
27
- local config_dir="${HOME}/.dotfiles/lib/configurations"
28
-
29
- # Check if the directory exists
30
- if [[ -d "${config_dir}" ]]; then
31
- for config in "${config_dir}"/[!.#]*/*.sh; do
32
- if [[ -f "${config}" ]]; then
33
- # shellcheck source=/dev/null
34
- source "${config}" || {
35
- echo "Error: Failed to source ${config}" >&2
36
- return 1
37
- }
38
- fi
39
- done
40
- else
41
- echo "Warning: Configuration directory ${config_dir} does not exist." >&2
42
- fi
43
- }
44
-
45
- load_custom_configurations
@@ -1,92 +0,0 @@
1
- <img
2
- src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
3
- alt="dotfiles logo"
4
- width="66"
5
- align="right"
6
- />
7
-
8
- # Dotfiles (v0.2.469)
9
-
10
- Simply designed to fit your shell life 🐚
11
-
12
- ![Dotfiles banner][banner]
13
-
14
- This code provides a set of miscellaneous functions to enhance your
15
- shell experience and productivity.
16
-
17
- The functions are organized by category and are listed below.
18
-
19
- ## 🅵🆄🅽🅲🆃🅸🅾🅽🆂 🅻🅸🆂🆃
20
-
21
- <!-- markdownlint-disable MD013-->
22
-
23
- ### Navigation
24
-
25
- | Function | Description | Usage |
26
- | :-------------- | :------------------------------------- | :------------------- |
27
- | `cdls` | Combine `cd` and `ls` into one command. | `cdls <path>` |
28
- | `goto` | Change to the specified directory. | `goto <path>` |
29
-
30
- ### API Utilities
31
-
32
- | Function | Description | Usage |
33
- | :-------------- | :----------------------------------------------- | :----------------------- |
34
- | `apihealth` | Check API health status. | `apihealth <url>` |
35
- | `apilatency` | Measure API latency. | `apilatency <url>` |
36
- | `apiload` | Analyze API load. | `apiload <url>` |
37
- | `curlheader` | Fetch specific/all response headers for a URL. | `curlheader <url> [<header>]` |
38
- | `curlstatus` | Fetch HTTP status code for a URL. | `curlstatus <url>` |
39
- | `curltime` | Measure time taken for a URL request. | `curltime <url>` |
40
- | `httpdebug` | Debug HTTP requests and measure timings. | `httpdebug <url>` |
41
- | `whoisport` | Check if a port is open on a remote host. | `whoisport <host> <port>` |
42
-
43
- ### File Operations
44
-
45
- | Function | Description | Usage |
46
- | :--------------- | :----------------------------------------------- | :------------------------ |
47
- | `encode64` | Encode data in Base64 format. | `encode64 <input>` |
48
- | `extract` | Extract known archive formats. | `extract <file>` |
49
- | `hexdump` | Display a hexadecimal dump of a file. | `hexdump <file>` |
50
- | `hiddenfiles` | List hidden files in the current directory. | `hiddenfiles` |
51
- | `kebabcase` | Convert filenames to kebab-case. | `kebabcase <file>` |
52
- | `lowercase` | Convert filenames to lowercase. | `lowercase <file>` |
53
- | `prependpath` | Add a directory to the `$PATH` environment variable. | `prependpath <path>` |
54
- | `ren` | Rename file extensions. | `ren <old> <new>` |
55
- | `showhiddenfiles`| Show hidden files in Finder (macOS). | `showhiddenfiles` |
56
- | `snakecase` | Convert filenames to snake_case. | `snakecase <file>` |
57
- | `titlecase` | Convert filenames to Title Case. | `titlecase <file>` |
58
- | `uppercase` | Convert filenames to uppercase. | `uppercase <file>` |
59
- | `zipf` | Zip a file. | `zipf <file>` |
60
-
61
- ### System Information
62
-
63
- | Function | Description | Usage |
64
- | :--------------- | :----------------------------------------------- | :------------------------ |
65
- | `backup` | Create system backups. | `backup` |
66
- | `environment` | Detect the current environment. | `environment` |
67
- | `freespace` | Display free disk space. | `freespace` |
68
- | `hostinfo` | Display host-related information. | `hostinfo` |
69
- | `last` | List files modified within the last 60 minutes. | `last` |
70
- | `logout` | Log out from the current session (macOS). | `logout` |
71
- | `matrix` | Enable matrix effect in the terminal. | `matrix` |
72
- | `mount_read_only`| Mount a read-only disk image as read-write (macOS). | `mount_read_only <image>` |
73
- | `myproc` | List processes owned by the user. | `myproc` |
74
- | `size` | Display size of a file or total directory size. | `size <file>` |
75
- | `stopwatch` | Measure execution time of a program. | `stopwatch <program>` |
76
- | `sysinfo` | Display system information. | `sysinfo` |
77
-
78
- ### Miscellaneous
79
-
80
- | Function | Description | Usage |
81
- | :--------------- | :----------------------------------------------- | :------------------------ |
82
- | `genpwd` | Generate a strong random password. | `genpwd` |
83
- | `keygen` | Generate SSH key pairs. | `keygen <name> <email>` |
84
- | `ql` | Open any file in Quick Look preview (macOS). | `ql <file>` |
85
- | `rd` | Remove a directory and its files (macOS). | `rd <directory>` |
86
- | `remove_disk` | Spin down unneeded disk drives (macOS). | `remove_disk <disk>` |
87
- | `vscode` | Open a file or folder in Visual Studio Code. | `vscode <file>` |
88
- | `view-source` | View the source code of a web page. | `view-source <url>` |
89
-
90
- <!-- markdownlint-enable MD013-->
91
-
92
- [banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg