@sebastienrousseau/dotfiles 0.2.468 → 0.2.469

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 (172) hide show
  1. package/README.md +5 -5
  2. package/dist/Makefile +126 -43
  3. package/dist/bin/constants.d.ts +2 -2
  4. package/dist/bin/constants.d.ts.map +1 -1
  5. package/dist/bin/constants.js +1 -1
  6. package/dist/filesizes.txt +146 -144
  7. package/dist/lib/README.md +79 -5
  8. package/dist/lib/aliases/README.md +44 -42
  9. package/dist/lib/aliases/archives/README.md +120 -34
  10. package/dist/lib/aliases/archives/archives.aliases.sh +106 -149
  11. package/dist/lib/aliases/cd/README.md +119 -38
  12. package/dist/lib/aliases/cd/cd.aliases.sh +37 -59
  13. package/dist/lib/aliases/chmod/README.md +146 -95
  14. package/dist/lib/aliases/chmod/chmod.aliases.sh +71 -55
  15. package/dist/lib/aliases/clear/README.md +2 -2
  16. package/dist/lib/aliases/clear/clear.aliases.sh +4 -4
  17. package/dist/lib/aliases/configuration/README.md +2 -2
  18. package/dist/lib/aliases/configuration/configuration.aliases.sh +3 -6
  19. package/dist/lib/aliases/default/README.md +2 -2
  20. package/dist/lib/aliases/default/default.aliases.sh +3 -3
  21. package/dist/lib/aliases/dig/README.md +2 -2
  22. package/dist/lib/aliases/dig/dig.aliases.sh +4 -4
  23. package/dist/lib/aliases/disk-usage/README.md +2 -2
  24. package/dist/lib/aliases/disk-usage/du.aliases.sh +2 -2
  25. package/dist/lib/aliases/editor/README.md +2 -2
  26. package/dist/lib/aliases/editor/editor.aliases.sh +4 -4
  27. package/dist/lib/aliases/find/README.md +2 -2
  28. package/dist/lib/aliases/find/find.aliases.sh +4 -4
  29. package/dist/lib/aliases/gcloud/README.md +2 -2
  30. package/dist/lib/aliases/gcloud/gcloud.aliases.sh +4 -4
  31. package/dist/lib/aliases/git/README.md +2 -2
  32. package/dist/lib/aliases/git/git.aliases.sh +3 -3
  33. package/dist/lib/aliases/gnu/README.md +2 -2
  34. package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +2 -2
  35. package/dist/lib/aliases/heroku/README.md +2 -2
  36. package/dist/lib/aliases/heroku/heroku.aliases.sh +3 -3
  37. package/dist/lib/aliases/interactive/README.md +2 -2
  38. package/dist/lib/aliases/interactive/interactive.aliases.sh +3 -3
  39. package/dist/lib/aliases/list/README.md +112 -23
  40. package/dist/lib/aliases/list/list.aliases.sh +130 -84
  41. package/dist/lib/aliases/macOS/README.md +2 -2
  42. package/dist/lib/aliases/macOS/macos.aliases.sh +3 -3
  43. package/dist/lib/aliases/make/README.md +2 -2
  44. package/dist/lib/aliases/make/make.aliases.sh +3 -3
  45. package/dist/lib/aliases/mkdir/README.md +2 -2
  46. package/dist/lib/aliases/mkdir/mkdir.aliases.sh +3 -3
  47. package/dist/lib/aliases/npm/README.md +2 -2
  48. package/dist/lib/aliases/npm/npm.aliases.sh +3 -3
  49. package/dist/lib/aliases/permission/README.md +2 -2
  50. package/dist/lib/aliases/permission/permission.aliases.sh +3 -3
  51. package/dist/lib/aliases/pnpm/README.md +2 -2
  52. package/dist/lib/aliases/pnpm/pnpm.aliases.sh +3 -3
  53. package/dist/lib/aliases/ps/README.md +2 -2
  54. package/dist/lib/aliases/ps/ps.aliases.sh +3 -3
  55. package/dist/lib/aliases/python/python.aliases.sh +141 -0
  56. package/dist/lib/aliases/rsync/README.md +2 -2
  57. package/dist/lib/aliases/rsync/rsync.aliases.sh +3 -3
  58. package/dist/lib/aliases/rust/README.md +165 -44
  59. package/dist/lib/aliases/rust/rust.aliases.sh +109 -117
  60. package/dist/lib/aliases/subversion/README.md +2 -2
  61. package/dist/lib/aliases/subversion/subversion.aliases.sh +3 -3
  62. package/dist/lib/aliases/sudo/README.md +2 -2
  63. package/dist/lib/aliases/sudo/sudo.aliases.sh +3 -3
  64. package/dist/lib/aliases/tmux/README.md +2 -2
  65. package/dist/lib/aliases/tmux/tmux.aliases.sh +3 -3
  66. package/dist/lib/aliases/update/README.md +2 -2
  67. package/dist/lib/aliases/update/update.aliases.sh +307 -66
  68. package/dist/lib/aliases/uuid/README.md +2 -2
  69. package/dist/lib/aliases/uuid/uuid.aliases.sh +3 -3
  70. package/dist/lib/aliases/wget/README.md +2 -2
  71. package/dist/lib/aliases/wget/wget.aliases.sh +3 -3
  72. package/dist/lib/aliases.sh +2 -2
  73. package/dist/lib/configurations/README.md +2 -2
  74. package/dist/lib/configurations/bash/bashrc +163 -35
  75. package/dist/lib/configurations/curl/curlrc +3 -6
  76. package/dist/lib/configurations/default/color.sh +3 -3
  77. package/dist/lib/configurations/default/constants.sh +4 -4
  78. package/dist/lib/configurations/default/editor.sh +3 -3
  79. package/dist/lib/configurations/default/prompt.sh +20 -11
  80. package/dist/lib/configurations/input/inputrc +3 -3
  81. package/dist/lib/configurations/nano/nanorc +3 -3
  82. package/dist/lib/configurations/profile/profile +3 -3
  83. package/dist/lib/configurations/prompt/prompt.sh +81 -0
  84. package/dist/lib/configurations/tmux/default +3 -3
  85. package/dist/lib/configurations/tmux/display +3 -3
  86. package/dist/lib/configurations/tmux/linux +3 -3
  87. package/dist/lib/configurations/tmux/navigation +3 -3
  88. package/dist/lib/configurations/tmux/panes +3 -3
  89. package/dist/lib/configurations/tmux/theme +4 -4
  90. package/dist/lib/configurations/tmux/tmux +3 -3
  91. package/dist/lib/configurations/vim/vimrc +191 -71
  92. package/dist/lib/configurations/wget/wgetrc +3 -3
  93. package/dist/lib/configurations/zsh/zshrc +3 -4
  94. package/dist/lib/configurations.sh +19 -7
  95. package/dist/lib/functions/README.md +68 -54
  96. package/dist/lib/functions/apihealth.sh +277 -0
  97. package/dist/lib/functions/apilatency.sh +157 -0
  98. package/dist/lib/functions/apiload.sh +165 -0
  99. package/dist/lib/functions/backup.sh +143 -0
  100. package/dist/lib/functions/cdls.sh +52 -6
  101. package/dist/lib/functions/curlheader.sh +66 -10
  102. package/dist/lib/functions/curlstatus.sh +64 -7
  103. package/dist/lib/functions/curltime.sh +56 -14
  104. package/dist/lib/functions/encode64.sh +87 -7
  105. package/dist/lib/functions/environment.sh +65 -25
  106. package/dist/lib/functions/extract.sh +79 -27
  107. package/dist/lib/functions/freespace.sh +55 -9
  108. package/dist/lib/functions/genpwd.sh +93 -29
  109. package/dist/lib/functions/goto.sh +59 -8
  110. package/dist/lib/functions/hexdump.sh +96 -0
  111. package/dist/lib/functions/hiddenfiles.sh +77 -0
  112. package/dist/lib/functions/hostinfo.sh +92 -21
  113. package/dist/lib/functions/hstats.sh +69 -5
  114. package/dist/lib/functions/httpdebug.sh +109 -5
  115. package/dist/lib/functions/kebabcase.sh +61 -0
  116. package/dist/lib/functions/keygen.sh +188 -25
  117. package/dist/lib/functions/last.sh +106 -5
  118. package/dist/lib/functions/logout.sh +114 -6
  119. package/dist/lib/functions/lowercase.sh +49 -17
  120. package/dist/lib/functions/matrix.sh +205 -30
  121. package/dist/lib/functions/mount_read_only.sh +3 -3
  122. package/dist/lib/functions/myproc.sh +3 -3
  123. package/dist/lib/functions/prependpath.sh +3 -3
  124. package/dist/lib/functions/ql.sh +3 -3
  125. package/dist/lib/functions/rd.sh +3 -3
  126. package/dist/lib/functions/remove_disk.sh +3 -3
  127. package/dist/lib/functions/ren.sh +68 -8
  128. package/dist/lib/functions/sentencecase.sh +63 -0
  129. package/dist/lib/functions/showhiddenfiles.sh +3 -3
  130. package/dist/lib/functions/size.sh +6 -5
  131. package/dist/lib/functions/snakecase.sh +61 -0
  132. package/dist/lib/functions/stopwatch.sh +3 -3
  133. package/dist/lib/functions/sysinfo.sh +145 -0
  134. package/dist/lib/functions/titlecase.sh +65 -0
  135. package/dist/lib/functions/uppercase.sh +51 -19
  136. package/dist/lib/functions/view-source.sh +3 -3
  137. package/dist/lib/functions/vscode.sh +3 -3
  138. package/dist/lib/functions/whoisport.sh +3 -3
  139. package/dist/lib/functions/zipf.sh +3 -3
  140. package/dist/lib/functions.sh +21 -7
  141. package/dist/lib/history.sh +36 -88
  142. package/dist/lib/paths/README.md +52 -0
  143. package/dist/lib/paths/custom.paths.sh +40 -0
  144. package/dist/lib/paths/default.paths.sh +37 -0
  145. package/dist/lib/paths.sh +27 -14
  146. package/dist/scripts/backup.sh +3 -3
  147. package/dist/scripts/banner.sh +3 -3
  148. package/dist/scripts/build.sh +3 -3
  149. package/dist/scripts/clean.sh +3 -3
  150. package/dist/scripts/compile.sh +3 -3
  151. package/dist/scripts/copy.sh +3 -3
  152. package/dist/scripts/dotfiles.sh +3 -3
  153. package/dist/scripts/download.sh +3 -3
  154. package/dist/scripts/help.sh +3 -3
  155. package/dist/scripts/ssh.sh +3 -3
  156. package/dist/scripts/unpack.sh +3 -3
  157. package/package.json +10 -10
  158. package/dist/lib/aliases/jekyll/README.md +0 -41
  159. package/dist/lib/aliases/jekyll/jekyll.aliases.sh +0 -54
  160. package/dist/lib/functions/filehead.sh +0 -4
  161. package/dist/lib/functions/hidehiddenfiles.sh +0 -14
  162. package/dist/lib/paths/ant/ant.paths.sh +0 -15
  163. package/dist/lib/paths/default/default.paths.sh +0 -19
  164. package/dist/lib/paths/homebrew/homebrew.paths.sh +0 -27
  165. package/dist/lib/paths/java/java.paths.sh +0 -19
  166. package/dist/lib/paths/maven/maven.paths.sh +0 -18
  167. package/dist/lib/paths/node/node.paths.sh +0 -15
  168. package/dist/lib/paths/nvm/nvm.paths.sh +0 -23
  169. package/dist/lib/paths/pnpm/pnpm.paths.sh +0 -15
  170. package/dist/lib/paths/python/python.paths.sh +0 -36
  171. package/dist/lib/paths/ruby/ruby.paths.sh +0 -25
  172. package/dist/lib/paths/tmux/tmux.paths.sh +0 -12
@@ -1,73 +1,193 @@
1
- " 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.468) - <https://dotfiles.io>
2
- " Copyright (c) Sebastien Rousseau 2022. All rights reserved
1
+ " 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.469) - <https://dotfiles.io>
2
+ " Made with in London, UK by Sebastien Rousseau
3
+ " Copyright (c) 2015-2025. All rights reserved
3
4
  " License: MIT
4
5
 
5
- set autoindent " autoindent
6
- set autoread " auto-read
7
- set background=dark " background color (dark)
8
- set backspace=indent,eol,start " backspace behavior (indent, eol, start)
9
- set backupdir=~/.vim/backups " backup directory (~/.vim/backups)
10
- set cc=80 " column count (80)
11
- set clipboard=unnamedplus " clipboard support (unnamedplus)
12
- set cmdheight=1 " command line height (1)
13
- set confirm " confirm before exiting
14
- set cursorline " cursorline support
15
- set encoding=utf-8 " encoding support (utf-8)
16
- set expandtab " expandtab support
17
- set foldmethod=indent " foldmethod support
18
- set foldnestmax=3 " foldnestmax support (3)
19
- set gcr=a:blinkon0 " disable blinking cursor (a:blinkon0)
20
- set hidden " hidden support
21
- set history=10000 " history support (10000)
22
- set hlsearch " highlight search
23
- set ignorecase " ignorecase support
24
- set incsearch " incremental search
25
- set laststatus=2 " laststatus support (2)
26
- set lazyredraw " lazyredraw support
27
- set linebreak " linebreak support
28
- set modelines=0 " modelines support (0)
29
- set mouse=a " mouse support (all)
30
- set nobackup " nobackup support
31
- set nocompatible " nocompatible support
32
- set nocp " nocp support"
33
- set nofoldenable " nofoldenable support
34
- set nomodeline " nomodeline support
35
- set noswapfile " noswapfile support
36
- set nowb " nowb support"
37
- set nowrap " nowrap support
38
- set number " number support
39
- set ruler " ruler support"
40
- set scrolloff=3 " scrolloff support (3)
41
- set shiftwidth=2 " shiftwidth support (2)
42
- set showcmd " showcmd support
43
- set showmatch " showmatch support
44
- set showmode " showmode support"
45
- set showtabline=2 " showtabline support (2)
46
- set sidescroll=1 " sidescroll support (1)
47
- set sidescrolloff=15 " sidescrolloff support (15)
48
- set smartcase " smartcase support
49
- set smartindent " smartindent support
50
- set smarttab " smarttab support
51
- set softtabstop=2 " softtabstop support (2)
52
- set spell " spell support
53
- set spelllang=en " spelllang support (en)
54
- set switchbuf=useopen " switchbuf support (useopen)
55
- set t_Co=256 " t_Co support (256)
56
- set tabstop=2 " tabstop support (2)
57
- set textwidth=79 " textwidth support (79)
58
- set title " title support
59
- set ttyfast " ttyfast support
60
- set visualbell " visualbell support
61
- set wildignore+=*.png,*.jpg,*.gif " wildignore support (png, jpg, gif)
62
- set wildignore+=*DS_Store* " wildignore support (DS_Store)
63
- set wildignore+=*sass-cache* " wildignore support (sass-cache)
64
- set wildignore+=*vim/backups* " wildignore support (vim/backups)
65
- set wildignore+=log/** " wildignore support (log)
66
- set wildignore+=tmp/** " wildignore support (tmp)
67
- set wildignore+=vendor/cache/** " wildignore support (vendor/cache)
68
- set wildmenu " wildmenu support
69
- set wildmode=longest,list " wildmode support (longest,list)
70
- set winwidth=79 " winwidth support (79)
71
- set wrap " wrap support
72
- syntax enable " syntax support (enable)
73
- syntax on " syntax support (on)
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,6 +1,6 @@
1
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.468) - <https://dotfiles.io>
2
- # Made with ♥ in London, UK by @wwdseb
3
- # Copyright (c) 2015-2024. All rights reserved
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
4
  # License: MIT
5
5
 
6
6
  # WGET default options
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.468) - <https://dotfiles.io>
2
+ # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.469) - <https://dotfiles.io>
3
3
  # Made with ♥ in London, UK by @sebastienrousseau
4
- # Copyright (c) 2015-2024. All rights reserved
4
+ # Copyright (c) 2015-2025. All rights reserved
5
5
  # License: MIT
6
6
 
7
7
  ## 🆅🅰🆁🅸🅰🅱🅻🅴🆂 - Set Dotfiles variable.
@@ -16,7 +16,7 @@ USER_LANGUAGE="en_GB.UTF-8" # default language.
16
16
 
17
17
  ## 🅴🆇🅿🅾🆁🆃🆂 - Export the variables.
18
18
  export ARCHFLAGS="-arch ${OS_ARCH}" # archflags for the current machine.
19
- export DOTFILES_VERSION='0.2.468' # version of the dotfiles.
19
+ export DOTFILES_VERSION='0.2.469' # version of the dotfiles.
20
20
  export DOTFILES="${HOME}"/.dotfiles/lib # path to the cross plaform dotfiles.
21
21
  export HOSTNAME=${HOSTNAME} # hostname of the machine.
22
22
  export INPUTRC=${INPUTRC} # set INPUTRC (so that .inputrc is respected)
@@ -29,7 +29,6 @@ export OS_NAME # operating system name.
29
29
  export OS_VERSION # operating system version number.
30
30
  export SSL_CERT_FILE=${SSL_CERT_FILE} # set the SSL_CERT_FILE environment variable.
31
31
  export TERM=xterm-256color # default terminal color.
32
- # export USER # current user name.
33
32
 
34
33
  ## 🅻🅾🅰🅳🅴🆁🆂 - Load the dotfiles.
35
34
  for loaders in "${DOTFILES}"/*.sh; do
@@ -3,9 +3,9 @@
3
3
  ################################################################################
4
4
  # 🅳🅾🆃🅵🅸🅻🅴🆂
5
5
  # Script: configurations.sh
6
- # Version: 0.2.468
7
- # Author: @wwdseb
8
- # Copyright (c) 2015-2024. All rights reserved
6
+ # Version: 0.2.469
7
+ # Author: Sebastien Rousseau
8
+ # Copyright (c) 2015-2025. All rights reserved
9
9
  # Description: Script to manage shell configurations
10
10
  # Website: https://dotfiles.io
11
11
  # License: MIT
@@ -24,10 +24,22 @@
24
24
  # ShellCheck Documentation: https://github.com/koalaman/shellcheck
25
25
 
26
26
  load_custom_configurations() {
27
- for config in "${HOME}"/.dotfiles/lib/configurations/[!.#]*/*.sh; do
28
- # shellcheck source=/dev/null
29
- source "${config}"
30
- done
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
31
43
  }
32
44
 
33
45
  load_custom_configurations
@@ -1,15 +1,11 @@
1
- <!-- markdownlint-disable MD033 MD041 MD043 -->
2
-
3
1
  <img
4
2
  src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
5
3
  alt="dotfiles logo"
6
- width="261"
4
+ width="66"
7
5
  align="right"
8
6
  />
9
7
 
10
- <!-- markdownlint-enable MD033 MD041 -->
11
-
12
- # Dotfiles (v0.2.468)
8
+ # Dotfiles (v0.2.469)
13
9
 
14
10
  Simply designed to fit your shell life 🐚
15
11
 
@@ -24,54 +20,72 @@ The functions are organized by category and are listed below.
24
20
 
25
21
  <!-- markdownlint-disable MD013-->
26
22
 
27
- ### Navigation elements
28
-
29
- | Function | Description | Usage |
30
- | :--- | :--- | :--- |
31
- | `cdls` | Function to combine cd and ls. | `cdls <path>` |
32
- | `goto` | Function to change to the directory inputed. | `goto <path>` |
33
-
34
- ### Web Related Functions
35
-
36
- | Function | Description | Usage |
37
- | :--- | :--- | :--- |
38
- | `curlheader` | Function to return only a specific response header or all response headers for a given URL. | `curlheader <url> [<header>]` |
39
- | `curlstatus` | Function to return only the HTTP status code for a given URL. | `curlstatus <url>` |
40
- | `curltime` | Function to return only the time it took to execute a given URL. | `curltime <url>` |
41
- | `httpdebug` | Function to download a web page and show info on what took time. | `httpdebug <url>` |
42
- | `view-source` | Function to view the source code of a web page. | `view-source <url>` |
43
- | `whoisport` | Function to check if a port is open on a remote host. | `whoisport <host> <port>` |
44
-
45
- ### System Info and Utilities Functions
46
-
47
- | Function | Description | Usage |
48
- | :--- | :--- | :--- |
49
- | `environment` | Function to detect the current environment. | `environment` |
50
- | `extract` | Function to extract most know archives with one command. The supported file formats include: tar.bz2, tar.gz, bz2, rar, gz, tar, tbz2, tgz, zip, Z, and 7z. | `extract <file>` |
51
- | `filehead` | Function to display the first lines of a file. | `filehead <file>` |
52
- | `freespace` | Function to display the free space on the disk. | `freespace` |
53
- | `genpwd` | Function to generates a strong random password of 20 characters (similar to Apple) | `genpwd` |
54
- | `hidehiddenfiles` | Function to hide hidden files in Finder. | `hidehiddenfiles` |
55
- | `hostinfo` | Function to display useful host related information. | `hostinfo` |
56
- | `hstats` | Function to display Ze Shell history stats informaton (requires zsh). | `hstats` |
57
- | `keygen` | Function to generates SSH key pairs. | `keygen <name> <email>` |
58
- | `last` | List the modified files within 60 minutes. | `last` |
59
- | `logout` | Function to logout from OS X via the Terminal. | `logout` |
60
- | `lowercase` | Function to move filenames or directory names to lowercase. | `lowercase <file>` |
61
- | `matrix` | Function to Enable Matrix Effect in the terminal. | `matrix` |
62
- | `mount_read_only` | Function to mount a read-only disk image as read-write (OS X). | `mount_read_only <image>` |
63
- | `myproc` | Function to list processes owned by an user.` | `myproc` |
64
- | `prependpath` | Prepend $PATH without duplicates. | `prependpath <path>` |
65
- | `ql` | Function to open any file in MacOS Quicklook Preview mode. | `ql <file>` |
66
- | `rd` | Function to remove a directory and its files (OS X). | `rd <directory>` |
67
- | `remove_disk` | Spin down unneeded disk drives (OS X). | `remove_disk <disk>` |
68
- | `ren` | Function to rename files extension. | `ren <old> <new>` |
69
- | `showhiddenfiles` | Function to show hidden files in Finder. | `showhiddenfiles` |
70
- | `size` | Function to display the size of a file or total size of a directory. | `size <file>` |
71
- | `stopwatch` | Function to measure the time it takes to execute a program. | `stopwatch <program>` |
72
- | `uppercase` | Function to move filenames or directory names to uppercase. | `uppercase <file>` |
73
- | `vsc` | Function to open a file or folder in Visual Studio Code. | `vsc <file>` |
74
- | `zipf` | Function to zip a file. | `zipf <file>` |
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>` |
75
89
 
76
90
  <!-- markdownlint-enable MD013-->
77
91