@sebastienrousseau/dotfiles 0.2.462 β 0.2.464
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 +2 -2
- package/dist/bin/constants.d.ts +2 -2
- package/dist/bin/constants.js +1 -1
- package/dist/filesizes.txt +109 -87
- package/dist/lib/aliases/archives/README.md +84 -0
- package/dist/lib/aliases/archives/archives.aliases.sh +63 -19
- package/dist/lib/aliases/cd/README.md +46 -0
- package/dist/lib/aliases/cd/cd.aliases.sh +42 -0
- package/dist/lib/aliases/chmod/README.md +70 -0
- package/dist/lib/aliases/chmod/chmod.aliases.sh +73 -0
- package/dist/lib/aliases/clear/README.md +38 -0
- package/dist/lib/aliases/clear/clear.aliases.sh +36 -19
- package/dist/lib/aliases/configuration/README.md +46 -0
- package/dist/lib/aliases/configuration/configuration.aliases.sh +39 -8
- package/dist/lib/aliases/default/README.md +62 -0
- package/dist/lib/aliases/default/default.aliases.sh +59 -35
- package/dist/lib/aliases/dig/README.md +50 -0
- package/dist/lib/aliases/dig/dig.aliases.sh +37 -10
- package/dist/lib/aliases/du/README.md +35 -0
- package/dist/lib/aliases/du/du.aliases.sh +37 -0
- package/dist/lib/aliases/editor/README.md +47 -0
- package/dist/lib/aliases/editor/editor.aliases.sh +36 -3
- package/dist/lib/aliases/find/README.md +29 -0
- package/dist/lib/aliases/find/find.aliases.sh +29 -19
- package/dist/lib/aliases/gcloud/README.md +148 -0
- package/dist/lib/aliases/gcloud/gcloud.aliases.sh +142 -120
- package/dist/lib/aliases/git/git.aliases.sh +128 -522
- package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +116 -0
- package/dist/lib/aliases/heroku/heroku.aliases.sh +288 -1028
- package/dist/lib/aliases/interactive/interactive.aliases.sh +2 -2
- package/dist/lib/aliases/jekyll/jekyll.aliases.sh +9 -47
- package/dist/lib/aliases/list/list.aliases.sh +30 -28
- package/dist/lib/aliases/make/make.aliases.sh +2 -2
- package/dist/lib/aliases/mkdir/mkdir.aliases.sh +2 -2
- package/dist/lib/aliases/npm/npm.aliases.sh +2 -2
- package/dist/lib/aliases/pnpm/pnpm.aliases.sh +3 -3
- package/dist/lib/aliases/ps/ps.aliases.sh +3 -3
- package/dist/lib/aliases/rsync/rsync.aliases.sh +6 -4
- package/dist/lib/aliases/rust/rust.aliases.sh +4 -4
- package/dist/lib/aliases/subversion/subversion.aliases.sh +3 -3
- package/dist/lib/aliases/sudo/sudo.aliases.sh +2 -2
- package/dist/lib/aliases/tmux/tmux.aliases.sh +3 -3
- package/dist/lib/aliases/update/update.aliases.sh +7 -7
- package/dist/lib/aliases/uuid/uuid.aliases.sh +3 -3
- package/dist/lib/aliases/wget/wget.aliases.sh +3 -3
- package/dist/lib/aliases.sh +6 -3
- package/dist/lib/configurations/bash/bashrc +4 -3
- package/dist/lib/configurations/curl/curlrc +2 -2
- package/dist/lib/configurations/default/color.sh +2 -2
- package/dist/lib/configurations/default/constants.sh +3 -3
- package/dist/lib/configurations/default/editor.sh +2 -2
- package/dist/lib/configurations/default/prompt.sh +2 -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 +2 -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 +5 -2
- package/dist/lib/configurations/vim/vimrc +1 -1
- package/dist/lib/configurations/wget/wgetrc +2 -2
- package/dist/lib/configurations/zsh/zshrc +4 -3
- package/dist/lib/configurations.sh +6 -3
- package/dist/lib/functions/cdls.sh +2 -2
- package/dist/lib/functions/changediskpwd.tmp +3 -3
- package/dist/lib/functions/code.tmp +3 -3
- package/dist/lib/functions/countdown.tmp +2 -2
- package/dist/lib/functions/curlheader.sh +2 -2
- package/dist/lib/functions/curltime.sh +3 -3
- package/dist/lib/functions/encode64.sh +2 -2
- package/dist/lib/functions/environment.sh +2 -2
- package/dist/lib/functions/extract.sh +2 -2
- package/dist/lib/functions/genpwd.sh +2 -2
- package/dist/lib/functions/goto.sh +2 -2
- package/dist/lib/functions/hidehiddenfiles.sh +2 -2
- package/dist/lib/functions/history-all.tmp +2 -2
- package/dist/lib/functions/hostinfo.sh +2 -2
- package/dist/lib/functions/hstats.sh +2 -2
- package/dist/lib/functions/httpdebug.sh +2 -2
- package/dist/lib/functions/keygen.sh +2 -2
- package/dist/lib/functions/last.sh +2 -2
- package/dist/lib/functions/logout.sh +2 -2
- package/dist/lib/functions/lowercase.sh +2 -2
- package/dist/lib/functions/macos.sh +2 -2
- package/dist/lib/functions/matrix.sh +30 -5
- package/dist/lib/functions/mcd.tmp +2 -2
- package/dist/lib/functions/mount_read_only.sh +2 -2
- package/dist/lib/functions/myproc.sh +2 -2
- package/dist/lib/functions/prependpath.sh +2 -2
- package/dist/lib/functions/print.tmp +2 -2
- package/dist/lib/functions/ql.sh +2 -2
- package/dist/lib/functions/rd.sh +2 -2
- package/dist/lib/functions/remove_disk.sh +2 -2
- package/dist/lib/functions/ren.sh +2 -2
- package/dist/lib/functions/rm.tmp +2 -2
- package/dist/lib/functions/rps.tmp +2 -2
- package/dist/lib/functions/showhiddenfiles.sh +2 -2
- package/dist/lib/functions/size.sh +2 -2
- package/dist/lib/functions/stopwatch.sh +2 -2
- package/dist/lib/functions/trash.tmp +2 -2
- package/dist/lib/functions/tree.tmp +2 -2
- package/dist/lib/functions/uppercase.sh +2 -2
- package/dist/lib/functions/uuidgen.tmp +1 -1
- package/dist/lib/functions/view-source.sh +2 -2
- package/dist/lib/functions/vscode.sh +2 -2
- package/dist/lib/functions/whoisport.sh +2 -2
- package/dist/lib/functions/zipf.sh +2 -2
- package/dist/lib/functions.sh +6 -3
- package/dist/lib/history.sh +30 -33
- package/dist/lib/paths/ant/ant.paths.sh +8 -10
- package/dist/lib/paths/default/default.paths.sh +2 -2
- package/dist/lib/paths/homebrew/homebrew.paths.sh +2 -2
- package/dist/lib/paths/java/java.paths.sh +5 -4
- package/dist/lib/paths/maven/maven.paths.sh +11 -12
- package/dist/lib/paths/node/node.paths.sh +2 -2
- package/dist/lib/paths/nvm/nvm.paths.sh +2 -2
- package/dist/lib/paths/pnpm/pnpm.paths.sh +2 -2
- package/dist/lib/paths/python/python.paths.sh +21 -16
- package/dist/lib/paths/ruby/ruby.paths.sh +2 -2
- package/dist/lib/paths/tmux/tmux.paths.sh +2 -7
- package/dist/lib/paths.sh +6 -3
- package/dist/scripts/backup.sh +2 -2
- package/dist/scripts/banner.sh +2 -2
- package/dist/scripts/build.sh +2 -2
- package/dist/scripts/clean.sh +2 -2
- package/dist/scripts/compile.sh +2 -2
- package/dist/scripts/copy.sh +2 -2
- package/dist/scripts/dotfiles.sh +2 -2
- package/dist/scripts/download.sh +2 -2
- package/dist/scripts/help.sh +2 -2
- package/dist/scripts/ssh.sh +2 -2
- package/dist/scripts/unpack.sh +2 -2
- package/package.json +7 -7
- package/dist/lib/aliases/diskusage/diskusage.aliases.sh +0 -16
- package/dist/lib/aliases/gnu/gnucoreutls-aliases.sh +0 -111
- package/dist/lib/aliases/navigation/navigation.aliases.sh +0 -23
- package/dist/lib/aliases/permission/permission.aliases.sh +0 -28
package/dist/lib/history.sh
CHANGED
|
@@ -1,53 +1,50 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π
|
|
3
|
-
#
|
|
4
|
-
# Copyright (c) 2015-
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π
|
|
3
|
+
# Author: Sebastien Rousseau
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
|
+
# Description: Sets history options for the current shell.
|
|
5
6
|
# License: MIT
|
|
7
|
+
# Script: history.sh
|
|
8
|
+
# Version: 0.2.464
|
|
9
|
+
# Website: https://dotfiles.io
|
|
6
10
|
|
|
7
|
-
|
|
11
|
+
# History wrapper
|
|
8
12
|
function dotfiles_history {
|
|
9
|
-
local
|
|
10
|
-
zparseopts -E c=
|
|
13
|
+
local clear_flag list_flag
|
|
14
|
+
zparseopts -E c=clear_flag l=list_flag
|
|
11
15
|
|
|
12
|
-
if [[ -n
|
|
13
|
-
#
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
if [[ -n ${clear_flag} ]]; then
|
|
17
|
+
# If -c flag is provided, clobber the history file and remove duplicates
|
|
18
|
+
fc -W
|
|
19
|
+
fc -R
|
|
20
|
+
echo "%F{magenta}History file deleted and duplicates removed. Reload the session to see its effects.%f" >&2
|
|
21
|
+
elif [[ -n ${list_flag} ]] || [[ $# -ne 0 ]]; then
|
|
22
|
+
# If -l flag is provided or arguments are passed, run as if calling `fc` directly
|
|
23
|
+
fc_output=$(builtin fc "$@")
|
|
24
|
+
printf '%s\n' "$(tput setaf 5)$(tput sgr0)$(tput setaf 2)$(echo "${fc_output//$'\e'/$(tput setaf 2)}" | sed -E "s/^([[:space:]]*[0-9]+)/$(tput setaf 2)\1$(tput sgr0)/")" || true
|
|
19
25
|
else
|
|
20
|
-
#
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
builtin fc -l 1
|
|
25
|
-
fi
|
|
26
|
+
# Otherwise, ensure the history file has no duplicates and show all history events starting from 1
|
|
27
|
+
fc -W # Remove duplicates from the history file
|
|
28
|
+
fc_output=$(builtin fc -li 1)
|
|
29
|
+
printf '%s\n' "$(tput setaf 5)$(tput sgr0)$(tput setaf 2)$(echo "${fc_output//$'\e'/$(tput setaf 2)}" | sed -E "s/^([[:space:]]*[0-9]+)/$(tput setaf 2)\1$(tput sgr0)/")" || true
|
|
26
30
|
fi
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
# Timestamp format
|
|
30
|
-
case ${HIST_STAMPS
|
|
34
|
+
case "${HIST_STAMPS:-}" in
|
|
31
35
|
"mm/dd/yyyy") alias history='dotfiles_history -f' ;;
|
|
32
36
|
"dd.mm.yyyy") alias history='dotfiles_history -E' ;;
|
|
33
37
|
"yyyy-mm-dd") alias history='dotfiles_history -i' ;;
|
|
34
38
|
"") alias history='dotfiles_history' ;;
|
|
35
|
-
*) alias history='dotfiles_history -t $HIST_STAMPS' ;;
|
|
39
|
+
*) alias history='dotfiles_history -t ${HIST_STAMPS}' ;;
|
|
36
40
|
esac
|
|
37
41
|
|
|
38
|
-
#
|
|
39
|
-
export
|
|
42
|
+
export HISTFILE="${HOME}/.zsh_history" # History file
|
|
43
|
+
export HISTCONTROL="ignoreboth" # Ignore duplicate commands and commands that start with a space
|
|
44
|
+
export HISTSIZE="10000" # Number of commands to save in memory
|
|
45
|
+
export SAVEHIST="1000" # Number of commands to save on disk
|
|
40
46
|
|
|
41
|
-
|
|
42
|
-
export HISTCONTROL=ignoreboth
|
|
43
|
-
|
|
44
|
-
# Number of histories saved in memory
|
|
45
|
-
export HISTSIZE=10000
|
|
46
|
-
|
|
47
|
-
# Number of histories saved in history file
|
|
48
|
-
export SAVEHIST=1000
|
|
49
|
-
|
|
50
|
-
if [[ -n "${ZSH_VERSION}" ]]; then
|
|
47
|
+
if [[ -n "${ZSH_VERSION:-}" ]]; then
|
|
51
48
|
# echo "Running shell is zsh"
|
|
52
49
|
# Specifying some history options
|
|
53
50
|
setopt always_to_end # Move cursor to the end of a completed word.
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
7
|
## π
°π
½π π
·π
Ύπ
Όπ
΄
|
|
8
|
-
if [[
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
ANT_HOME="/usr/share/ant/"
|
|
13
|
-
fi
|
|
14
|
-
export ANT_HOME
|
|
15
|
-
export PATH="${ANT_HOME}:${PATH}"
|
|
8
|
+
if [[ "${OSTYPE}" == "darwin"* ]]; then
|
|
9
|
+
ANT_HOME="/opt/homebrew/Cellar/ant/"
|
|
10
|
+
elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
|
|
11
|
+
ANT_HOME="/usr/share/ant/"
|
|
16
12
|
fi
|
|
13
|
+
export ANT_HOME
|
|
14
|
+
export PATH="${ANT_HOME}/bin:${PATH}"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
7
|
## π
Ώπ
°ππ
·π
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
7
|
## π
·π
Ύπ
Όπ
΄π
±ππ
΄π π
Ώπ
°ππ
·π
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
7
|
## π
Ήπ
°π
π
°_π
·π
Ύπ
Όπ
΄
|
|
8
8
|
# Set JAVA_HOME
|
|
9
9
|
if [[ "${OSTYPE}" == "darwin"* ]]; then
|
|
10
10
|
export CPPFLAGS="-I/opt/homebrew/opt/openjdk/include"
|
|
11
|
-
export
|
|
12
|
-
|
|
11
|
+
export JAVA_HOME="/opt/homebrew/Cellar/openjdk@11/11.0.18/libexec/openjdk.jdk/Contents/Home"
|
|
12
|
+
export PATH="/opt/homebrew/opt/openjdk@11/bin:$PATH"
|
|
13
13
|
elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
|
|
14
14
|
JAVA_HOME="/usr/lib/jvm/java-11-openjdk-arm64/"
|
|
15
|
+
|
|
15
16
|
fi
|
|
16
17
|
export JAVA_HOME
|
|
17
18
|
export JRE_HOME="${JAVA_HOME}"/jre
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
7
|
## π
Όπ
°π
π
΄π
½ π
·π
Ύπ
Όπ
΄
|
|
8
|
-
if [[
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
M2_HOME="${MAVEN_HOME}"
|
|
15
|
-
export MAVEN_HOME M2_HOME
|
|
16
|
-
export PATH="${MAVEN_HOME}:${PATH}"
|
|
17
|
-
export MAVEN_OPTS="-Xms1g -Xmx1g"
|
|
8
|
+
if [[ "${OSTYPE}" == "darwin"* ]]; then
|
|
9
|
+
export M2_HOME=/opt/homebrew/Cellar/maven/3.9.0/libexec
|
|
10
|
+
export PATH=${PATH}:${M2_HOME}/bin
|
|
11
|
+
MAVEN_HOME=/opt/homebrew/Cellar/maven/3.9.0/libexec
|
|
12
|
+
elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
|
|
13
|
+
MAVEN_HOME="/usr/share/maven/"
|
|
18
14
|
fi
|
|
15
|
+
export MAVEN_HOME
|
|
16
|
+
export PATH="${MAVEN_HOME}:${PATH}"
|
|
17
|
+
export MAVEN_OPTS="-Xms1g -Xmx1g"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
7
|
## π
½π
Ύπ
³π
΄ π
Ώπ
°ππ
·
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
7
|
## π
½π
π
Ό π
Ώπ
°ππ
·
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
7
|
## π
Ώπ
½π
Ώπ
Ό π
Ώπ
°ππ
·π
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
# π
Ώπππ
·π
Ύπ
½ π
Ώπ
°ππ
·
|
|
8
8
|
if [[ "${OSTYPE}" == "darwin"* ]]; then
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
if [[ -d "/Library/Frameworks/Python.framework/Versions/3.11/bin" ]]; then
|
|
10
|
+
export PATH="/Library/Frameworks/Python.framework/Versions/3.11/bin:${PATH}"
|
|
11
|
+
export PYTHONHOME="/Library/Frameworks/Python.framework/Versions/3.11"
|
|
12
|
+
fi
|
|
12
13
|
elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
if [[ -d "/usr/bin/python3.11" ]]; then
|
|
15
|
+
export PATH="/usr/bin:${PATH}"
|
|
16
|
+
export PYTHONHOME="/usr"
|
|
17
|
+
fi
|
|
16
18
|
fi
|
|
17
19
|
|
|
18
20
|
# Encoding[:errors] used for stdin/stdout/stderr.
|
|
@@ -21,10 +23,13 @@ export PYTHONIOENCODING='UTF-8'
|
|
|
21
23
|
# If set to 1, enables the UTF-8 mode.
|
|
22
24
|
export PYTHONUTF8=1
|
|
23
25
|
|
|
24
|
-
#
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
#
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
# π
Ώπππ
·π
Ύπ
½ π
°π
»π
Έπ
°ππ
΄π - Python aliases
|
|
27
|
+
if command -v 'python3' >/dev/null; then
|
|
28
|
+
alias python=python3 # Default python version
|
|
29
|
+
alias python3=python3.11 # Default python3 version
|
|
30
|
+
alias pip=pip3 # Use pip3 as default pip version
|
|
31
|
+
alias py=python # Shorthand for 'python' command
|
|
32
|
+
alias ipy=ipython # Shorthand for 'ipython' command
|
|
33
|
+
alias pep8=autopep8 # Use autopep8 as a tool for formatting Python code
|
|
34
|
+
alias pydoc='python -m pydoc' # Shorthand for 'python -m pydoc' command
|
|
35
|
+
fi
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
7
|
## πππ
±π π
·π
Ύπ
Όπ
΄
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
7
|
## ππ
Όππ π
Ώπ
°ππ
·π
|
|
@@ -9,8 +9,3 @@ if command -v 'tmux' >/dev/null; then
|
|
|
9
9
|
TMUX_PATH=$(command -v tmux)
|
|
10
10
|
export TMUX_PATH
|
|
11
11
|
fi
|
|
12
|
-
|
|
13
|
-
if [[ -z "${TMUX}" ]] && [[ ${UID} != 0 ]]; then
|
|
14
|
-
tmux kill-session -t 2>/dev/null
|
|
15
|
-
tmux
|
|
16
|
-
fi
|
package/dist/lib/paths.sh
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
#
|
|
3
|
-
#
|
|
4
|
-
#
|
|
2
|
+
# Author: Sebastien Rousseau
|
|
3
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
4
|
+
# Description: Sets paths for the current shell.
|
|
5
5
|
# License: MIT
|
|
6
|
+
# Script: paths.sh
|
|
7
|
+
# Version: 0.2.464
|
|
8
|
+
# Website: https://dotfiles.io
|
|
6
9
|
|
|
7
10
|
## π
Ώπ
°ππ
·π
|
|
8
11
|
|
package/dist/scripts/backup.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
7
|
## π
π
°ππ
Έπ
°π
±π
»π
΄π - Set Dotfiles variable.
|
package/dist/scripts/banner.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
7
|
## π
±π
°π
½π
½π
΄π - Display banner.
|
package/dist/scripts/build.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
7
|
# shellcheck disable=SC1091
|
package/dist/scripts/clean.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
7
|
## π
²π
»π
΄π
°π
½ - Clean up.
|
package/dist/scripts/compile.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
7
|
## π
²π
Ύπ
Όπ
Ώπ
Έπ
»π
΄ π
³π
Ύππ
΅π
Έπ
»π
΄π - Compile dotfiles.
|
package/dist/scripts/copy.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
7
|
## π
²π
Ύπ
Ώπ - Copy the dotfiles on your system.
|
package/dist/scripts/dotfiles.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
7
|
## π
Έπ
Όπ
Ώπ
Ύπππ - Importing constants and functions.
|
package/dist/scripts/download.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
7
|
## π
π
°ππ
Έπ
°π
±π
»π
΄π - Set Dotfiles variable.
|
package/dist/scripts/help.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
7
|
## π
π
°ππ
Έπ
°π
±π
»π
΄π - Set Dotfiles variable.
|
package/dist/scripts/ssh.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
7
|
## πππ
· - Generate a new SSH key and add it to the ssh-agent
|
package/dist/scripts/unpack.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
3
|
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-
|
|
4
|
+
# Copyright (c) 2015-2023. All rights reserved
|
|
5
5
|
# License: MIT
|
|
6
6
|
|
|
7
7
|
## π
π
°ππ
Έπ
°π
±π
»π
΄π - Set Dotfiles variable.
|
package/package.json
CHANGED
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
],
|
|
27
27
|
"description": "Dotfiles - A set of macOS / Linux and Windows configuration files - Simply designed to fit your shell life.",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@types/node": "^
|
|
30
|
-
"compressing": "^1.
|
|
29
|
+
"@types/node": "^18.15.0",
|
|
30
|
+
"compressing": "^1.8.0",
|
|
31
31
|
"filesizes": "^0.1.2",
|
|
32
|
-
"fs-extra": "
|
|
33
|
-
"husky": "^8.0.
|
|
32
|
+
"fs-extra": "11.1.0",
|
|
33
|
+
"husky": "^8.0.3",
|
|
34
34
|
"jsmin": "^1.0.1",
|
|
35
|
-
"rimraf": "^
|
|
36
|
-
"typescript": "^4.
|
|
35
|
+
"rimraf": "^4.4.0",
|
|
36
|
+
"typescript": "^4.9.5"
|
|
37
37
|
},
|
|
38
38
|
"directories": {
|
|
39
39
|
"bin": "./bin",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"url": "git@github.com:sebastienrousseau/dotfiles.git"
|
|
72
72
|
},
|
|
73
73
|
"types": "./dist/bin/index.d.ts",
|
|
74
|
-
"version": "0.2.
|
|
74
|
+
"version": "0.2.464",
|
|
75
75
|
"scripts": {
|
|
76
76
|
"build": "pnpm run backup && pnpm run copy && pnpm run assemble",
|
|
77
77
|
"backup": "chmod 755 \"./scripts/backup.sh\" && sh ./scripts/backup.sh backup",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.462) - https://dotfiles.io
|
|
3
|
-
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-2022. All rights reserved
|
|
5
|
-
# License: MIT
|
|
6
|
-
|
|
7
|
-
# π
³π
Έππ
Ί πππ
°π
Άπ
΄ π
°π
»π
Έπ
°ππ
΄π
|
|
8
|
-
if command -v du &>/dev/null; then
|
|
9
|
-
alias du="du -h" # du: Display the disk usage of the current directory.
|
|
10
|
-
alias du1='du -hxd 1 | sort -h' # du1: File size of files and directories in current directory.
|
|
11
|
-
alias ducks="du -cks * .*| sort -rn | head -n 10" # ducks: Top 10 largest files and directories in current directory.
|
|
12
|
-
alias duh='du' # duh: File size of files and directories.
|
|
13
|
-
alias dus='du -hs *' # dus: File size human readable output sorted by size.
|
|
14
|
-
alias dusym="du * -hsLc" # dusym: File size of files and directories in current directory including symlinks.
|
|
15
|
-
alias dut='dus' # dut: Total file size of current directory.
|
|
16
|
-
fi
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.462)' - https://dotfiles.io
|
|
3
|
-
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c)' 2015-2022. All rights reserved
|
|
5
|
-
# License: MIT
|
|
6
|
-
|
|
7
|
-
# π
Άπ
½π π
²π
Ύππ
΄πππ
Έπ
»π π
°π
»π
Έπ
°ππ
΄π
|
|
8
|
-
alias awk=awk
|
|
9
|
-
alias b2sum=b2sum
|
|
10
|
-
alias base32=base32
|
|
11
|
-
alias base64=base64
|
|
12
|
-
alias basename=basename
|
|
13
|
-
alias basenc=basenc
|
|
14
|
-
alias cat=cat
|
|
15
|
-
alias chcon=chcon
|
|
16
|
-
alias chown=chown
|
|
17
|
-
alias chroot=chroot
|
|
18
|
-
alias cksum=cksum
|
|
19
|
-
alias comm=comm
|
|
20
|
-
alias cp=cp
|
|
21
|
-
alias csplit=csplit
|
|
22
|
-
alias cut=cut
|
|
23
|
-
alias date=date
|
|
24
|
-
alias dd=dd
|
|
25
|
-
alias df=df
|
|
26
|
-
alias dir=dir
|
|
27
|
-
alias dircolors=dircolors
|
|
28
|
-
alias dirname=dirname
|
|
29
|
-
alias diff=diff
|
|
30
|
-
alias du=du
|
|
31
|
-
alias echo=echo
|
|
32
|
-
alias env=env
|
|
33
|
-
alias expand=expand
|
|
34
|
-
alias expr=expr
|
|
35
|
-
alias factor=factor
|
|
36
|
-
alias false=false
|
|
37
|
-
alias fmt=fmt
|
|
38
|
-
alias fold=fold
|
|
39
|
-
alias head=head
|
|
40
|
-
alias hostid=hostid
|
|
41
|
-
alias id=id
|
|
42
|
-
alias install=install
|
|
43
|
-
alias join=join
|
|
44
|
-
alias link=link
|
|
45
|
-
alias ln=ln
|
|
46
|
-
alias loname=loname
|
|
47
|
-
alias ls=ls
|
|
48
|
-
alias make=make
|
|
49
|
-
alias md5sum=md5sum
|
|
50
|
-
alias mkdir=mkdir
|
|
51
|
-
alias mkfifo=mkfifo
|
|
52
|
-
alias mknod=mknod
|
|
53
|
-
alias mktemp=mktemp
|
|
54
|
-
alias mv=mv
|
|
55
|
-
alias nice=nice
|
|
56
|
-
alias nl=nl
|
|
57
|
-
alias nohup=nohup
|
|
58
|
-
alias nproc=nproc
|
|
59
|
-
alias numfmt=numfmt
|
|
60
|
-
alias od=od
|
|
61
|
-
alias paste=paste
|
|
62
|
-
alias patch=patch
|
|
63
|
-
alias pathchk=pathchk
|
|
64
|
-
alias pinky=pinky
|
|
65
|
-
alias pr=pr
|
|
66
|
-
alias printenv=printenv
|
|
67
|
-
alias printf=printf
|
|
68
|
-
alias ptx=ptx
|
|
69
|
-
alias pwd=pwd
|
|
70
|
-
alias readlink=readlink
|
|
71
|
-
alias realpath=realpath
|
|
72
|
-
alias rm=rm
|
|
73
|
-
alias rmdir=rmdir
|
|
74
|
-
alias runcon=runcon
|
|
75
|
-
alias seq=seq
|
|
76
|
-
alias sha1sum=sha1sum
|
|
77
|
-
alias sha224sum=sha224sum
|
|
78
|
-
alias sha256sum=sha256sum
|
|
79
|
-
alias sha384sum=sha384sum
|
|
80
|
-
alias sha512sum=sha512sum
|
|
81
|
-
alias shred=shred
|
|
82
|
-
alias shuf=shuf
|
|
83
|
-
alias sleep=sleep
|
|
84
|
-
alias sort=sort
|
|
85
|
-
alias split=split
|
|
86
|
-
alias stat=stat
|
|
87
|
-
alias stdbuf=stdbuf
|
|
88
|
-
alias stty=stty
|
|
89
|
-
alias sum=sum
|
|
90
|
-
alias sync=sync
|
|
91
|
-
alias tac=tac
|
|
92
|
-
alias tail=tail
|
|
93
|
-
alias tar=nutar
|
|
94
|
-
alias tee=tee
|
|
95
|
-
alias test=test
|
|
96
|
-
alias timeout=timeout
|
|
97
|
-
alias touch=touch
|
|
98
|
-
alias tr=tr
|
|
99
|
-
alias true=true
|
|
100
|
-
alias truncate=truncate
|
|
101
|
-
alias tsort=tsort
|
|
102
|
-
alias tty=tty
|
|
103
|
-
alias unexpand=unexpand
|
|
104
|
-
alias uniq=uniq
|
|
105
|
-
alias unlink=unlink
|
|
106
|
-
alias users=users
|
|
107
|
-
alias vdir=vdir
|
|
108
|
-
alias wc=wc
|
|
109
|
-
alias who=who
|
|
110
|
-
alias whoami=whoami
|
|
111
|
-
alias yes=yes
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.462) - https://dotfiles.io
|
|
3
|
-
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-2022. All rights reserved
|
|
5
|
-
# License: MIT
|
|
6
|
-
|
|
7
|
-
# π
½π
°π
π
Έπ
Άπ
°ππ
Έπ
Ύπ
½ π
°π
»π
Έπ
°ππ
΄π
|
|
8
|
-
alias -- -='cd -' # -: Shortcut to go to previous directory.
|
|
9
|
-
alias .....='cd ../../../..' # .....: Shortcut to go to great-great-grandparent directory.
|
|
10
|
-
alias ....='cd ../../..' # ....: Shortcut to go to great-grandparent directory.
|
|
11
|
-
alias ...='cd ../..' # ...: Shortcut to go to grandparent directory.
|
|
12
|
-
alias ..='cd ..' # ..: Shortcut to go to parent directory.
|
|
13
|
-
alias '~'='cd ~' # ~: Shortcut to go to home directory.
|
|
14
|
-
alias app='cd ${HOME}/Applications; ls' # app: Shortcut to go to the Applications directory.
|
|
15
|
-
alias cod='cd ${HOME}/Code; ls' # cod: Shortcut to go to the Code directory and list its contents.
|
|
16
|
-
alias des='cd ${HOME}/Desktop; ls' # des Shortcut to go to the Desktop directory and list its contents.
|
|
17
|
-
alias doc='cd ${HOME}/Documents; ls' # doc: Shortcut to go to the Documents directory and list its contents.
|
|
18
|
-
alias dot='cd ${HOME}/.dotfiles; ls' # dot: Shortcut to go to the dotfiles directory.
|
|
19
|
-
alias dow='cd ${HOME}/Downloads; ls' # dow: Shortcut to go to the Downloads directory and list its contents.
|
|
20
|
-
alias hom='cd ${HOME}/; ls' # hom: Shortcut to go to home directory and list its contents.
|
|
21
|
-
alias mus='cd ${HOME}/Music; ls' # mus: Shortcut to go to the Music directory and list its contents.
|
|
22
|
-
alias pic='cd ${HOME}/Pictures; ls' # pic: Shortcut to go to the Pictures directory and list its contents.
|
|
23
|
-
alias vid='cd ${HOME}/Videos; ls' # vid: Shortcut to go to the Videos directory and list its contents.
|