@sebastienrousseau/dotfiles 0.2.459 β 0.2.460
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 +5 -5
- package/dist/Makefile +13 -13
- package/dist/bin/backup.js.map +1 -1
- package/dist/bin/constants.d.ts +2 -2
- package/dist/bin/constants.js +1 -1
- package/dist/bin/download.js.map +1 -1
- package/dist/bin/transfer.js.map +1 -1
- package/dist/bin/unpack.js.map +1 -1
- package/dist/filesizes.txt +63 -63
- package/dist/lib/aliases/default/default.aliases.sh +1 -1
- package/dist/lib/aliases/gcloud/gcloud.aliases.sh +116 -117
- package/dist/lib/aliases/git/git.aliases.sh +2 -43
- package/dist/lib/aliases/heroku/heroku.aliases.sh +673 -673
- package/dist/lib/aliases/jekyll/jekyll.aliases.sh +26 -26
- package/dist/lib/aliases/pnpm/pnpm.aliases.sh +36 -36
- package/dist/lib/aliases/subversion/subversion.aliases.sh +80 -80
- package/dist/lib/aliases/tmux/tmux.aliases.sh +1 -1
- package/dist/lib/aliases.sh +1 -1
- package/dist/lib/configurations/bash/bashrc +2 -2
- package/dist/lib/configurations/curl/curlrc +1 -1
- package/dist/lib/configurations/default/color.sh +1 -1
- package/dist/lib/configurations/default/constants.sh +6 -4
- package/dist/lib/configurations/default/editor.sh +1 -1
- package/dist/lib/configurations/default/prompt.sh +1 -1
- package/dist/lib/configurations/input/inputrc +1 -1
- package/dist/lib/configurations/nano/nanorc +1 -1
- package/dist/lib/configurations/profile/profile +1 -1
- package/dist/lib/configurations/tmux/default +1 -1
- package/dist/lib/configurations/tmux/display +1 -1
- package/dist/lib/configurations/tmux/linux +1 -1
- package/dist/lib/configurations/tmux/navigation +1 -1
- package/dist/lib/configurations/tmux/panes +1 -1
- package/dist/lib/configurations/tmux/theme +2 -2
- package/dist/lib/configurations/tmux/tmux +1 -1
- package/dist/lib/configurations/tmux/vi +1 -1
- package/dist/lib/configurations/vim/vimrc +1 -1
- package/dist/lib/configurations/wget/wgetrc +1 -1
- package/dist/lib/configurations/zsh/zshrc +2 -2
- package/dist/lib/configurations.sh +1 -1
- package/dist/lib/exit.sh +1 -1
- package/dist/lib/functions/cdls.sh +1 -1
- package/dist/lib/functions/changediskpwd.tmp +1 -3
- package/dist/lib/functions/code.tmp +1 -3
- package/dist/lib/functions/countdown.tmp +1 -1
- package/dist/lib/functions/curlheader.sh +2 -2
- package/dist/lib/functions/curltime.sh +3 -4
- package/dist/lib/functions/encode64.sh +1 -1
- package/dist/lib/functions/environment.sh +2 -3
- package/dist/lib/functions/extract.sh +1 -1
- package/dist/lib/functions/genpwd.sh +6 -6
- package/dist/lib/functions/goto.sh +1 -1
- package/dist/lib/functions/hidehiddenfiles.sh +1 -1
- package/dist/lib/functions/history-all.tmp +1 -1
- package/dist/lib/functions/hostinfo.sh +1 -1
- package/dist/lib/functions/hstats.sh +2 -2
- package/dist/lib/functions/httpdebug.sh +1 -1
- package/dist/lib/functions/keygen.sh +1 -1
- package/dist/lib/functions/last.sh +1 -1
- package/dist/lib/functions/logout.sh +1 -1
- package/dist/lib/functions/lowercase.sh +16 -17
- package/dist/lib/functions/macos.sh +14 -15
- package/dist/lib/functions/matrix.sh +1 -1
- package/dist/lib/functions/mcd.sh +1 -1
- package/dist/lib/functions/mount_read_only.sh +1 -1
- package/dist/lib/functions/myproc.sh +1 -1
- package/dist/lib/functions/prependpath.sh +2 -2
- package/dist/lib/functions/print.tmp +1 -1
- package/dist/lib/functions/ql.sh +1 -1
- package/dist/lib/functions/rd.sh +3 -3
- package/dist/lib/functions/remove_disk.sh +2 -2
- package/dist/lib/functions/ren.sh +1 -1
- package/dist/lib/functions/rm.tmp +1 -1
- package/dist/lib/functions/rps.tmp +1 -1
- package/dist/lib/functions/showhiddenfiles.sh +1 -1
- package/dist/lib/functions/size.sh +1 -1
- package/dist/lib/functions/stopwatch.sh +1 -1
- package/dist/lib/functions/trash.tmp +1 -1
- package/dist/lib/functions/tree.tmp +1 -1
- package/dist/lib/functions/uppercase.sh +16 -17
- package/dist/lib/functions/view-source.sh +2 -3
- package/dist/lib/functions/vscode.sh +1 -2
- package/dist/lib/functions/whoisport.sh +1 -1
- package/dist/lib/functions/zipf.sh +2 -2
- package/dist/lib/functions.sh +1 -1
- package/dist/lib/history.sh +22 -22
- package/dist/lib/paths/ant/ant.paths.sh +1 -1
- package/dist/lib/paths/default/default.paths.sh +10 -10
- package/dist/lib/paths/homebrew/homebrew.paths.sh +1 -1
- package/dist/lib/paths/java/java.paths.sh +1 -1
- package/dist/lib/paths/maven/maven.paths.sh +1 -1
- package/dist/lib/paths/node/node.paths.sh +1 -1
- package/dist/lib/paths/nvm/nvm.paths.sh +1 -1
- package/dist/lib/paths/pnpm/pnpm.paths.sh +1 -1
- package/dist/lib/paths/python/python.paths.sh +3 -3
- package/dist/lib/paths/ruby/ruby.paths.sh +1 -1
- package/dist/lib/paths/tmux/tmux.paths.sh +1 -1
- package/dist/lib/paths.sh +1 -1
- package/dist/scripts/backup.sh +8 -3
- package/dist/scripts/banner.sh +1 -1
- package/dist/scripts/{assemble.sh β build.sh} +10 -3
- package/dist/scripts/clean.sh +1 -1
- package/dist/scripts/compile.sh +1 -1
- package/dist/scripts/copy.sh +2 -2
- package/dist/scripts/dotfiles.sh +1 -1
- package/dist/scripts/download.sh +14 -4
- package/dist/scripts/help.sh +3 -3
- package/dist/scripts/unpack.sh +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.460) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -16,5 +16,5 @@ curlheader() {
|
|
|
16
16
|
fi
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
alias clh='curlheader'
|
|
19
|
+
alias clh='curlheader' # Alias for curlheader
|
|
20
20
|
alias crlhd='curlheader' # Alias for curlheader
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.460) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
## get the timings for a curl to a URL
|
|
16
16
|
## usage: curltime $url
|
|
17
17
|
curltime() {
|
|
18
|
-
curl -w "\n\
|
|
18
|
+
curl -w "\n\
|
|
19
19
|
ββββββββββββββββββββββββββββββββ\n\
|
|
20
20
|
βTime appconnect: %{time_appconnect}s β\n\
|
|
21
21
|
βTime connect: %{time_connect}s β\n\
|
|
@@ -26,6 +26,5 @@ curl -w "\n\
|
|
|
26
26
|
ββββββββββββββββββββββββββββββββ\n\
|
|
27
27
|
Time total: %{time_total}s\n\n" -o /dev/null -s "$1"
|
|
28
28
|
}
|
|
29
|
-
alias clh='curlheader'
|
|
29
|
+
alias clh='curlheader' # Alias for curlheader
|
|
30
30
|
alias crlhd='curlheader' # Alias for curlheader
|
|
31
|
-
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.460) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
# environment: Function to detect the current environment
|
|
7
|
-
environment
|
|
8
|
-
{
|
|
7
|
+
environment() {
|
|
9
8
|
# Define a fallback `OS`
|
|
10
9
|
LOCAL_OS="other"
|
|
11
10
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.460) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
# genpwd: Function to generates a strong random password of 20 characters (similar to Apple)
|
|
7
7
|
genpwd() {
|
|
8
|
-
m=$(openssl rand -base64 32 | cut -c 1-6)
|
|
9
|
-
a=$(openssl rand -base64 32 | cut -c 1-6)
|
|
10
|
-
c=$(openssl rand -base64 32 | cut -c 1-6)
|
|
11
|
-
pwd="$m-$a-$c"
|
|
8
|
+
m=$(openssl rand -base64 32 | cut -c 1-6)
|
|
9
|
+
a=$(openssl rand -base64 32 | cut -c 1-6)
|
|
10
|
+
c=$(openssl rand -base64 32 | cut -c 1-6)
|
|
11
|
+
pwd="$m-$a-$c"
|
|
12
12
|
echo "[INFO] The password has been copied to the clipboard: $pwd"
|
|
13
|
-
echo "$pwd"| pbcopy | pbpaste
|
|
13
|
+
echo "$pwd" | pbcopy | pbpaste
|
|
14
14
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.460) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
# hstats: Function to display Ze Shell history stats informaton
|
|
7
7
|
hstats() {
|
|
8
|
-
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl |
|
|
8
|
+
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n20
|
|
9
9
|
}
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.460) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
# lowercase: Function to move filenames or directory names to lowercase
|
|
7
|
-
lowercase()
|
|
8
|
-
{
|
|
7
|
+
lowercase() {
|
|
9
8
|
if [[ "$#" != 1 ]]; then
|
|
10
9
|
echo "[ERROR] The filename or directory name is incorrect." >&2
|
|
11
10
|
return 1
|
|
12
11
|
fi
|
|
13
|
-
for file
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
12
|
+
for file; do
|
|
13
|
+
filename=${file##*/}
|
|
14
|
+
case "${filename}" in
|
|
15
|
+
*/*) [[ "dirname" = "${file%/*}" ]] ;;
|
|
16
|
+
*) dirname=. ;;
|
|
17
|
+
esac
|
|
18
|
+
nf=$(echo "${filename}" | tr '[:upper:]' '[:lower:]')
|
|
19
|
+
newname="${dirname}/${nf}"
|
|
20
|
+
if [[ "${nf}" != "${filename}" ]]; then
|
|
21
|
+
mv "${file}" "${newname}"
|
|
22
|
+
echo "[INFO] Renaming ${file} to lowercase: ${newname}"
|
|
23
|
+
else
|
|
24
|
+
echo "[ERROR] The operation is not valid, ${file} has not changed."
|
|
25
|
+
fi
|
|
27
26
|
done
|
|
28
27
|
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.460) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
# π
Όπ
°π
²π
Ύπ π
Ώπ
»ππ
Άπ
Έπ
½π
Ά π
°π
»π
Έπ
°ππ
΄π
|
|
7
7
|
|
|
8
|
-
alias clds='find . -type f -name "*.DS_Store" -ls -delete'
|
|
8
|
+
alias clds='find . -type f -name "*.DS_Store" -ls -delete' # clds: Recursively delete .DS_Store files.
|
|
9
9
|
alias clls='/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user && killall Finder' # clls: Clean up LaunchServices to remove duplicates in the 'Open With' menu.
|
|
10
|
-
alias emptytrash='rm -rf ~/.Trash/*'
|
|
11
|
-
alias finderHideHidden='defaults write com.apple.finder ShowAllFiles FALSE'
|
|
12
|
-
alias finderShowHidden='defaults write com.apple.finder ShowAllFiles TRUE'
|
|
13
|
-
alias iphone='open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app'
|
|
10
|
+
alias emptytrash='rm -rf ~/.Trash/*' # Empty the Trash on all mounted volumes and the main HDD.
|
|
11
|
+
alias finderHideHidden='defaults write com.apple.finder ShowAllFiles FALSE' # finderHideHidden: Hide hidden files in Finder.
|
|
12
|
+
alias finderShowHidden='defaults write com.apple.finder ShowAllFiles TRUE' # finderShowHidden: Show hidden files in Finder.
|
|
13
|
+
alias iphone='open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app' # iphone: Open the device simulators.
|
|
14
14
|
alias noDS='defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true'
|
|
15
|
-
alias ofd='open $PWD'
|
|
16
|
-
alias purge='rm -rf ~/library/Developer/Xcode/DerivedData/*'
|
|
15
|
+
alias ofd='open $PWD' # Open the current directory in a Finder window.
|
|
16
|
+
alias purge='rm -rf ~/library/Developer/Xcode/DerivedData/*' # purge: Purging Xcode DerivedData.
|
|
17
17
|
alias screensaverDesktop='/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background' # screensaverDesktop: Run a screensaver on the Desktop.
|
|
18
|
-
alias vp='diskutil verifyPermissions /'
|
|
19
|
-
alias vv='diskutil verifyvolume /'
|
|
20
|
-
alias xcode='open -a xcode'
|
|
18
|
+
alias vp='diskutil verifyPermissions /' # vp: Verify macOS Permissions.
|
|
19
|
+
alias vv='diskutil verifyvolume /' # vv: Verify macOS Volume.
|
|
20
|
+
alias xcode='open -a xcode' # xcode: Launch XCode app in macOS.
|
|
21
21
|
|
|
22
22
|
# π
Όπ
°π
²π
Ύπ π
Ώπ
»ππ
Άπ
Έπ
½π
Ά π
΅ππ
½π
²ππ
Έπ
Ύπ
½π
|
|
23
23
|
|
|
24
24
|
# Erases purgeable disk space with 0s on the selected disk
|
|
25
|
-
freespace(){
|
|
25
|
+
freespace() {
|
|
26
26
|
if [[ -z "$1" ]]; then
|
|
27
27
|
echo "Usage: $0 <disk>"
|
|
28
28
|
echo "Example: $0 /dev/disk1s1"
|
|
@@ -38,10 +38,9 @@ freespace(){
|
|
|
38
38
|
|
|
39
39
|
mp() {
|
|
40
40
|
# Don't let Preview.app steal focus if the man page doesn't exist
|
|
41
|
-
man -w "$@"
|
|
41
|
+
man -w "$@" >/dev/null 2>&1 || man -t "$@" | open -f -a Preview || man "$@"
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
ql() {
|
|
45
|
-
((
|
|
45
|
+
(($# > 0)) && qlmanage -p "$*" &>/dev/null &
|
|
46
46
|
}
|
|
47
|
-
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.460) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
# prependpath: Prepend $PATH without duplicates
|
|
15
15
|
prependpath() {
|
|
16
|
-
if ! echo "${PATH}" | tr ":" "\n" | grep -qx "$1"
|
|
16
|
+
if ! echo "${PATH}" | tr ":" "\n" | grep -qx "$1"; then
|
|
17
17
|
PATH="$1:${PATH}"
|
|
18
18
|
fi
|
|
19
19
|
}
|
package/dist/lib/functions/ql.sh
CHANGED
package/dist/lib/functions/rd.sh
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.460) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -10,6 +10,6 @@ rd() {
|
|
|
10
10
|
return 1
|
|
11
11
|
fi
|
|
12
12
|
echo "[INFO] The operation completed successfully, directory listing of $1:"
|
|
13
|
-
rm -rf "$1" || exit
|
|
14
|
-
ls -lh
|
|
13
|
+
rm -rf "$1" || exit
|
|
14
|
+
ls -lh
|
|
15
15
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.460) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
# remove_disk: spin down unneeded disk
|
|
7
|
-
remove_disk
|
|
7
|
+
remove_disk() {
|
|
8
8
|
diskutil eject "$1"
|
|
9
9
|
}
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.460) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
# uppercase: Function to move filenames or directory names to uppercase
|
|
7
|
-
uppercase()
|
|
8
|
-
{
|
|
7
|
+
uppercase() {
|
|
9
8
|
if [[ "$#" != 1 ]]; then
|
|
10
9
|
echo "[ERROR] The filename or directory name is incorrect." >&2
|
|
11
10
|
return 1
|
|
12
11
|
fi
|
|
13
|
-
for file
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
12
|
+
for file; do
|
|
13
|
+
filename=${file##*/}
|
|
14
|
+
case "${filename}" in
|
|
15
|
+
*/*) dirname=${file%/*} ;;
|
|
16
|
+
*) dirname=. ;;
|
|
17
|
+
esac
|
|
18
|
+
nf=$(echo "${filename}" | tr '[:upper:]' '[:lower:]')
|
|
19
|
+
newname="${dirname}/${nf}"
|
|
20
|
+
if [[ "${nf}" != "${filename}" ]]; then
|
|
21
|
+
mv "${file}" "${newname}"
|
|
22
|
+
echo "[INFO] Renaming ${file} to uppercase: ${newname}"
|
|
23
|
+
else
|
|
24
|
+
echo "[ERROR] The operation is not valid, ${file} has not changed."
|
|
25
|
+
fi
|
|
27
26
|
done
|
|
28
27
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.460) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
# view-source: Function to view the source of a website.
|
|
7
|
-
view-source
|
|
8
|
-
|
|
7
|
+
view-source() { /usr/bin/curl -L -k -A 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0' "$@"; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.460) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -28,4 +28,3 @@ fi
|
|
|
28
28
|
alias vs="code"
|
|
29
29
|
alias vsc="code"
|
|
30
30
|
alias vscode="code"
|
|
31
|
-
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.460) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -10,5 +10,5 @@ function zipf() {
|
|
|
10
10
|
return 1
|
|
11
11
|
fi
|
|
12
12
|
echo "[INFO] Creating the ZIP archive folder $1.zip"
|
|
13
|
-
zip -r "$1".zip "$1"
|
|
13
|
+
zip -r "$1".zip "$1"
|
|
14
14
|
}
|
package/dist/lib/functions.sh
CHANGED
package/dist/lib/history.sh
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.460) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -78,28 +78,28 @@ if [[ -n "${ZSH_VERSION}" ]]; then
|
|
|
78
78
|
elif [[ -n "${BASH_VERSION}" ]]; then
|
|
79
79
|
# echo "Running shell is bash"
|
|
80
80
|
# Shopt settings
|
|
81
|
-
shopt -s autocd
|
|
82
|
-
shopt -s cdspell
|
|
83
|
-
shopt -s checkhash
|
|
84
|
-
shopt -s checkjobs
|
|
85
|
-
shopt -s checkwinsize
|
|
86
|
-
shopt -s cmdhist
|
|
87
|
-
shopt -s dirspell
|
|
88
|
-
shopt -s dotglob
|
|
89
|
-
shopt -s extglob
|
|
90
|
-
shopt -s globstar
|
|
91
|
-
shopt -s histappend
|
|
92
|
-
shopt -s histverify
|
|
93
|
-
shopt -s hostcomplete
|
|
94
|
-
shopt -s lithist
|
|
95
|
-
shopt -s huponexit
|
|
81
|
+
shopt -s autocd # autocd - automatically cd to a directory when it is the only argument to a command
|
|
82
|
+
shopt -s cdspell # cdspell - spell check the path when changing directories.
|
|
83
|
+
shopt -s checkhash # checkhash - check hash table for commands before running them.
|
|
84
|
+
shopt -s checkjobs # checkjobs - check for stopped jobs after each command and report them to the user.
|
|
85
|
+
shopt -s checkwinsize # checkwinsize - check the window size after each command and, if necessary, update the values of LINES and COLUMNS.
|
|
86
|
+
shopt -s cmdhist # cmdhist - save multi-line commands as one entry in history.
|
|
87
|
+
shopt -s dirspell # dirspell - spell check the path when changing directories.
|
|
88
|
+
shopt -s dotglob # dotglob - include dotfiles in globbing.
|
|
89
|
+
shopt -s extglob # extglob - extended globbing.
|
|
90
|
+
shopt -s globstar # globstar - allow ** to match multiple directories.
|
|
91
|
+
shopt -s histappend # histappend - append to the history file, don't overwrite it.
|
|
92
|
+
shopt -s histverify # histverify - verify commands from history before executing them.
|
|
93
|
+
shopt -s hostcomplete # hostcomplete - complete hostnames when using the ssh command.
|
|
94
|
+
shopt -s lithist # lithist - save multi-line commands as one entry in history.
|
|
95
|
+
shopt -s huponexit # huponexit - send SIGHUP to jobs when the shell exits.
|
|
96
96
|
shopt -s no_empty_cmd_completion # no_empty_cmd_completion - don't complete empty commands.
|
|
97
|
-
shopt -s nocaseglob
|
|
98
|
-
shopt -s nocasematch
|
|
99
|
-
shopt -s nullglob
|
|
100
|
-
shopt -s progcomp
|
|
101
|
-
shopt -s promptvars
|
|
102
|
-
shopt -s sourcepath
|
|
97
|
+
shopt -s nocaseglob # nocaseglob - case insensitive globbing.
|
|
98
|
+
shopt -s nocasematch # nocasematch - case insensitive matching.
|
|
99
|
+
shopt -s nullglob # nullglob - if no matches are found, the pattern expands to nothing.
|
|
100
|
+
shopt -s progcomp # progcomp - programmable completion.
|
|
101
|
+
shopt -s promptvars # promptvars - allow prompt strings to contain shell variables.
|
|
102
|
+
shopt -s sourcepath # sourcepath - search the PATH for the directory containing a sourced script before using the current directory.
|
|
103
103
|
|
|
104
104
|
else
|
|
105
105
|
echo "Unsupported shell: ${SHELL}"
|