@sebastienrousseau/dotfiles 0.2.440 → 0.2.453
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/COPYRIGHT +5 -0
- package/LICENSE +1260 -2
- package/Makefile +79 -0
- package/README.md +390 -70
- package/bin/dotfiles.sh +157 -0
- package/index.js +24 -0
- package/package.json +99 -25
- package/pnpm-lock.yaml +232 -0
- package/pnpm-workspace.yaml +2 -0
- package/shell/README.md +3 -0
- package/{Icon/r → shell/aliases/default/README.md} +0 -0
- package/shell/aliases/default/default.aliases.sh +199 -0
- package/shell/aliases/gcloud/gcloud.aliases.sh +121 -0
- package/shell/aliases/git/git.aliases.wip +586 -0
- package/shell/aliases/heroku/heroku.aliases.sh +1031 -0
- package/shell/aliases/jekyll/jekyll.aliases.sh +50 -0
- package/shell/aliases/pnpm/pnpm.aliases.sh +42 -0
- package/shell/aliases/subversion/subversion.aliases.sh +123 -0
- package/shell/aliases/tmux/tmux.aliases.sh +14 -0
- package/shell/aliases.sh +12 -0
- package/shell/configurations/README.md +3 -0
- package/shell/configurations/bash/bashrc +36 -0
- package/shell/configurations/curl/cacert.pem +3460 -0
- package/shell/configurations/curl/curlrc +55 -0
- package/shell/configurations/default/color.sh +17 -0
- package/shell/configurations/default/editor.sh +16 -0
- package/shell/configurations/default/prompt.sh +37 -0
- package/shell/configurations/inputrc/inputrc +22 -0
- package/shell/configurations/jshint/jshintrc +37 -0
- package/shell/configurations/profile/profile +36 -0
- package/shell/configurations/tmux/tmux +95 -0
- package/shell/configurations/vim/vimrc +73 -0
- package/{.wgetrc → shell/configurations/wget/wgetrc} +4 -0
- package/shell/configurations/zsh/zshrc +50 -0
- package/shell/configurations.sh +10 -0
- package/shell/exit.sh +9 -0
- package/shell/functions/README.md +3 -0
- package/shell/functions/cdls.sh +19 -0
- package/shell/functions/changediskpwd.wip +19 -0
- package/shell/functions/code.wip +18 -0
- package/shell/functions/countdown.wip +33 -0
- package/shell/functions/curlheader.sh +20 -0
- package/shell/functions/curltime.sh +31 -0
- package/shell/functions/encode64.sh +25 -0
- package/shell/functions/environment.sh +37 -0
- package/shell/functions/extract.sh +32 -0
- package/shell/functions/filehead.sh +4 -0
- package/{zsh/zsh/functions/genpwd.zsh → shell/functions/genpwd.sh} +8 -3
- package/shell/functions/goto.sh +14 -0
- package/shell/functions/headers.wip +4 -0
- package/{zsh/zsh/functions/hidehiddenfiles.zsh → shell/functions/hidehiddenfiles.sh} +7 -2
- package/shell/functions/history-all.wip +7 -0
- package/shell/functions/hostinfo.sh +25 -0
- package/{zsh/zsh/functions/hstats.zsh → shell/functions/hstats.sh} +6 -1
- package/shell/functions/httpdebug.sh +7 -0
- package/shell/functions/keygen.sh +23 -0
- package/shell/functions/last.sh +9 -0
- package/shell/functions/logout.sh +10 -0
- package/shell/functions/lowercase.sh +28 -0
- package/shell/functions/macos.sh +47 -0
- package/shell/functions/matrix.sh +9 -0
- package/shell/functions/mcd.sh +18 -0
- package/shell/functions/mount_read_only.sh +9 -0
- package/shell/functions/myproc.sh +7 -0
- package/shell/functions/prependpath.sh +19 -0
- package/shell/functions/print.wip +13 -0
- package/shell/functions/ql.sh +7 -0
- package/shell/functions/rd.sh +15 -0
- package/shell/functions/remove_disk.sh +9 -0
- package/shell/functions/ren.sh +11 -0
- package/shell/functions/rm.wip +13 -0
- package/shell/functions/rps.wip +103 -0
- package/{zsh/zsh/functions/showhiddenfiles.zsh → shell/functions/showhiddenfiles.sh} +7 -2
- package/{zsh/zsh/functions/size.zsh → shell/functions/size.sh} +6 -1
- package/shell/functions/stopwatch.sh +13 -0
- package/shell/functions/trash.wip +13 -0
- package/shell/functions/tree.wip +13 -0
- package/shell/functions/uppercase.sh +28 -0
- package/shell/functions/uuidgen.wip +27 -0
- package/shell/functions/view-source.sh +8 -0
- package/shell/functions/vscode.sh +31 -0
- package/shell/functions/whoisport.sh +12 -0
- package/shell/functions/zipf.sh +14 -0
- package/shell/functions.sh +10 -0
- package/shell/history.sh +107 -0
- package/shell/paths/ant/ant.paths.sh +15 -0
- package/shell/paths/default/default.paths.sh +17 -0
- package/shell/paths/homebrew/homebrew.paths.sh +25 -0
- package/shell/paths/java/java.paths.sh +16 -0
- package/shell/paths/maven/maven.paths.sh +17 -0
- package/shell/paths/node/node.paths.sh +13 -0
- package/shell/paths/nvm/nvm.paths.sh +21 -0
- package/shell/paths/pnpm/pnpm.paths.sh +13 -0
- package/shell/paths/python/python.paths.sh +19 -0
- package/shell/paths/ruby/ruby.paths.sh +23 -0
- package/shell/paths/tmux/tmux.paths.sh +14 -0
- package/shell/paths.sh +12 -0
- package/.curlrc +0 -17
- package/.eslintrc +0 -44
- package/.jshintrc +0 -22
- package/.travis.yml +0 -21
- package/CODE_OF_CONDUCT.md +0 -46
- package/CONTRIBUTING.md +0 -60
- package/Dotfiles.png +0 -0
- package/ISSUE_TEMPLATE.md +0 -43
- package/bash/.bash_aliases +0 -409
- package/bash/.bash_exit +0 -25
- package/bash/.bash_functions +0 -312
- package/bash/.bash_load_completion +0 -62
- package/bash/.bash_profile +0 -295
- package/bash/.bashrc +0 -47
- package/homebrew/brew-cask.sh +0 -165
- package/homebrew/brew-package.sh +0 -256
- package/homebrew/brew-tap.sh +0 -35
- package/homebrew/install.sh +0 -29
- package/zsh/.zshrc +0 -64
- package/zsh/aliases.zsh +0 -427
- package/zsh/configurations.zsh +0 -19
- package/zsh/exit.zsh +0 -21
- package/zsh/functions.zsh +0 -42
- package/zsh/history.zsh +0 -53
- package/zsh/profile.zsh +0 -17
- package/zsh/zsh/configurations/color.zsh +0 -21
- package/zsh/zsh/configurations/editor.zsh +0 -21
- package/zsh/zsh/configurations/history.zsh +0 -53
- package/zsh/zsh/configurations/path.zsh +0 -123
- package/zsh/zsh/configurations/prompt.zsh +0 -24
- package/zsh/zsh/functions/cd.zsh +0 -51
- package/zsh/zsh/functions/cdls.zsh +0 -11
- package/zsh/zsh/functions/changediskpwd.zsh +0 -4
- package/zsh/zsh/functions/code.zsh +0 -2
- package/zsh/zsh/functions/countdown.zsh +0 -33
- package/zsh/zsh/functions/curlheader.zsh +0 -12
- package/zsh/zsh/functions/curltime.zsh +0 -12
- package/zsh/zsh/functions/extract.zsh +0 -27
- package/zsh/zsh/functions/goto.zsh +0 -8
- package/zsh/zsh/functions/history-all.zsh +0 -2
- package/zsh/zsh/functions/hostinfo.zsh +0 -19
- package/zsh/zsh/functions/httpdebug.zsh +0 -2
- package/zsh/zsh/functions/keygen.zsh +0 -18
- package/zsh/zsh/functions/logout.zsh +0 -5
- package/zsh/zsh/functions/lowercase.zsh +0 -23
- package/zsh/zsh/functions/matrix.zsh +0 -4
- package/zsh/zsh/functions/mcd.zsh +0 -11
- package/zsh/zsh/functions/mount_read_only.zsh +0 -4
- package/zsh/zsh/functions/myproc.zsh +0 -2
- package/zsh/zsh/functions/print.zsh +0 -8
- package/zsh/zsh/functions/ql.zsh +0 -2
- package/zsh/zsh/functions/rd.zsh +0 -8
- package/zsh/zsh/functions/remove_disk.zsh +0 -4
- package/zsh/zsh/functions/rm.zsh +0 -10
- package/zsh/zsh/functions/stopwatch.zsh +0 -8
- package/zsh/zsh/functions/trash.zsh +0 -8
- package/zsh/zsh/functions/tree.zsh +0 -8
- package/zsh/zsh/functions/uppercase.zsh +0 -23
- package/zsh/zsh/functions/zipf.zsh +0 -9
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
# }
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
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
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
|
@@ -0,0 +1,13 @@
|
|
|
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}"
|
|
@@ -0,0 +1,21 @@
|
|
|
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}"
|
|
@@ -0,0 +1,13 @@
|
|
|
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}"
|
|
@@ -0,0 +1,19 @@
|
|
|
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}"
|
|
@@ -0,0 +1,23 @@
|
|
|
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}"
|
|
@@ -0,0 +1,14 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
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
|
package/.curlrc
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# cURL configuration options
|
|
2
|
-
# http://curl.haxx.se/docs/manpage.html
|
|
3
|
-
|
|
4
|
-
# Limit the time (in seconds) the connection is allowed to take
|
|
5
|
-
connect-timeout = 60
|
|
6
|
-
|
|
7
|
-
# Follow HTTP redirects
|
|
8
|
-
location
|
|
9
|
-
|
|
10
|
-
# Display progress as a simple progress bar
|
|
11
|
-
progress-bar
|
|
12
|
-
|
|
13
|
-
# Show error messages
|
|
14
|
-
show-error
|
|
15
|
-
|
|
16
|
-
# Send a fake UA string for the HTTP servers that sniff it
|
|
17
|
-
user-agent = "Mozilla/5.0 Gecko"
|
package/.eslintrc
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"node": true
|
|
4
|
-
},
|
|
5
|
-
"parserOptions": {
|
|
6
|
-
"ecmaVersion": 6,
|
|
7
|
-
"sourceType": "module"
|
|
8
|
-
},
|
|
9
|
-
"rules": {
|
|
10
|
-
"comma-dangle": 0,
|
|
11
|
-
"no-console": 0,
|
|
12
|
-
"strict": [2, "global"],
|
|
13
|
-
"indent": [2, 2, {"SwitchCase": 1}],
|
|
14
|
-
"quotes": [2, "single"],
|
|
15
|
-
"semi": [2, "always"],
|
|
16
|
-
"keyword-spacing": 2,
|
|
17
|
-
"space-before-blocks": [2, "always"],
|
|
18
|
-
"space-before-function-paren": [2, "always"],
|
|
19
|
-
"dot-location": [2, "property"],
|
|
20
|
-
"space-infix-ops": 2,
|
|
21
|
-
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
|
|
22
|
-
"operator-linebreak": [2, "after"],
|
|
23
|
-
"no-spaced-func": 2,
|
|
24
|
-
"comma-spacing": [1, {"before": false, "after": true}],
|
|
25
|
-
"no-multiple-empty-lines": [2, {"max": 2}],
|
|
26
|
-
"camelcase": [1, {"properties": "always"}],
|
|
27
|
-
"curly": 2,
|
|
28
|
-
"wrap-iife": [2, "inside"],
|
|
29
|
-
"eqeqeq": 2,
|
|
30
|
-
"no-use-before-define": [2, "nofunc"],
|
|
31
|
-
"no-unused-vars": 2,
|
|
32
|
-
"no-unexpected-multiline": 2,
|
|
33
|
-
"no-multi-str": 2,
|
|
34
|
-
"no-irregular-whitespace": 2,
|
|
35
|
-
"no-trailing-spaces": 2,
|
|
36
|
-
"linebreak-style": 0,
|
|
37
|
-
"eol-last": 2
|
|
38
|
-
},
|
|
39
|
-
"globals": {
|
|
40
|
-
"_" : true
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
package/.jshintrc
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"bitwise": true,
|
|
3
|
-
"camelcase": true,
|
|
4
|
-
"curly": true,
|
|
5
|
-
"eqeqeq": true,
|
|
6
|
-
"esnext": false,
|
|
7
|
-
"esversion": 6,
|
|
8
|
-
"immed": true,
|
|
9
|
-
"indent": 2,
|
|
10
|
-
"latedef": true,
|
|
11
|
-
"newcap": true,
|
|
12
|
-
"noarg": true,
|
|
13
|
-
"node": true,
|
|
14
|
-
"quotmark": "single",
|
|
15
|
-
"regexp": true,
|
|
16
|
-
"smarttabs": true,
|
|
17
|
-
"strict": true,
|
|
18
|
-
"trailing": true,
|
|
19
|
-
"undef": true,
|
|
20
|
-
"unused": true,
|
|
21
|
-
"white": true
|
|
22
|
-
}
|
package/.travis.yml
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
sudo: false
|
|
2
|
-
language: bash
|
|
3
|
-
notifications:
|
|
4
|
-
email: false
|
|
5
|
-
after_success:
|
|
6
|
-
- export GIT_TAG=build-$TRAVIS_BRANCH-$(date -u "+%Y-%m-%d")-$TRAVIS_BUILD_NUMBER
|
|
7
|
-
- export TRAVIS_COMMIT_MSG="$(git log --format='%h - %B' --no-merges -n 1)"
|
|
8
|
-
- echo -n $GIT_TAG > v0.2.$TRAVIS_BUILD_NUMBER
|
|
9
|
-
- git commit -m "Set build VERSION number to v0.2."$TRAVIS_BUILD_NUMBER --allow-empty
|
|
10
|
-
- git tag $GIT_TAG -a -m "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
|
|
11
|
-
- git push --quiet https://$GITHUBKEY@github.com/reedia/dotfiles $GIT_TAG > /dev/null 2>&1
|
|
12
|
-
deploy:
|
|
13
|
-
provider: releases
|
|
14
|
-
skip-cleanup: true
|
|
15
|
-
keep-history: true
|
|
16
|
-
api_key:
|
|
17
|
-
secure: uTEGlCyxmVlq3xTYKdlRSttmhdXsGskn9gnBjbGUfzKd1V0h3Pg7AJ9AQixbJ5U2Yvg25QPEx3n3jmMCQowbAGqCRUe/C2nbo6AtugbqfDTKCq7b1BdQpM/tiX0/viyZDCLZ1kI/hI18DuiveSmi4XUMO2uKrId2/yJ2qk2kKLGq442HO6m/kPF867RqhNpbybgsy7l+7iEx7z5vLFYPYZybK7tc9I63XTrSHdyHGyCqEF0/PVqlPWSqeBlCasiQbK5BYvfmumfzpDffKMo1r4/SJH07hp3xt/IgUTZZ+6yA/MOUSZENgXWy44OU0RZam6PTHtJ+k6mOU4GTEghTwCeelmUpi1BNMQo2EcPBxaEP7UMUg154N6xAK2pRcVumfFuDFsztX7kUBIwJ/vVtYItByaw0fqOe+k3QBvLgYaBu07bgOcWy+bBJim0Rz8lIZkvpjhBipbFR6INCKK7DYKSIXOd1AUiEvOVxLs8R+Vc8VxU4lasTU5AYG/X75deGOcJNUX5gZMi0f/nMFbP1OPyNGWAHh4GZ4nHUUWNTrt9keM+1gVm+0nbo5Cj+M+L0Rr3yf7mlSmclL9cTE/kwYOl+7THT+t8DsuROoEymWrbP83eZ8JlJ7kingxhbA1hgfqUbPk+inC8y/al2BepbOw8OKiqp/MUOnZzzjFx5aAM=
|
|
18
|
-
name: Dotfiles v0.2.$TRAVIS_BUILD_NUMBER
|
|
19
|
-
body: <h3>Change Log:</h3>Automated release from TravisCI created on $(date +'%d/%m/%Y') at $(date +'%T')<br /><br /><strong>Description:</strong> Commit '$TRAVIS_COMMIT_MSG'<br /><br /><em>Dotfiles v0.2.$TRAVIS_BUILD_NUMBER - A set of Mac OS X configuration files. Designed to fit your web life.</em>
|
|
20
|
-
on:
|
|
21
|
-
repo: reedia/dotfiles
|
package/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
|
2
|
-
|
|
3
|
-
## Our Pledge
|
|
4
|
-
|
|
5
|
-
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
|
6
|
-
|
|
7
|
-
## Our Standards
|
|
8
|
-
|
|
9
|
-
Examples of behaviour that contributes to creating a positive environment include:
|
|
10
|
-
|
|
11
|
-
* Using welcoming and inclusive language
|
|
12
|
-
* Being respectful of differing viewpoints and experiences
|
|
13
|
-
* Gracefully accepting constructive criticism
|
|
14
|
-
* Focusing on what is best for the community
|
|
15
|
-
* Showing empathy towards other community members
|
|
16
|
-
|
|
17
|
-
Examples of unacceptable behaviour by participants include:
|
|
18
|
-
|
|
19
|
-
* The use of sexualised language or imagery and unwelcome sexual attention or advances
|
|
20
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
21
|
-
* Public or private harassment
|
|
22
|
-
* Publishing others' private information, such as a physical or electronic address, without explicit permission
|
|
23
|
-
* Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
24
|
-
|
|
25
|
-
## Our Responsibilities
|
|
26
|
-
|
|
27
|
-
Project maintainers are responsible for clarifying the standards of acceptable behaviour and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behaviour.
|
|
28
|
-
|
|
29
|
-
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviours that they deem inappropriate, threatening, offensive, or harmful.
|
|
30
|
-
|
|
31
|
-
## Scope
|
|
32
|
-
|
|
33
|
-
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
|
|
34
|
-
|
|
35
|
-
## Enforcement
|
|
36
|
-
|
|
37
|
-
Instances of abusive, harassing, or otherwise unacceptable behaviour may be reported by contacting the project team. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
|
|
38
|
-
|
|
39
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
|
|
40
|
-
|
|
41
|
-
## Attribution
|
|
42
|
-
|
|
43
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
|
|
44
|
-
|
|
45
|
-
[homepage]: http://contributor-covenant.org
|
|
46
|
-
[version]: http://contributor-covenant.org/version/1/4/
|