@sebastienrousseau/dotfiles 0.2.452 → 0.2.454
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 +268 -189
- package/{Makefile → dist/Makefile} +7 -8
- package/dist/bin/compile.sh +16 -0
- package/dist/bin/copy.sh +21 -0
- package/{bin → dist/bin}/dotfiles.sh +67 -32
- package/dist/filesizes.txt +176 -0
- package/{shell → dist/shell}/README.md +0 -0
- package/{shell → dist/shell}/aliases/default/default.aliases.sh +1 -1
- package/{shell → dist/shell}/aliases/gcloud/gcloud.aliases.sh +1 -1
- package/{shell → dist/shell}/aliases/heroku/heroku.aliases.sh +1 -1
- package/{shell → dist/shell}/aliases/jekyll/jekyll.aliases.sh +1 -1
- package/{shell → dist/shell}/aliases/pnpm/pnpm.aliases.sh +1 -1
- package/{shell → dist/shell}/aliases/subversion/subversion.aliases.sh +1 -1
- package/{shell → dist/shell}/aliases/tmux/tmux.aliases.sh +1 -1
- package/{shell → dist/shell}/aliases.sh +1 -1
- package/{shell/aliases/pnpm → dist/shell/configurations}/README.md +0 -0
- package/{shell → dist/shell}/configurations/bash/bashrc +2 -2
- package/{shell → dist/shell}/configurations/curl/cacert.pem +0 -0
- package/{shell → dist/shell}/configurations/curl/curlrc +1 -1
- package/{shell → dist/shell}/configurations/default/color.sh +1 -1
- package/{shell → dist/shell}/configurations/default/editor.sh +1 -1
- package/{shell → dist/shell}/configurations/default/prompt.sh +6 -6
- package/{shell → dist/shell}/configurations/inputrc/inputrc +2 -2
- package/{shell → dist/shell}/configurations/jshint/jshintrc +0 -0
- package/{shell → dist/shell}/configurations/profile/profile +1 -1
- package/{shell → dist/shell}/configurations/tmux/tmux +2 -2
- package/{shell → dist/shell}/configurations/vim/vimrc +1 -1
- package/{shell → dist/shell}/configurations/wget/wgetrc +1 -1
- package/{shell → dist/shell}/configurations/zsh/zshrc +12 -2
- package/{shell → dist/shell}/configurations.sh +1 -1
- package/{shell → dist/shell}/exit.sh +1 -1
- package/{shell/configurations → dist/shell/functions}/README.md +0 -0
- package/{shell → dist/shell}/functions/cdls.sh +1 -1
- package/{shell → dist/shell}/functions/curlheader.sh +1 -1
- package/{shell → dist/shell}/functions/curltime.sh +1 -1
- package/{shell → dist/shell}/functions/encode64.sh +1 -1
- package/{shell → dist/shell}/functions/environment.sh +8 -8
- package/{shell → dist/shell}/functions/extract.sh +2 -2
- package/{shell → dist/shell}/functions/filehead.sh +0 -0
- package/{shell → dist/shell}/functions/genpwd.sh +1 -1
- package/{shell → dist/shell}/functions/goto.sh +2 -2
- package/{shell → dist/shell}/functions/hidehiddenfiles.sh +1 -1
- package/{shell → dist/shell}/functions/hostinfo.sh +1 -1
- package/{shell → dist/shell}/functions/hstats.sh +1 -1
- package/{shell → dist/shell}/functions/httpdebug.sh +1 -1
- package/{shell → dist/shell}/functions/keygen.sh +4 -4
- package/{shell → dist/shell}/functions/last.sh +1 -1
- package/{shell → dist/shell}/functions/logout.sh +1 -1
- package/{shell → dist/shell}/functions/lowercase.sh +1 -1
- package/{shell → dist/shell}/functions/macos.sh +1 -1
- package/{shell → dist/shell}/functions/matrix.sh +1 -1
- package/{shell → dist/shell}/functions/mcd.sh +1 -1
- package/{shell → dist/shell}/functions/mount_read_only.sh +1 -1
- package/{shell → dist/shell}/functions/myproc.sh +2 -2
- package/{shell → dist/shell}/functions/prependpath.sh +1 -1
- package/{shell → dist/shell}/functions/ql.sh +1 -1
- package/{shell → dist/shell}/functions/rd.sh +1 -1
- package/{shell → dist/shell}/functions/remove_disk.sh +1 -1
- package/{shell → dist/shell}/functions/ren.sh +2 -2
- package/{shell → dist/shell}/functions/showhiddenfiles.sh +1 -1
- package/{shell → dist/shell}/functions/size.sh +1 -1
- package/{shell → dist/shell}/functions/stopwatch.sh +1 -1
- package/{shell → dist/shell}/functions/uppercase.sh +2 -2
- package/{shell → dist/shell}/functions/view-source.sh +1 -1
- package/{shell → dist/shell}/functions/vscode.sh +1 -1
- package/{shell → dist/shell}/functions/whoisport.sh +1 -1
- package/{shell → dist/shell}/functions/zipf.sh +1 -1
- package/{shell → dist/shell}/functions.sh +1 -1
- package/{shell → dist/shell}/history.sh +3 -6
- package/dist/shell/index.d.ts +2 -0
- package/dist/shell/index.d.ts.map +1 -0
- package/dist/shell/index.js +2 -0
- package/dist/shell/index.js.map +1 -0
- package/{shell → dist/shell}/paths/ant/ant.paths.sh +1 -1
- package/{shell → dist/shell}/paths/default/default.paths.sh +1 -1
- package/{shell → dist/shell}/paths/homebrew/homebrew.paths.sh +4 -1
- package/{shell → dist/shell}/paths/java/java.paths.sh +1 -1
- package/{shell → dist/shell}/paths/maven/maven.paths.sh +3 -2
- package/{shell → dist/shell}/paths/node/node.paths.sh +2 -2
- package/{shell → dist/shell}/paths/nvm/nvm.paths.sh +1 -1
- package/{shell → dist/shell}/paths/pnpm/pnpm.paths.sh +2 -2
- package/dist/shell/paths/python/python.paths.sh +29 -0
- package/{shell → dist/shell}/paths/ruby/ruby.paths.sh +1 -1
- package/{shell → dist/shell}/paths/tmux/tmux.paths.sh +3 -3
- package/{shell → dist/shell}/paths.sh +1 -1
- package/package.json +33 -27
- package/COPYRIGHT +0 -5
- package/index.js +0 -24
- package/pnpm-lock.yaml +0 -178
- package/pnpm-workspace.yaml +0 -2
- package/shell/aliases/README.md +0 -327
- package/shell/aliases/default/README.md +0 -0
- package/shell/aliases/gcloud/README.md +0 -117
- package/shell/aliases/git/README.md +0 -279
- package/shell/aliases/git/git.aliases.wip +0 -586
- package/shell/aliases/heroku/README.md +0 -457
- package/shell/aliases/jekyll/README.md +0 -32
- package/shell/aliases/subversion/README.md +0 -54
- package/shell/aliases/tmux/README.md +0 -0
- package/shell/functions/README.md +0 -3
- package/shell/functions/changediskpwd.sh +0 -19
- package/shell/functions/code.sh +0 -18
- package/shell/functions/countdown.sh +0 -33
- package/shell/functions/headers.sh +0 -4
- package/shell/functions/history-all.sh +0 -7
- package/shell/functions/print.sh +0 -13
- package/shell/functions/rm.sh +0 -13
- package/shell/functions/rps.sh +0 -103
- package/shell/functions/trash.sh +0 -13
- package/shell/functions/tree.sh +0 -13
- package/shell/functions/uuidgen.sh +0 -27
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.454) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -15,7 +15,7 @@ USER=$(whoami) # current user name.
|
|
|
15
15
|
|
|
16
16
|
## 🅴🆇🅿🅾🆁🆃🆂 - Export the variables.
|
|
17
17
|
export ARCHFLAGS="-arch ${OS_ARCH}" # archflags for the current machine.
|
|
18
|
-
export DOTFILES_VERSION='0.2.
|
|
18
|
+
export DOTFILES_VERSION='0.2.454' # version of the dotfiles.
|
|
19
19
|
export DOTFILES="${HOME}"/.dotfiles/shell # path to the cross plaform dotfiles.
|
|
20
20
|
export HOSTNAME=${HOSTNAME} # hostname of the machine.
|
|
21
21
|
export INPUTRC=${INPUTRC} # set INPUTRC (so that .inputrc is respected)
|
|
@@ -38,3 +38,13 @@ done
|
|
|
38
38
|
# Remove duplicates in zsh $PATH
|
|
39
39
|
# shellcheck disable=SC2034
|
|
40
40
|
typeset -aU path
|
|
41
|
+
|
|
42
|
+
# Initialize the completion system
|
|
43
|
+
autoload -Uz compinit
|
|
44
|
+
|
|
45
|
+
# Enable colors in prompt
|
|
46
|
+
autoload -Uz colors && colors
|
|
47
|
+
|
|
48
|
+
# Starting to find autocorrect rather annoying...
|
|
49
|
+
unsetopt correct_all
|
|
50
|
+
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.454) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -10,28 +10,28 @@ environment ()
|
|
|
10
10
|
LOCAL_OS="other"
|
|
11
11
|
|
|
12
12
|
# Mac
|
|
13
|
-
if [ "$(uname -s | grep -c Darwin)" -gt 0 ]; then
|
|
14
|
-
LOCAL_OS="
|
|
13
|
+
if [[ "$(uname -s | grep -c Darwin)" -gt 0 ]] || true; then
|
|
14
|
+
LOCAL_OS="mac"
|
|
15
15
|
|
|
16
16
|
# Linux
|
|
17
|
-
elif [ "$(uname -s | grep -c Linux)" -gt 0 ]; then
|
|
17
|
+
elif [[ "$(uname -s | grep -c Linux)" -gt 0 ]] || true; then
|
|
18
18
|
LOCAL_OS="linux"
|
|
19
19
|
|
|
20
20
|
# Windows via MING
|
|
21
|
-
elif [ "$(uname -s | grep -c MING)" -gt 0 ]; then
|
|
21
|
+
elif [[ "$(uname -s | grep -c MING)" -gt 0 ]] || true; then
|
|
22
22
|
LOCAL_OS="win"
|
|
23
23
|
|
|
24
24
|
# Cygwin
|
|
25
|
-
elif [ "$(uname -s | grep -c Cygwin)" -gt 0 ]; then
|
|
25
|
+
elif [[ "$(uname -s | grep -c Cygwin)" -gt 0 ]] || true; then
|
|
26
26
|
LOCAL_OS="win"
|
|
27
27
|
|
|
28
28
|
# Cygwin via Babun
|
|
29
|
-
elif [ "$(uname -s | grep -c CYGWIN)" -gt 0 ]; then
|
|
29
|
+
elif [[ "$(uname -s | grep -c CYGWIN)" -gt 0 ]] || true; then
|
|
30
30
|
LOCAL_OS="win"
|
|
31
31
|
|
|
32
32
|
fi
|
|
33
33
|
|
|
34
34
|
# Output the result
|
|
35
|
-
echo "$LOCAL_OS"
|
|
35
|
+
echo "${LOCAL_OS}"
|
|
36
36
|
|
|
37
37
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.454) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -10,7 +10,7 @@ extract() {
|
|
|
10
10
|
return 1
|
|
11
11
|
fi
|
|
12
12
|
|
|
13
|
-
if [ -f "$1" ]; then
|
|
13
|
+
if [[ -f "$1" ]]; then
|
|
14
14
|
echo "[INFO] Extracting $1"
|
|
15
15
|
case $1 in
|
|
16
16
|
*.tar.bz2) tar xjf "$1" ;;
|
|
File without changes
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.454) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
# goto: Function to change to the directory inputed
|
|
7
7
|
goto() {
|
|
8
|
-
if [ -e "$1" ]; then
|
|
8
|
+
if [[ -e "$1" ]]; then
|
|
9
9
|
cd "$1" || exit
|
|
10
10
|
l
|
|
11
11
|
else
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.454) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -12,11 +12,11 @@ keygen() {
|
|
|
12
12
|
echo "What's the email associated with it? "
|
|
13
13
|
read -r email
|
|
14
14
|
|
|
15
|
-
ssh-keygen -t rsa -f ~/.ssh/id_rsa_"$name" -C "$email"
|
|
15
|
+
ssh-keygen -t rsa -f ~/.ssh/id_rsa_"${name}" -C "${email}"
|
|
16
16
|
|
|
17
|
-
ssh-add ~/.ssh/id_rsa_"$name"
|
|
17
|
+
ssh-add ~/.ssh/id_rsa_"${name}"
|
|
18
18
|
|
|
19
|
-
pbcopy <~/.ssh/id_rsa_"$name".pub
|
|
19
|
+
pbcopy <~/.ssh/id_rsa_"${name}".pub
|
|
20
20
|
|
|
21
21
|
echo "[INFO] SSH Key id_rsa_$(name).pub copied in your clipboard"
|
|
22
22
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.454) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
# myproc: Function to list processes owned by an user
|
|
7
|
-
myproc() { ps "$@" -u "$USER" -o pid,%cpu,%mem,start,time,bsdtime,command; }
|
|
7
|
+
myproc() { ps "$@" -u "${USER}" -o pid,%cpu,%mem,start,time,bsdtime,command; }
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.454) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
# ren: Function to rename files extension.
|
|
7
7
|
ren() {
|
|
8
8
|
for f in *."$1"; do
|
|
9
|
-
mv "$f" "${f%."$1"}.$2"
|
|
9
|
+
mv "${f}" "${f%."$1"}.$2"
|
|
10
10
|
done
|
|
11
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.454) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -18,7 +18,7 @@ uppercase()
|
|
|
18
18
|
esac
|
|
19
19
|
nf=$(echo "${filename}" | tr '[:upper:]' '[:lower:]')
|
|
20
20
|
newname="${dirname}/${nf}"
|
|
21
|
-
if [ "${nf}" != "${filename}" ]; then
|
|
21
|
+
if [[ "${nf}" != "${filename}" ]]; then
|
|
22
22
|
mv "${file}" "${newname}"
|
|
23
23
|
echo "[INFO] Renaming ${file} to uppercase: ${newname}"
|
|
24
24
|
else
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.454) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -35,16 +35,13 @@ case ${HIST_STAMPS-} in
|
|
|
35
35
|
esac
|
|
36
36
|
|
|
37
37
|
# Command history configuration
|
|
38
|
-
export HISTFILE=${HOME}/.
|
|
38
|
+
export HISTFILE=${HOME}/.zsh_history
|
|
39
39
|
|
|
40
40
|
# Don't put duplicate lines or lines starting with space in the history.
|
|
41
41
|
export HISTCONTROL=ignoreboth
|
|
42
42
|
|
|
43
43
|
# Number of histories saved in memory
|
|
44
|
-
export HISTSIZE=
|
|
45
|
-
|
|
46
|
-
# History file size limit in bytes
|
|
47
|
-
export HISTFILESIZE=2000000
|
|
44
|
+
export HISTSIZE=10000
|
|
48
45
|
|
|
49
46
|
# Number of histories saved in history file
|
|
50
47
|
export SAVEHIST=1000
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../shell/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../shell/index.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,IAAI,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAE/B,SAAS,IAAI;IACX,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;AACjC,CAAC;AAED,IAAI,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.454) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -16,6 +16,9 @@ if [[ "${OSTYPE}" == "darwin"* ]]; then
|
|
|
16
16
|
# Prevent Homebrew from reporting - https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md
|
|
17
17
|
export HOMEBREW_NO_ANALYTICS=1
|
|
18
18
|
|
|
19
|
+
# Automatically update Homebrew once a day.
|
|
20
|
+
export HOMEBREW_AUTO_UPDATE_SECS=86400
|
|
21
|
+
|
|
19
22
|
# set HOMEBREW_CASK_OPTS
|
|
20
23
|
HOMEBREW_CASK_OPTS="--appdir=/Applications"
|
|
21
24
|
export HOMEBREW_CASK_OPTS
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.454) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
## 🅼🅰🆅🅴🅽 🅷🅾🅼🅴
|
|
7
7
|
if [[ -z "${MAVEN_HOME}" ]]; then
|
|
8
8
|
if [[ "${OSTYPE}" == "darwin"* ]]; then
|
|
9
|
-
MAVEN_HOME
|
|
9
|
+
MAVEN_HOME=/opt/homebrew/Cellar/maven/3.8.6/libexec
|
|
10
10
|
elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
|
|
11
11
|
MAVEN_HOME="/usr/share/maven/"
|
|
12
12
|
fi
|
|
13
13
|
M2_HOME="${MAVEN_HOME}"
|
|
14
14
|
export MAVEN_HOME M2_HOME
|
|
15
15
|
export PATH="${MAVEN_HOME}:${PATH}"
|
|
16
|
+
export MAVEN_OPTS="-Xms1g -Xmx1g"
|
|
16
17
|
fi
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.454) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
## 🅽🅾🅳🅴 🅿🅰🆃🅷
|
|
7
7
|
if [[ "${OSTYPE}" == "darwin"* ]]; then
|
|
8
|
-
NODE_PATH
|
|
8
|
+
NODE_PATH=/opt/homebrew/Cellar/node@18/18.10.0
|
|
9
9
|
elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
|
|
10
10
|
NODE_PATH=${HOME}/.nvm/versions/node/v18.10.0/bin/node
|
|
11
11
|
fi
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.454) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
6
|
## 🅿🅽🅿🅼 🅿🅰🆃🅷🆂
|
|
7
7
|
if [[ "${OSTYPE}" == "darwin"* ]]; then
|
|
8
|
-
PNPM_HOME
|
|
8
|
+
PNPM_HOME=/opt/homebrew/Cellar/pnpm
|
|
9
9
|
elif [[ "${OSTYPE}" == "linux-gnu"* ]]; then
|
|
10
10
|
PNPM_HOME="${HOME}"/.local/share/pnpm
|
|
11
11
|
fi
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.454) - 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
|
+
if [[ -d "/usr/bin/python3.9" ]]; then
|
|
13
|
+
PYTHONHOME="/usr/lib/python3.9"
|
|
14
|
+
fi
|
|
15
|
+
fi
|
|
16
|
+
|
|
17
|
+
# Encoding[:errors] used for stdin/stdout/stderr.
|
|
18
|
+
export PYTHONIOENCODING='UTF-8';
|
|
19
|
+
|
|
20
|
+
# If set to 1, enables the UTF-8 mode.
|
|
21
|
+
export PYTHONUTF8=1;
|
|
22
|
+
|
|
23
|
+
# Export PYTHONHOME variable
|
|
24
|
+
export PYTHONHOME
|
|
25
|
+
export PATH="${PYTHONHOME}:${PATH}"
|
|
26
|
+
|
|
27
|
+
# Export PYTHONPATH variable
|
|
28
|
+
export PYTHONPATH="${PYTHONHOME}"
|
|
29
|
+
export PATH="${PYTHONPATH}:${PATH}"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.
|
|
2
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.454) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
if command -v 'tmux' >/dev/null; then
|
|
8
8
|
TMUX_PATH=$(command -v tmux)
|
|
9
9
|
export TMUX_PATH
|
|
10
|
-
|
|
11
10
|
fi
|
|
12
11
|
|
|
13
12
|
if [[ -z "${TMUX}" ]] && [[ ${UID} != 0 ]]; then
|
|
14
|
-
tmux
|
|
13
|
+
tmux kill-session -t "Dotfiles (v0.2.454)" 2>/dev/null
|
|
14
|
+
tmux new-session -t "Dotfiles (v0.2.454)"
|
|
15
15
|
fi
|