@sebastienrousseau/dotfiles 0.2.453 β†’ 0.2.455

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 (96) hide show
  1. package/README.md +175 -161
  2. package/package.json +40 -28
  3. package/COPYRIGHT +0 -5
  4. package/Makefile +0 -79
  5. package/bin/dotfiles.sh +0 -157
  6. package/index.js +0 -24
  7. package/pnpm-lock.yaml +0 -232
  8. package/pnpm-workspace.yaml +0 -2
  9. package/shell/README.md +0 -3
  10. package/shell/aliases/default/README.md +0 -0
  11. package/shell/aliases/default/default.aliases.sh +0 -199
  12. package/shell/aliases/gcloud/gcloud.aliases.sh +0 -121
  13. package/shell/aliases/git/git.aliases.wip +0 -586
  14. package/shell/aliases/heroku/heroku.aliases.sh +0 -1031
  15. package/shell/aliases/jekyll/jekyll.aliases.sh +0 -50
  16. package/shell/aliases/pnpm/pnpm.aliases.sh +0 -42
  17. package/shell/aliases/subversion/subversion.aliases.sh +0 -123
  18. package/shell/aliases/tmux/tmux.aliases.sh +0 -14
  19. package/shell/aliases.sh +0 -12
  20. package/shell/configurations/README.md +0 -3
  21. package/shell/configurations/bash/bashrc +0 -36
  22. package/shell/configurations/curl/cacert.pem +0 -3460
  23. package/shell/configurations/curl/curlrc +0 -55
  24. package/shell/configurations/default/color.sh +0 -17
  25. package/shell/configurations/default/editor.sh +0 -16
  26. package/shell/configurations/default/prompt.sh +0 -37
  27. package/shell/configurations/inputrc/inputrc +0 -22
  28. package/shell/configurations/jshint/jshintrc +0 -37
  29. package/shell/configurations/profile/profile +0 -36
  30. package/shell/configurations/tmux/tmux +0 -95
  31. package/shell/configurations/vim/vimrc +0 -73
  32. package/shell/configurations/wget/wgetrc +0 -39
  33. package/shell/configurations/zsh/zshrc +0 -50
  34. package/shell/configurations.sh +0 -10
  35. package/shell/exit.sh +0 -9
  36. package/shell/functions/README.md +0 -3
  37. package/shell/functions/cdls.sh +0 -19
  38. package/shell/functions/changediskpwd.wip +0 -19
  39. package/shell/functions/code.wip +0 -18
  40. package/shell/functions/countdown.wip +0 -33
  41. package/shell/functions/curlheader.sh +0 -20
  42. package/shell/functions/curltime.sh +0 -31
  43. package/shell/functions/encode64.sh +0 -25
  44. package/shell/functions/environment.sh +0 -37
  45. package/shell/functions/extract.sh +0 -32
  46. package/shell/functions/filehead.sh +0 -4
  47. package/shell/functions/genpwd.sh +0 -14
  48. package/shell/functions/goto.sh +0 -14
  49. package/shell/functions/headers.wip +0 -4
  50. package/shell/functions/hidehiddenfiles.sh +0 -12
  51. package/shell/functions/history-all.wip +0 -7
  52. package/shell/functions/hostinfo.sh +0 -25
  53. package/shell/functions/hstats.sh +0 -9
  54. package/shell/functions/httpdebug.sh +0 -7
  55. package/shell/functions/keygen.sh +0 -23
  56. package/shell/functions/last.sh +0 -9
  57. package/shell/functions/logout.sh +0 -10
  58. package/shell/functions/lowercase.sh +0 -28
  59. package/shell/functions/macos.sh +0 -47
  60. package/shell/functions/matrix.sh +0 -9
  61. package/shell/functions/mcd.sh +0 -18
  62. package/shell/functions/mount_read_only.sh +0 -9
  63. package/shell/functions/myproc.sh +0 -7
  64. package/shell/functions/prependpath.sh +0 -19
  65. package/shell/functions/print.wip +0 -13
  66. package/shell/functions/ql.sh +0 -7
  67. package/shell/functions/rd.sh +0 -15
  68. package/shell/functions/remove_disk.sh +0 -9
  69. package/shell/functions/ren.sh +0 -11
  70. package/shell/functions/rm.wip +0 -13
  71. package/shell/functions/rps.wip +0 -103
  72. package/shell/functions/showhiddenfiles.sh +0 -12
  73. package/shell/functions/size.sh +0 -13
  74. package/shell/functions/stopwatch.sh +0 -13
  75. package/shell/functions/trash.wip +0 -13
  76. package/shell/functions/tree.wip +0 -13
  77. package/shell/functions/uppercase.sh +0 -28
  78. package/shell/functions/uuidgen.wip +0 -27
  79. package/shell/functions/view-source.sh +0 -8
  80. package/shell/functions/vscode.sh +0 -31
  81. package/shell/functions/whoisport.sh +0 -12
  82. package/shell/functions/zipf.sh +0 -14
  83. package/shell/functions.sh +0 -10
  84. package/shell/history.sh +0 -107
  85. package/shell/paths/ant/ant.paths.sh +0 -15
  86. package/shell/paths/default/default.paths.sh +0 -17
  87. package/shell/paths/homebrew/homebrew.paths.sh +0 -25
  88. package/shell/paths/java/java.paths.sh +0 -16
  89. package/shell/paths/maven/maven.paths.sh +0 -17
  90. package/shell/paths/node/node.paths.sh +0 -13
  91. package/shell/paths/nvm/nvm.paths.sh +0 -21
  92. package/shell/paths/pnpm/pnpm.paths.sh +0 -13
  93. package/shell/paths/python/python.paths.sh +0 -19
  94. package/shell/paths/ruby/ruby.paths.sh +0 -23
  95. package/shell/paths/tmux/tmux.paths.sh +0 -14
  96. package/shell/paths.sh +0 -12
@@ -1,28 +0,0 @@
1
- #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.453) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- # uppercase: Function to move filenames or directory names to uppercase
7
- uppercase()
8
- {
9
- if [[ "$#" != 1 ]]; then
10
- echo "[ERROR] The filename or directory name is incorrect." >&2
11
- return 1
12
- fi
13
- for file ; do
14
- filename=${file##*/}
15
- case "${filename}" in
16
- */*) dirname=${file%/*} ;;
17
- *) dirname=.;;
18
- esac
19
- nf=$(echo "${filename}" | tr '[:upper:]' '[:lower:]')
20
- newname="${dirname}/${nf}"
21
- if [[ "${nf}" != "${filename}" ]]; then
22
- mv "${file}" "${newname}"
23
- echo "[INFO] Renaming ${file} to uppercase: ${newname}"
24
- else
25
- echo "[ERROR] The operation is not valid, ${file} has not changed."
26
- fi
27
- done
28
- }
@@ -1,27 +0,0 @@
1
- #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.452) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- # uuid: Function to generate a UUID (Universally Unique IDentifier)
7
- # uuidgen() {
8
- # local N B C='89ab' # 89ab is the hexadecimal value of 10, 11, 12, 13, 14, 15 in decimal
9
- # for ((N = 0; N < 16; ++N)); do
10
- # B=$(("$RANDOM" % 256))
11
- # case $N in
12
- # 6)
13
- # printf '4%x' $((B % 16))
14
- # ;;
15
- # 8)
16
- # printf '%c%x' ${C:$RANDOM%${#C}:1} ${B % 16}
17
- # ;;
18
- # 3 | 5 | 7 | 9)
19
- # printf '%02x-' "${B}"
20
- # ;;
21
- # *)
22
- # printf '%02x' "${B}"
23
- # ;;
24
- # esac
25
- # done
26
- # echo
27
- # }
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.453) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- # view-source: Function to view the source of a website.
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' "$@" ; }
8
-
@@ -1,31 +0,0 @@
1
- #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.453) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- # vsc: Function to open a file in Visual Studio Code.
7
-
8
- vsc() {
9
- if [[ -z "$1" ]]; then
10
- echo "Usage: vsc <file>"
11
- return 1
12
- fi
13
-
14
- if [[ -f "$1" ]]; then
15
- code "$1"
16
- else
17
- echo "File not found: $1"
18
- return 1
19
- fi
20
- }
21
-
22
- if [[ "$(uname || true)" = "Darwin" ]]; then
23
- alias code="/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code"
24
- elif [[ "$(uname || true)" = "Linux" ]]; then
25
- alias code="code"
26
- fi
27
-
28
- alias vs="code"
29
- alias vsc="code"
30
- alias vscode="code"
31
-
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.453) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- # whoisport: Function to find what is currently using a port.
7
- whoisport() {
8
- port=$1
9
- pidInfo=$(fuser "${port}"/tcp 2>/dev/null)
10
- pid=$(echo "${pidInfo}" | cut -d':' -f2)
11
- ls -l /proc/"${pid}"/exe
12
- }
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.453) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- # zipf: Function to create a ZIP archive of a folder
7
- function zipf() {
8
- if [[ "$#" != 1 ]]; then
9
- echo "[ERROR] Please add one argument" >&2
10
- return 1
11
- fi
12
- echo "[INFO] Creating the ZIP archive folder $1.zip"
13
- zip -r "$1".zip "$1";
14
- }
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.453) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- # Load custom executable functions
7
- for function in "${HOME}"/.dotfiles/shell/functions/[!.#]*.sh; do
8
- # shellcheck source=/dev/null
9
- source "${function}"
10
- done
package/shell/history.sh DELETED
@@ -1,107 +0,0 @@
1
- #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.453) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- ## History wrapper
7
- function dotfiles_history {
8
- local clear list
9
- zparseopts -E c=clear l=list
10
-
11
- if [[ -n "${clear}" ]]; then
12
- # if -c provided, clobber the history file
13
- echo -n >|"${HISTFILE}"
14
- echo >&2 History file deleted. Reload the session to see its effects.
15
- elif [[ -n "${list}" ]]; then
16
- # if -l provided, run as if calling `fc' directly
17
- builtin fc "$@"
18
- else
19
- # unless a number is provided, show all history events (starting from 1)
20
- if [[ "${1:-}" =~ ^[0-9]+$ ]]; then
21
- builtin fc "$@"
22
- else
23
- builtin fc -l 1
24
- fi
25
- fi
26
- }
27
-
28
- # Timestamp format
29
- case ${HIST_STAMPS-} in
30
- "mm/dd/yyyy") alias history='dotfiles_history -f' ;;
31
- "dd.mm.yyyy") alias history='dotfiles_history -E' ;;
32
- "yyyy-mm-dd") alias history='dotfiles_history -i' ;;
33
- "") alias history='dotfiles_history' ;;
34
- *) alias history='dotfiles_history -t $HIST_STAMPS' ;;
35
- esac
36
-
37
- # Command history configuration
38
- export HISTFILE=${HOME}/.zsh_history
39
-
40
- # Don't put duplicate lines or lines starting with space in the history.
41
- export HISTCONTROL=ignoreboth
42
-
43
- # Number of histories saved in memory
44
- export HISTSIZE=10000
45
-
46
- # Number of histories saved in history file
47
- export SAVEHIST=1000
48
-
49
- if [[ -n "${ZSH_VERSION}" ]]; then
50
- # echo "Running shell is zsh"
51
- # Specifying some history options
52
- setopt always_to_end # Move cursor to the end of a completed word.
53
- setopt append_history # Sessions will append their history list to the history file, rather than replace it.
54
- setopt auto_cd # cd to a directory if it's given without a command.
55
- setopt auto_list # Automatically list choices on ambiguous completion.
56
- setopt auto_menu # Show completion menu on a successive tab press.
57
- setopt auto_param_keys # Automatically complements parentheses
58
- setopt auto_param_slash # If completed parameter is a directory, add a trailing slash.
59
- setopt auto_pushd # Automatically push when cd
60
- setopt auto_resume # Resume if you execute the same command name as the suspended process
61
- setopt bang_hist # Perform textual history expansion
62
- setopt complete_in_word # Complete from both ends of a word.
63
- setopt correct # Enable command correction prompts
64
- setopt extended_history # Save each command’s beginning timestamp (in seconds since the epoch) and the duration (in seconds) to the history file.
65
- setopt hist_beep # Beep in ZLE when a widget attempts to access a history entry which isn’t there.
66
- setopt hist_expire_dups_first # Cause the oldest history event that has a duplicate to be lost before losing a unique event from the list.
67
- setopt hist_ignore_space # Remove command lines from the history list when the first character on the line is a space, or when one of the expanded aliases contains a leading space.
68
- setopt hist_no_store # Remove the history (fc -l) command from the history list when invoked.
69
- setopt hist_reduce_blanks # Remove superfluous blanks from each command line being added to the history list.
70
- setopt hist_save_no_dups # When writing out the history file, older commands that duplicate newer ones are omitted.
71
- setopt hist_verify # Whenever the user enters a line with history expansion, don’t execute the line directly; instead, perform history expansion and reload the line into the editing buffer.
72
- setopt list_packed # Display with complementary candidates packed
73
- setopt list_types # Mark the file type in the completion candidate list
74
- setopt pushd_ignore_dups # Don’t push multiple copies of the same directory onto the directory stack.
75
- setopt share_history # Imports new commands from the history file, and also causes the typed commands to be appended to the history file
76
- setopt transient_rprompt # Display the right prompt only when the cursor is on the rightmost column.
77
-
78
- elif [[ -n "${BASH_VERSION}" ]]; then
79
- # echo "Running shell is bash"
80
- # Shopt settings
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
- shopt -s no_empty_cmd_completion # no_empty_cmd_completion - don't complete empty commands.
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
-
104
- else
105
- echo "Unsupported shell: ${SHELL}"
106
- exit 1
107
- fi
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.453) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- ## πŸ…°πŸ…½πŸ†ƒ πŸ…·πŸ…ΎπŸ…ΌπŸ…΄
7
- if [[ -z "${ANT_HOME}" ]]; then
8
- if [[ "${OSTYPE}" == "darwin"* ]]; then
9
- ANT_HOME="/opt/homebrew/Cellar/ant/1.10.12/"
10
- elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
11
- ANT_HOME="/usr/share/ant/"
12
- fi
13
- export ANT_HOME
14
- export PATH="${ANT_HOME}:${PATH}"
15
- fi
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.453) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- ## πŸ…ΏπŸ…°πŸ†ƒπŸ…·πŸ†‚
7
-
8
- ### Add 'PATH' entries.
9
- export PATH=/usr/local/bin:"${PATH}" # Add /usr/local/bin to the path
10
- export PATH=/usr/local/sbin:"${PATH}" # Add /usr/local/sbin to the path
11
- export PATH=/usr/bin:"${PATH}" # Add /usr/bin to the path
12
- export PATH=/bin:"${PATH}" # Add /bin to the path
13
- export PATH=/usr/sbin:"${PATH}" # Add /usr/sbin to the path
14
- export PATH=/sbin:"${PATH}" # Add /sbin to the path
15
- export PATH="${HOME}"/.cargo/bin:"${PATH}" # Add ~/.cargo/bin to the path
16
- export PATH="${HOME}"/.yarn/bin:"${PATH}" # Add ~/.yarn/bin to the path
17
- export PATH="${HOME}"/go/bin:"${PATH}" # Add ~/go/bin to the path
@@ -1,25 +0,0 @@
1
- #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.453) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- ## πŸ…·πŸ…ΎπŸ…ΌπŸ…΄πŸ…±πŸ†πŸ…΄πŸ†† πŸ…ΏπŸ…°πŸ†ƒπŸ…·πŸ†‚
7
- if [[ "${OSTYPE}" == "darwin"* ]]; then
8
-
9
- ### Uniquify 'PATH' entries.
10
- # typeset -U PATH
11
-
12
- export PATH=/opt/homebrew/bin:"${PATH}" # Homebrew binaries
13
- export PATH=/opt/homebrew/sbin:"${PATH}" # Homebrew binaries
14
- export PATH=/opt/homebrew/bin/bash:"${PATH}" # Add /opt/homebrew/bin/bash to the path
15
-
16
- # Prevent Homebrew from reporting - https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md
17
- export HOMEBREW_NO_ANALYTICS=1
18
-
19
- # Automatically update Homebrew once a day.
20
- export HOMEBREW_AUTO_UPDATE_SECS=86400
21
-
22
- # set HOMEBREW_CASK_OPTS
23
- HOMEBREW_CASK_OPTS="--appdir=/Applications"
24
- export HOMEBREW_CASK_OPTS
25
- fi
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.453) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- ## πŸ…ΉπŸ…°πŸ†…πŸ…°_πŸ…·πŸ…ΎπŸ…ΌπŸ…΄
7
- # Set JAVA_HOME
8
- if [[ "${OSTYPE}" == "darwin"* ]]; then
9
- export CPPFLAGS="-I/opt/homebrew/opt/openjdk/include"
10
- export PATH=/opt/homebrew/opt/openjdk/bin:"${PATH}" # Java binaries
11
- JAVA_HOME="/opt/homebrew/Cellar/openjdk/$(java -version 2>&1 | head -n 1 | cut -d'"' -f2)/libexec/openjdk.jdk/Contents/Home"
12
- elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
13
- JAVA_HOME="/usr/lib/jvm/java-11-openjdk-arm64/"
14
- fi
15
- export JAVA_HOME
16
- export JRE_HOME="${JAVA_HOME}"/jre
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.453) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- ## πŸ…ΌπŸ…°πŸ†…πŸ…΄πŸ…½ πŸ…·πŸ…ΎπŸ…ΌπŸ…΄
7
- if [[ -z "${MAVEN_HOME}" ]]; then
8
- if [[ "${OSTYPE}" == "darwin"* ]]; then
9
- MAVEN_HOME=/opt/homebrew/Cellar/maven/3.8.6/libexec
10
- elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
11
- MAVEN_HOME="/usr/share/maven/"
12
- fi
13
- M2_HOME="${MAVEN_HOME}"
14
- export MAVEN_HOME M2_HOME
15
- export PATH="${MAVEN_HOME}:${PATH}"
16
- export MAVEN_OPTS="-Xms1g -Xmx1g"
17
- fi
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.453) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- ## πŸ…½πŸ…ΎπŸ…³πŸ…΄ πŸ…ΏπŸ…°πŸ†ƒπŸ…·
7
- if [[ "${OSTYPE}" == "darwin"* ]]; then
8
- NODE_PATH=/opt/homebrew/Cellar/node@18/18.10.0
9
- elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
10
- NODE_PATH=${HOME}/.nvm/versions/node/v18.10.0/bin/node
11
- fi
12
- export NODE_PATH
13
- export PATH="${NODE_PATH}:${PATH}"
@@ -1,21 +0,0 @@
1
- #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.453) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- ## πŸ…½πŸ†…πŸ…Ό πŸ…ΏπŸ…°πŸ†ƒπŸ…·
7
- if [[ "${OSTYPE}" == "darwin"* ]]; then
8
- NVM_DIR="${HOME}"/.nvm
9
- # shellcheck source=/dev/null
10
- [[ -s "/opt/homebrew/opt/nvm/nvm.sh" ]] && . "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
11
- # shellcheck source=/dev/null
12
- [[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ]] && . "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
13
- elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
14
- NVM_DIR="${HOME}"/.nvm
15
- # shellcheck source=/dev/null
16
- . "${NVM_DIR}/nvm.sh" # This loads nvm
17
- # shellcheck source=/dev/null
18
- . "${NVM_DIR}/bash_completion" # This loads nvm bash_completion
19
- fi
20
- export NVM_DIR
21
- export PATH="${NVM_DIR}:${PATH}"
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.453) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- ## πŸ…ΏπŸ…½πŸ…ΏπŸ…Ό πŸ…ΏπŸ…°πŸ†ƒπŸ…·πŸ†‚
7
- if [[ "${OSTYPE}" == "darwin"* ]]; then
8
- PNPM_HOME=/opt/homebrew/Cellar/pnpm
9
- elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
10
- PNPM_HOME="${HOME}"/.local/share/pnpm
11
- fi
12
- export PNPM_HOME="${PNPM_HOME}"
13
- export PATH="${PNPM_HOME}:${PATH}"
@@ -1,19 +0,0 @@
1
- #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.453) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- ## πŸ…ΏπŸ†ˆπŸ†ƒπŸ…·πŸ…ΎπŸ…½ πŸ…ΏπŸ…°πŸ†ƒπŸ…·
7
- if [[ "${OSTYPE}" == "darwin"* ]]; then
8
- if [[ -d "/opt/homebrew/opt/python/bin" ]]; then
9
- PYTHONHOME="/opt/homebrew/opt/python/bin"
10
- fi
11
- elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
12
- PYTHONHOME="/usr/lib/python*/"
13
- fi
14
-
15
- # Make Python use UTF-8 encoding for output to stdin, stdout, and stderr.
16
- export PYTHONIOENCODING='UTF-8';
17
-
18
- export PYTHONHOME
19
- export PATH="${PYTHONHOME}:${PATH}"
@@ -1,23 +0,0 @@
1
- #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.453) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- ## πŸ†πŸ†„πŸ…±πŸ†ˆ πŸ…·πŸ…ΎπŸ…ΌπŸ…΄
7
- if [[ "${OSTYPE}" == "darwin"* ]]; then
8
- if [[ -d "/opt/homebrew/opt/ruby/bin" ]]; then
9
- RUBY_HOME="/opt/homebrew/opt/ruby/bin"
10
- fi
11
- elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
12
- RUBY_HOME="/usr/lib/ruby/2.7.0/"
13
- fi
14
- export RUBY_HOME
15
- export PATH="${RUBY_HOME}:${PATH}"
16
-
17
- ## πŸ…ΆπŸ…΄πŸ…Ό πŸ…·πŸ…ΎπŸ…ΌπŸ…΄
18
- GEM_HOME=$(gem environment gemdir)
19
- GEM_PATH=${GEM_HOME}
20
- export GEM_HOME
21
- export GEM_PATH
22
- export PATH="${GEM_PATH}:${PATH}"
23
- export PATH="${GEM_HOME}:${PATH}"
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.453) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- ## πŸ†ƒπŸ…ΌπŸ†„πŸ†‡ πŸ…ΏπŸ…°πŸ†ƒπŸ…·πŸ†‚
7
- if command -v 'tmux' >/dev/null; then
8
- TMUX_PATH=$(command -v tmux)
9
- export TMUX_PATH
10
- fi
11
-
12
- if [[ -z "${TMUX}" ]] && [[ ${UID} != 0 ]]; then
13
- tmux new -s "Dotfiles"
14
- fi
package/shell/paths.sh DELETED
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env bash
2
- # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.453) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- ## πŸ…ΏπŸ…°πŸ†ƒπŸ…·πŸ†‚
7
-
8
- # Load custom executable paths.
9
- for file in "${HOME}"/.dotfiles/shell/paths/[!.#]*/*.sh; do
10
- # shellcheck source=/dev/null
11
- . "${file}"
12
- done