@sebastienrousseau/dotfiles 0.2.463 β 0.2.465
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.
- package/README.md +118 -281
- package/dist/Makefile +2 -2
- package/dist/bin/constants.d.ts +2 -2
- package/dist/bin/constants.d.ts.map +1 -1
- package/dist/bin/constants.js +1 -1
- package/dist/bin/constants.js.map +1 -1
- package/dist/filesizes.txt +170 -144
- package/dist/lib/README.md +6 -1
- package/dist/lib/aliases/README.md +47 -0
- package/dist/lib/aliases/archives/README.md +39 -67
- package/dist/lib/aliases/archives/archives.aliases.sh +128 -60
- package/dist/lib/aliases/cd/README.md +26 -9
- package/dist/lib/aliases/cd/cd.aliases.sh +1 -4
- package/dist/lib/aliases/chmod/README.md +48 -13
- package/dist/lib/aliases/chmod/chmod.aliases.sh +1 -1
- package/dist/lib/aliases/clear/README.md +33 -38
- package/dist/lib/aliases/clear/clear.aliases.sh +35 -33
- package/dist/lib/aliases/configuration/README.md +26 -37
- package/dist/lib/aliases/configuration/configuration.aliases.sh +40 -36
- package/dist/lib/aliases/default/README.md +26 -52
- package/dist/lib/aliases/default/default.aliases.sh +105 -44
- package/dist/lib/aliases/dig/README.md +23 -40
- package/dist/lib/aliases/dig/dig.aliases.sh +26 -29
- package/dist/lib/aliases/disk-usage/README.md +32 -0
- package/dist/lib/aliases/disk-usage/du.aliases.sh +84 -0
- package/dist/lib/aliases/editor/README.md +35 -33
- package/dist/lib/aliases/editor/editor.aliases.sh +13 -39
- package/dist/lib/aliases/find/README.md +42 -29
- package/dist/lib/aliases/find/find.aliases.sh +52 -26
- package/dist/lib/aliases/gcloud/README.md +59 -148
- package/dist/lib/aliases/gcloud/gcloud.aliases.sh +327 -138
- package/dist/lib/aliases/git/README.md +149 -0
- package/dist/lib/aliases/git/git.aliases.sh +535 -131
- package/dist/lib/aliases/gnu/README.md +85 -0
- package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +143 -109
- package/dist/lib/aliases/heroku/README.md +426 -0
- package/dist/lib/aliases/heroku/heroku.aliases.sh +1047 -288
- package/dist/lib/aliases/interactive/README.md +43 -0
- package/dist/lib/aliases/interactive/interactive.aliases.sh +48 -9
- package/dist/lib/aliases/jekyll/README.md +37 -0
- package/dist/lib/aliases/jekyll/jekyll.aliases.sh +49 -10
- package/dist/lib/aliases/list/README.md +38 -0
- package/dist/lib/aliases/list/list.aliases.sh +81 -30
- package/dist/lib/aliases/macos/README.md +38 -0
- package/dist/lib/aliases/macos/macos.aliases.sh +65 -0
- package/dist/lib/aliases/make/README.md +28 -0
- package/dist/lib/aliases/make/make.aliases.sh +30 -10
- package/dist/lib/aliases/mkdir/README.md +26 -0
- package/dist/lib/aliases/mkdir/mkdir.aliases.sh +24 -8
- package/dist/lib/aliases/npm/README.md +37 -0
- package/dist/lib/aliases/npm/npm.aliases.sh +54 -17
- package/dist/lib/aliases/permission/README.md +43 -0
- package/dist/lib/aliases/permission/permission.aliases.sh +73 -0
- package/dist/lib/aliases/pnpm/README.md +49 -0
- package/dist/lib/aliases/pnpm/pnpm.aliases.sh +70 -36
- package/dist/lib/aliases/ps/README.md +25 -0
- package/dist/lib/aliases/ps/ps.aliases.sh +14 -6
- package/dist/lib/aliases/rsync/README.md +21 -0
- package/dist/lib/aliases/rsync/rsync.aliases.sh +10 -4
- package/dist/lib/aliases/rust/README.md +57 -0
- package/dist/lib/aliases/rust/rust.aliases.sh +116 -39
- package/dist/lib/aliases/subversion/README.md +62 -0
- package/dist/lib/aliases/subversion/subversion.aliases.sh +4 -3
- package/dist/lib/aliases/sudo/README.md +23 -0
- package/dist/lib/aliases/sudo/sudo.aliases.sh +15 -6
- package/dist/lib/aliases/tmux/README.md +27 -0
- package/dist/lib/aliases/tmux/tmux.aliases.sh +29 -10
- package/dist/lib/aliases/update/README.md +34 -0
- package/dist/lib/aliases/update/update.aliases.sh +57 -26
- package/dist/lib/aliases/uuid/README.md +20 -0
- package/dist/lib/aliases/uuid/uuid.aliases.sh +13 -4
- package/dist/lib/aliases/wget/README.md +23 -0
- package/dist/lib/aliases/wget/wget.aliases.sh +15 -6
- package/dist/lib/aliases.sh +4 -3
- package/dist/lib/configurations/README.md +13 -2
- package/dist/lib/configurations/bash/bashrc +4 -3
- package/dist/lib/configurations/curl/curlrc +2 -2
- package/dist/lib/configurations/default/color.sh +3 -2
- package/dist/lib/configurations/default/constants.sh +4 -3
- package/dist/lib/configurations/default/editor.sh +3 -2
- package/dist/lib/configurations/default/prompt.sh +3 -2
- package/dist/lib/configurations/input/inputrc +2 -2
- package/dist/lib/configurations/nano/nanorc +2 -2
- package/dist/lib/configurations/profile/profile +2 -2
- package/dist/lib/configurations/tmux/default +2 -2
- package/dist/lib/configurations/tmux/display +6 -2
- package/dist/lib/configurations/tmux/linux +2 -2
- package/dist/lib/configurations/tmux/navigation +2 -2
- package/dist/lib/configurations/tmux/panes +2 -2
- package/dist/lib/configurations/tmux/theme +3 -3
- package/dist/lib/configurations/tmux/tmux +2 -2
- package/dist/lib/configurations/tmux/vi +2 -2
- package/dist/lib/configurations/vim/vimrc +1 -1
- package/dist/lib/configurations/wget/wgetrc +2 -2
- package/dist/lib/configurations/zsh/zshrc +2 -2
- package/dist/lib/configurations.sh +4 -3
- package/dist/lib/functions/README.md +69 -2
- package/dist/lib/functions/cdls.sh +3 -2
- package/dist/lib/functions/curlheader.sh +3 -2
- package/dist/lib/functions/curlstatus.sh +17 -0
- package/dist/lib/functions/curltime.sh +4 -3
- package/dist/lib/functions/encode64.sh +3 -2
- package/dist/lib/functions/environment.sh +3 -2
- package/dist/lib/functions/extract.sh +3 -2
- package/dist/lib/functions/filehead.sh +1 -1
- package/dist/lib/functions/freespace.sh +21 -0
- package/dist/lib/functions/genpwd.sh +33 -7
- package/dist/lib/functions/goto.sh +3 -2
- package/dist/lib/functions/hidehiddenfiles.sh +3 -2
- package/dist/lib/functions/hostinfo.sh +3 -2
- package/dist/lib/functions/hstats.sh +3 -2
- package/dist/lib/functions/httpdebug.sh +3 -2
- package/dist/lib/functions/keygen.sh +20 -13
- package/dist/lib/functions/last.sh +3 -2
- package/dist/lib/functions/logout.sh +3 -2
- package/dist/lib/functions/lowercase.sh +3 -2
- package/dist/lib/functions/matrix.sh +34 -8
- package/dist/lib/functions/mount_read_only.sh +3 -2
- package/dist/lib/functions/myproc.sh +4 -3
- package/dist/lib/functions/prependpath.sh +3 -2
- package/dist/lib/functions/ql.sh +3 -2
- package/dist/lib/functions/rd.sh +3 -2
- package/dist/lib/functions/remove_disk.sh +3 -2
- package/dist/lib/functions/ren.sh +3 -2
- package/dist/lib/functions/showhiddenfiles.sh +3 -2
- package/dist/lib/functions/size.sh +3 -2
- package/dist/lib/functions/stopwatch.sh +4 -3
- package/dist/lib/functions/uppercase.sh +3 -2
- package/dist/lib/functions/view-source.sh +3 -2
- package/dist/lib/functions/vscode.sh +3 -2
- package/dist/lib/functions/whoisport.sh +3 -2
- package/dist/lib/functions/zipf.sh +3 -2
- package/dist/lib/functions.sh +4 -3
- package/dist/lib/history.sh +20 -26
- package/dist/lib/paths/ant/ant.paths.sh +9 -10
- package/dist/lib/paths/default/default.paths.sh +3 -2
- package/dist/lib/paths/homebrew/homebrew.paths.sh +3 -2
- package/dist/lib/paths/java/java.paths.sh +3 -2
- package/dist/lib/paths/maven/maven.paths.sh +12 -13
- package/dist/lib/paths/node/node.paths.sh +3 -2
- package/dist/lib/paths/nvm/nvm.paths.sh +3 -2
- package/dist/lib/paths/pnpm/pnpm.paths.sh +3 -2
- package/dist/lib/paths/python/python.paths.sh +3 -2
- package/dist/lib/paths/ruby/ruby.paths.sh +3 -2
- package/dist/lib/paths/tmux/tmux.paths.sh +3 -7
- package/dist/lib/paths.sh +4 -3
- package/dist/scripts/backup.sh +3 -2
- package/dist/scripts/banner.sh +3 -2
- package/dist/scripts/build.sh +3 -2
- package/dist/scripts/clean.sh +3 -2
- package/dist/scripts/compile.sh +3 -2
- package/dist/scripts/copy.sh +3 -2
- package/dist/scripts/dotfiles.sh +3 -2
- package/dist/scripts/download.sh +3 -2
- package/dist/scripts/help.sh +3 -2
- package/dist/scripts/ssh.sh +3 -2
- package/dist/scripts/unpack.sh +3 -2
- package/package.json +7 -7
- package/dist/lib/aliases/du/README.md +0 -35
- package/dist/lib/aliases/du/du.aliases.sh +0 -37
- package/dist/lib/functions/changediskpwd.tmp +0 -19
- package/dist/lib/functions/code.tmp +0 -18
- package/dist/lib/functions/countdown.tmp +0 -34
- package/dist/lib/functions/headers.tmp +0 -4
- package/dist/lib/functions/history-all.tmp +0 -8
- package/dist/lib/functions/macos.sh +0 -47
- package/dist/lib/functions/mcd.tmp +0 -19
- package/dist/lib/functions/print.tmp +0 -14
- package/dist/lib/functions/rm.tmp +0 -14
- package/dist/lib/functions/rps.tmp +0 -104
- package/dist/lib/functions/trash.tmp +0 -14
- package/dist/lib/functions/tree.tmp +0 -14
- package/dist/lib/functions/uuidgen.tmp +0 -28
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
# Made with β₯ in London, UK by @
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
2
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
3
3
|
# Copyright (c) 2015-2023. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -10,7 +11,7 @@ DF=".dotfiles/" # Dotfiles.
|
|
|
10
11
|
DF_DIR="${HOME}/.dotfiles/" # Dotfiles directory.
|
|
11
12
|
DF_BACKUPDIR="${HOME}/dotfiles_backup/" # Backup directory.
|
|
12
13
|
DF_DOWNLOADDIR="${HOME}/Downloads" # Download directory.
|
|
13
|
-
DF_VERSION="0.2.
|
|
14
|
+
DF_VERSION="0.2.465" # Dotfiles Version number.
|
|
14
15
|
# DF_TIMESTAMP="$(date +%Y-%m-%d_%H-%M-%S)" # Timestamp for backup directory.
|
|
15
16
|
|
|
16
17
|
export DF
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
# Made with β₯ in London, UK by @
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
2
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
3
3
|
# Copyright (c) 2015-2023. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
# Made with β₯ in London, UK by @
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
2
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
3
3
|
# Copyright (c) 2015-2023. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
# Made with β₯ in London, UK by @
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
2
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
3
3
|
# Copyright (c) 2015-2023. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
# Made with β₯ in London, UK by @
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
2
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
3
3
|
# Copyright (c) 2015-2023. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
2
|
+
|
|
3
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
|
+
|
|
3
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
6
|
+
|
|
4
7
|
# License: MIT
|
|
5
8
|
|
|
6
9
|
## π
³π
Έππ
Ώπ
»π
°π
|
|
10
|
+
|
|
7
11
|
bind -n C-l send-keys C-l \; run 'sleep 0.2' \; clear-history # clear both screen and history
|
|
8
12
|
set -g aggressive-resize on # resize panes automatically when window is resized
|
|
9
13
|
set -g base-index 1 # start windows numbering at 1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
# Made with β₯ in London, UK by @
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
2
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
3
3
|
# Copyright (c) 2015-2023. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
# Made with β₯ in London, UK by @
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
2
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
3
3
|
# Copyright (c) 2015-2023. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
# Made with β₯ in London, UK by @
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
2
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
3
3
|
# Copyright (c) 2015-2023. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
# Made with β₯ in London, UK by @
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
2
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
3
3
|
# Copyright (c) 2015-2023. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -22,7 +22,7 @@ set -g status-justify centre # Status bar justification (left, right, centre, ab
|
|
|
22
22
|
set -g status-left-length 50 # Status bar left length
|
|
23
23
|
set -g status-right-length 50 # Status bar right length
|
|
24
24
|
set -g status-right "#[fg=#FFFFFF] #[bg=#14222A] β¬ #I #[bg=#007ACC] #H #[bg=#EB0000] %_d %B %I:%M%p "
|
|
25
|
-
set -g window-status-current-format "#[bg=#2D1681]Dotfiles (v0.2.
|
|
25
|
+
set -g window-status-current-format "#[bg=#2D1681]Dotfiles (v0.2.465)" # Current window status format
|
|
26
26
|
set -g window-status-current-style "bg=#EB0000" # Current window status style
|
|
27
27
|
set -g window-status-separator "" # Window status separator
|
|
28
28
|
set-window-option -g clock-mode-colour "#FFFFFF" # Clock mode color
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
# Made with β₯ in London, UK by @
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
2
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
3
3
|
# Copyright (c) 2015-2023. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
2
2
|
|
|
3
|
-
# Made with β₯ in London, UK by @
|
|
3
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
4
|
|
|
5
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
-
# Made with β₯ in London, UK by @
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
2
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
3
3
|
# Copyright (c) 2015-2023. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
4
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
@@ -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.
|
|
19
|
+
export DOTFILES_VERSION='0.2.465' # 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)
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
3
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
4
|
-
# Description: Sets configurations for the current shell.
|
|
5
6
|
# License: MIT
|
|
6
7
|
# Script: configurations.sh
|
|
7
|
-
# Version: 0.2.
|
|
8
|
+
# Version: 0.2.465
|
|
8
9
|
# Website: https://dotfiles.io
|
|
9
10
|
|
|
10
11
|
## π
²π
Ύπ
½π
΅π
Έπ
Άπππ
°ππ
Έπ
Ύπ
½π
|
|
@@ -1,3 +1,70 @@
|
|
|
1
|
-
|
|
1
|
+
<!-- markdownlint-disable MD033 MD041 -->
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<img src="https://kura.pro/dotfiles/v2/images/logos/dotfiles.svg"
|
|
4
|
+
alt="dotfiles logo" width="261" align="right" />
|
|
5
|
+
|
|
6
|
+
<!-- markdownlint-enable MD033 MD041 -->
|
|
7
|
+
|
|
8
|
+
# Dotfiles (v0.2.465)
|
|
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
|
+
### Navigation elements
|
|
22
|
+
|
|
23
|
+
| Function | Description | Usage |
|
|
24
|
+
| :--- | :--- | :--- |
|
|
25
|
+
| `cdls` | Function to combine cd and ls. | `cdls <path>` |
|
|
26
|
+
| `goto` | Function to change to the directory inputed. | `goto <path>` |
|
|
27
|
+
|
|
28
|
+
### Web Related Functions
|
|
29
|
+
|
|
30
|
+
| Function | Description | Usage |
|
|
31
|
+
| :--- | :--- | :--- |
|
|
32
|
+
| `curlheader` | Function to return only a specific response header or all response headers for a given URL. | `curlheader <url> [<header>]` |
|
|
33
|
+
| `curlstatus` | Function to return only the HTTP status code for a given URL. | `curlstatus <url>` |
|
|
34
|
+
| `curltime` | Function to return only the time it took to execute a given URL. | `curltime <url>` |
|
|
35
|
+
| `httpdebug` | Function to download a web page and show info on what took time. | `httpdebug <url>` |
|
|
36
|
+
| `view-source` | Function to view the source code of a web page. | `view-source <url>` |
|
|
37
|
+
| `whoisport` | Function to check if a port is open on a remote host. | `whoisport <host> <port>` |
|
|
38
|
+
|
|
39
|
+
### System Info and Utilities Functions
|
|
40
|
+
|
|
41
|
+
| Function | Description | Usage |
|
|
42
|
+
| :--- | :--- | :--- |
|
|
43
|
+
| `environment` | Function to detect the current environment. | `environment` |
|
|
44
|
+
| `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>` |
|
|
45
|
+
| `filehead` | Function to display the first lines of a file. | `filehead <file>` |
|
|
46
|
+
| `freespace` | Function to display the free space on the disk. | `freespace` |
|
|
47
|
+
| `genpwd` | Function to generates a strong random password of 20 characters (similar to Apple) | `genpwd` |
|
|
48
|
+
| `hidehiddenfiles` | Function to hide hidden files in Finder. | `hidehiddenfiles` |
|
|
49
|
+
| `hostinfo` | Function to display useful host related information. | `hostinfo` |
|
|
50
|
+
| `hstats` | Function to display Ze Shell history stats informaton (requires zsh). | `hstats` |
|
|
51
|
+
| `keygen` | Function to generates SSH key pairs. | `keygen <name> <email>` |
|
|
52
|
+
| `last` | List the modified files within 60 minutes. | `last` |
|
|
53
|
+
| `logout` | Function to logout from OS X via the Terminal. | `logout` |
|
|
54
|
+
| `lowercase` | Function to move filenames or directory names to lowercase. | `lowercase <file>` |
|
|
55
|
+
| `matrix` | Function to Enable Matrix Effect in the terminal. | `matrix` |
|
|
56
|
+
| `mount_read_only` | Function to mount a read-only disk image as read-write (OS X). | `mount_read_only <image>` |
|
|
57
|
+
| `myproc` | Function to list processes owned by an user.` | `myproc` |
|
|
58
|
+
| `prependpath` | Prepend $PATH without duplicates. | `prependpath <path>` |
|
|
59
|
+
| `ql` | Function to open any file in MacOS Quicklook Preview mode. | `ql <file>` |
|
|
60
|
+
| `rd` | Function to remove a directory and its files (OS X). | `rd <directory>` |
|
|
61
|
+
| `remove_disk` | Spin down unneeded disk drives (OS X). | `remove_disk <disk>` |
|
|
62
|
+
| `ren` | Function to rename files extension. | `ren <old> <new>` |
|
|
63
|
+
| `showhiddenfiles` | Function to show hidden files in Finder. | `showhiddenfiles` |
|
|
64
|
+
| `size` | Function to display the size of a file or total size of a directory. | `size <file>` |
|
|
65
|
+
| `stopwatch` | Function to measure the time it takes to execute a program. | `stopwatch <program>` |
|
|
66
|
+
| `uppercase` | Function to move filenames or directory names to uppercase. | `uppercase <file>` |
|
|
67
|
+
| `vsc` | Function to open a file or folder in Visual Studio Code. | `vsc <file>` |
|
|
68
|
+
| `zipf` | Function to zip a file. | `zipf <file>` |
|
|
69
|
+
|
|
70
|
+
[banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
5
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
6
|
+
# License: MIT
|
|
7
|
+
|
|
8
|
+
## curlstatus: Function to return only the HTTP status code for a given URL.
|
|
9
|
+
## usage: curlstatus $url
|
|
10
|
+
curlstatus() {
|
|
11
|
+
# shellcheck disable=SC1083
|
|
12
|
+
echo "curl -k -s -o /dev/null -w \"%{http_code}\" \$1:"
|
|
13
|
+
curl -k -s -o /dev/null -w "%{http_code}" "$1"
|
|
14
|
+
}
|
|
15
|
+
alias cs='curlstatus' # Alias for curlstatus
|
|
16
|
+
alias cst='curlstatus' # Alias for curlstatus
|
|
17
|
+
alias httpcode='curlstatus' # Alias for curlstatus
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -8,7 +9,7 @@
|
|
|
8
9
|
#
|
|
9
10
|
# Description: Mac OS X Dotfiles - Simply designed to fit your shell life.
|
|
10
11
|
#
|
|
11
|
-
# Made with β₯ in London, UK by @
|
|
12
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
12
13
|
# Copyright (c) 2015-2023. All rights reserved
|
|
13
14
|
# Licensed under the MIT license
|
|
14
15
|
#
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
5
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
6
|
+
# License: MIT
|
|
7
|
+
|
|
8
|
+
# Erases purgeable disk space with 0s on the selected disk
|
|
9
|
+
freespace() {
|
|
10
|
+
if [[ -z "$1" ]]; then
|
|
11
|
+
echo "Usage: $0 <disk>"
|
|
12
|
+
echo "Example: $0 /dev/disk1s1"
|
|
13
|
+
echo
|
|
14
|
+
echo "Possible disks:"
|
|
15
|
+
df -h | awk 'NR == 1 || /^\/dev\/disk/' || true
|
|
16
|
+
return 1
|
|
17
|
+
fi
|
|
18
|
+
|
|
19
|
+
echo "Cleaning purgeable files from disk: $1 ...."
|
|
20
|
+
diskutil secureErase freespace 0 "$1"
|
|
21
|
+
}
|
|
@@ -1,15 +1,41 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
5
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
6
|
+
# License: MIT
|
|
7
|
+
|
|
8
|
+
# Function to generates a strong random password of 27 characters
|
|
9
|
+
#!/usr/bin/env bash
|
|
10
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - https://dotfiles.io
|
|
3
11
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
12
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
13
|
# License: MIT
|
|
6
14
|
|
|
7
15
|
# genpwd: Function to generates a strong random password of 20 characters (similar to Apple)
|
|
8
16
|
genpwd() {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
# Define the special characters
|
|
18
|
+
SPECIAL="!@#$%^&*()+=[]{};':,.?~"
|
|
19
|
+
|
|
20
|
+
# Generate 3 random strings of length 8
|
|
21
|
+
m=$(openssl rand -base64 32 | tr -dc '[:alnum:]' | fold -w 8 | head -n 1 || true)
|
|
22
|
+
a=$(openssl rand -base64 32 | tr -dc '[:alnum:]' | fold -w 8 | head -n 1 || true)
|
|
23
|
+
c=$(openssl rand -base64 32 | tr -dc '[:alnum:]' | fold -w 8 | head -n 1 || true)
|
|
24
|
+
|
|
25
|
+
# Choose random positions for the special characters
|
|
26
|
+
m_pos=$((RANDOM % 8))
|
|
27
|
+
a_pos=$((RANDOM % 8))
|
|
28
|
+
c_pos=$((RANDOM % 8))
|
|
29
|
+
|
|
30
|
+
# Choose a random special character from the list
|
|
31
|
+
special_char1="${SPECIAL:$((RANDOM % ${#SPECIAL})):1}"
|
|
32
|
+
special_char2="${SPECIAL:$((RANDOM % ${#SPECIAL})):1}"
|
|
33
|
+
special_char3="${SPECIAL:$((RANDOM % ${#SPECIAL})):1}"
|
|
34
|
+
|
|
35
|
+
# Combine the strings with the special character to form the password
|
|
36
|
+
pwd="${m:0:${m_pos}}${special_char1}${m:${m_pos}}-${a:0:${a_pos}}${special_char2}${a:${a_pos}}-${c:0:${c_pos}}${special_char3}${c:${c_pos}}"
|
|
37
|
+
|
|
38
|
+
echo "[INFO] The password has been copied to the clipboard: ${pwd}"
|
|
39
|
+
echo "${pwd}" | pbcopy | pbpaste || true
|
|
40
|
+
|
|
15
41
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,24 +1,31 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
7
8
|
# keygen: Function to generates SSH key
|
|
8
9
|
keygen() {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
if [[ $# -eq 0 ]]; then
|
|
11
|
+
echo "What's the name of the Key (no space please)? "
|
|
12
|
+
read -r name
|
|
13
|
+
echo "What's the email associated with it? "
|
|
14
|
+
read -r email
|
|
15
|
+
elif [[ $# -eq 1 ]]; then
|
|
16
|
+
name="$1"
|
|
17
|
+
echo "What's the email associated with the key? "
|
|
18
|
+
read -r email
|
|
19
|
+
elif [[ $# -eq 2 ]]; then
|
|
20
|
+
name="$1"
|
|
21
|
+
email="$2"
|
|
22
|
+
else
|
|
23
|
+
echo "Usage: keygen [name] [email]"
|
|
24
|
+
return 1
|
|
25
|
+
fi
|
|
15
26
|
|
|
16
27
|
ssh-keygen -t rsa -f ~/.ssh/id_rsa_"${name}" -C "${email}"
|
|
17
|
-
|
|
18
28
|
ssh-add ~/.ssh/id_rsa_"${name}"
|
|
19
|
-
|
|
20
29
|
pbcopy <~/.ssh/id_rsa_"${name}".pub
|
|
21
|
-
|
|
22
|
-
echo "[INFO] SSH Key id_rsa_$(name).pub copied in your clipboard"
|
|
23
|
-
|
|
30
|
+
echo "[INFO] SSH Key id_rsa_${name}.pub copied in your clipboard"
|
|
24
31
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
#
|
|
2
|
+
|
|
3
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.465) - <https://dotfiles.io>
|
|
4
|
+
# Made with β₯ in London, UK by @wwdseb
|
|
4
5
|
# Copyright (c) 2015-2023. All rights reserved
|
|
5
6
|
# License: MIT
|
|
6
7
|
|