@sebastienrousseau/dotfiles 0.2.458 β 0.2.459
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 +62 -11
- package/dist/Makefile +31 -53
- package/dist/bin/constants.d.ts +2 -2
- package/dist/bin/constants.d.ts.map +1 -1
- package/dist/bin/constants.js +1 -1
- package/dist/bin/constants.js.map +1 -1
- package/dist/bin/dotfiles.js +1 -1
- package/dist/bin/dotfiles.js.map +1 -1
- package/dist/filesizes.txt +74 -26
- package/dist/lib/aliases/default/default.aliases.sh +2 -8
- package/dist/lib/aliases/gcloud/gcloud.aliases.sh +1 -1
- package/dist/lib/aliases/git/git.aliases.sh +5 -5
- package/dist/lib/aliases/heroku/heroku.aliases.sh +1 -1
- package/dist/lib/aliases/jekyll/jekyll.aliases.sh +1 -1
- package/dist/lib/aliases/pnpm/pnpm.aliases.sh +1 -1
- package/dist/lib/aliases/subversion/subversion.aliases.sh +1 -1
- package/dist/lib/aliases/tmux/tmux.aliases.sh +1 -1
- package/dist/lib/aliases.sh +1 -1
- package/dist/lib/configurations/bash/bashrc +24 -24
- package/dist/lib/configurations/curl/curlrc +1 -1
- package/dist/lib/configurations/default/color.sh +1 -1
- package/dist/lib/configurations/default/constants.sh +39 -0
- package/dist/lib/configurations/default/editor.sh +1 -1
- package/dist/lib/configurations/default/prompt.sh +1 -1
- package/dist/lib/configurations/gem/gemrc +9 -0
- package/dist/lib/configurations/{inputrc β input}/inputrc +1 -1
- package/dist/lib/configurations/nano/nanorc +34 -0
- package/dist/lib/configurations/profile/profile +1 -1
- package/dist/lib/configurations/tmux/default +1 -1
- package/dist/lib/configurations/tmux/display +1 -1
- package/dist/lib/configurations/tmux/linux +1 -1
- package/dist/lib/configurations/tmux/navigation +1 -1
- package/dist/lib/configurations/tmux/panes +1 -1
- package/dist/lib/configurations/tmux/theme +4 -4
- package/dist/lib/configurations/tmux/tmux +1 -1
- package/dist/lib/configurations/tmux/vi +1 -1
- package/dist/lib/configurations/vim/vimrc +1 -1
- package/dist/lib/configurations/wget/wgetrc +1 -1
- package/dist/lib/configurations/zsh/zshrc +15 -16
- package/dist/lib/configurations.sh +1 -1
- package/dist/lib/exit.sh +1 -1
- package/dist/lib/functions/cdls.sh +1 -1
- package/dist/lib/functions/changediskpwd.tmp +19 -0
- package/dist/lib/functions/code.tmp +18 -0
- package/dist/lib/functions/countdown.tmp +33 -0
- package/dist/lib/functions/curlheader.sh +1 -1
- package/dist/lib/functions/curltime.sh +1 -1
- package/dist/lib/functions/encode64.sh +1 -1
- package/dist/lib/functions/environment.sh +1 -1
- package/dist/lib/functions/extract.sh +1 -1
- package/dist/lib/functions/genpwd.sh +1 -1
- package/dist/lib/functions/goto.sh +1 -1
- package/dist/lib/functions/headers.tmp +4 -0
- package/dist/lib/functions/hidehiddenfiles.sh +1 -1
- package/dist/lib/functions/history-all.tmp +7 -0
- package/dist/lib/functions/hostinfo.sh +1 -1
- package/dist/lib/functions/hstats.sh +1 -1
- package/dist/lib/functions/httpdebug.sh +1 -1
- package/dist/lib/functions/keygen.sh +1 -1
- package/dist/lib/functions/last.sh +1 -1
- package/dist/lib/functions/logout.sh +1 -1
- package/dist/lib/functions/lowercase.sh +1 -1
- package/dist/lib/functions/macos.sh +1 -1
- package/dist/lib/functions/matrix.sh +7 -2
- package/dist/lib/functions/mcd.sh +1 -1
- package/dist/lib/functions/mount_read_only.sh +1 -1
- package/dist/lib/functions/myproc.sh +1 -1
- package/dist/lib/functions/prependpath.sh +1 -1
- package/dist/lib/functions/print.tmp +13 -0
- package/dist/lib/functions/ql.sh +1 -1
- package/dist/lib/functions/rd.sh +1 -1
- package/dist/lib/functions/remove_disk.sh +1 -1
- package/dist/lib/functions/ren.sh +1 -1
- package/dist/lib/functions/rm.tmp +13 -0
- package/dist/lib/functions/rps.tmp +103 -0
- package/dist/lib/functions/showhiddenfiles.sh +1 -1
- package/dist/lib/functions/size.sh +1 -1
- package/dist/lib/functions/stopwatch.sh +1 -1
- package/dist/lib/functions/trash.tmp +13 -0
- package/dist/lib/functions/tree.tmp +13 -0
- package/dist/lib/functions/uppercase.sh +1 -1
- package/dist/lib/functions/uuidgen.tmp +27 -0
- package/dist/lib/functions/view-source.sh +1 -1
- package/dist/lib/functions/vscode.sh +1 -1
- package/dist/lib/functions/whoisport.sh +1 -1
- package/dist/lib/functions/zipf.sh +1 -1
- package/dist/lib/functions.sh +1 -1
- package/dist/lib/history.sh +1 -1
- package/dist/lib/paths/ant/ant.paths.sh +1 -1
- package/dist/lib/paths/default/default.paths.sh +1 -1
- package/dist/lib/paths/homebrew/homebrew.paths.sh +1 -1
- package/dist/lib/paths/java/java.paths.sh +1 -1
- package/dist/lib/paths/maven/maven.paths.sh +1 -1
- package/dist/lib/paths/node/node.paths.sh +1 -1
- package/dist/lib/paths/nvm/nvm.paths.sh +1 -1
- package/dist/lib/paths/pnpm/pnpm.paths.sh +1 -1
- package/dist/lib/paths/python/python.paths.sh +1 -1
- package/dist/lib/paths/ruby/ruby.paths.sh +1 -1
- package/dist/lib/paths/tmux/tmux.paths.sh +1 -1
- package/dist/lib/paths.sh +1 -1
- package/dist/scripts/assemble.sh +32 -0
- package/dist/scripts/backup.sh +84 -0
- package/dist/scripts/banner.sh +18 -0
- package/dist/scripts/clean.sh +29 -0
- package/dist/scripts/compile.sh +52 -0
- package/dist/scripts/copy.sh +106 -0
- package/dist/scripts/dotfiles.sh +61 -0
- package/dist/scripts/download.sh +23 -0
- package/dist/scripts/help.sh +55 -0
- package/dist/scripts/unpack.sh +26 -0
- package/package.json +14 -37
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.459) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -105,7 +105,7 @@ alias op='sudo lsof -i -P' # op: L
|
|
|
105
105
|
alias p='pwd' # p: Shortcut for `pwd` which returns working directory name.
|
|
106
106
|
alias pa="clear && pwd && echo '' && ls && echo ''" # pa: Clear the screen, show the current directory, and list the files.
|
|
107
107
|
alias paa="clear && pwd && echo '' && ls -a && echo ''" # paa: Clear the screen, show the current directory, and list all files.
|
|
108
|
-
alias path='echo
|
|
108
|
+
alias path='echo ${PATH//:/\\n}' # path: Display the $PATH variable on newlines.
|
|
109
109
|
alias pid='ps -f' # pid: Display the uid, pid, parent pid, recent CPU usage, process start time, controlling tty, elapsed CPU usage, and the associated command.
|
|
110
110
|
alias ping='ping -c 5' # ping: Limit Ping to 5 ECHO_REQUEST packets.
|
|
111
111
|
alias please='sudo -' # sudo: Execute a command as the superuser.
|
|
@@ -171,12 +171,6 @@ elif [[ "$(uname || true)" = "Linux" ]]; then
|
|
|
171
171
|
sudo apt update;
|
|
172
172
|
sudo apt upgrade -y;
|
|
173
173
|
pnpm up;
|
|
174
|
-
brew cu -ayi;
|
|
175
|
-
brew doctor;
|
|
176
|
-
brew update;
|
|
177
|
-
brew upgrade;
|
|
178
|
-
brew cleanup;
|
|
179
|
-
mas upgrade;
|
|
180
174
|
sudo gem update;
|
|
181
175
|
sudo gem cleanup;
|
|
182
176
|
'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.459) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
@@ -366,10 +366,10 @@ alias grbk='git reset --soft HEAD^'
|
|
|
366
366
|
alias grcl='git remote prune'
|
|
367
367
|
|
|
368
368
|
# Show GIT Remote Origin for each immediate subfolder.
|
|
369
|
-
alias grf="find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c "cd '{}' && echo '{}' && git config --get remote.origin.url" \;"
|
|
369
|
+
# alias grf="find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c "cd '{}' && echo '{}' && git config --get remote.origin.url" \;"
|
|
370
370
|
|
|
371
371
|
# Fetch all git remotes for a repo.
|
|
372
|
-
alias grfall="git branch -r | awk -F'/' '{print "git fetch "$1,$2}' | xargs -I {} sh -c {}"
|
|
372
|
+
# alias grfall="git branch -r | awk -F'/' '{print "git fetch "$1,$2}' | xargs -I {} sh -c {}"
|
|
373
373
|
|
|
374
374
|
# For each remote branch, push it.
|
|
375
375
|
alias grp="git remote | xargs -I% -n1 git push %"
|
|
@@ -439,7 +439,7 @@ alias gst='git status'
|
|
|
439
439
|
alias gsta='git stash save '
|
|
440
440
|
|
|
441
441
|
# Remove untracked files in a git repository.
|
|
442
|
-
alias gstrmu='git status -su | cut -d' ' -f2- | tr "\n" "\0" | xargs -0 rm'
|
|
442
|
+
# alias gstrmu='git status -su | cut -d' ' -f2- | tr "\n" "\0" | xargs -0 rm'
|
|
443
443
|
|
|
444
444
|
# Status with short format instead of full details.
|
|
445
445
|
alias gsts='git status --short'
|
|
@@ -550,7 +550,7 @@ alias grmx='git ls-files -z -d | xargs -0 git rm --'
|
|
|
550
550
|
## ----------------------------------------------------------------------------
|
|
551
551
|
|
|
552
552
|
# Prints per-line contribution per author for a GIT repository.
|
|
553
|
-
alias gblau='git ls-files | xargs -n1 git blame --line-porcelain | sed -n 's/^author //p' | sort -f | uniq -ic | sort -nr'
|
|
553
|
+
# alias gblau='git ls-files | xargs -n1 git blame --line-porcelain | sed -n 's/^author //p' | sort -f | uniq -ic | sort -nr'
|
|
554
554
|
|
|
555
555
|
|
|
556
556
|
|
package/dist/lib/aliases.sh
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.459) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
|
-
## π
π
°ππ
Έπ
°π
±π
»π
΄π - Set
|
|
7
|
-
HOSTNAME=$(hostname -f)
|
|
8
|
-
INPUTRC=${HOME}/.inputrc
|
|
9
|
-
OS_ARCH=$(uname -m)
|
|
10
|
-
OS_NAME=$(uname)
|
|
11
|
-
OS_VERSION=$(uname -r)
|
|
12
|
-
SSL_CERT_FILE=${HOME}/cacert.pem
|
|
13
|
-
USER_LANGUAGE="en_GB.UTF-8"
|
|
14
|
-
USER=$(whoami)
|
|
6
|
+
## π
π
°ππ
Έπ
°π
±π
»π
΄π - Set Dotfiles variable.
|
|
7
|
+
HOSTNAME=$(hostname -f) # hostname of the machine.
|
|
8
|
+
INPUTRC=${HOME}/.inputrc # set INPUTRC (so that .inputrc is respected)
|
|
9
|
+
OS_ARCH=$(uname -m) # machine hardware name.
|
|
10
|
+
OS_NAME=$(uname) # operating system name.
|
|
11
|
+
OS_VERSION=$(uname -r) # operating system version number.
|
|
12
|
+
SSL_CERT_FILE=${HOME}/cacert.pem # set the SSL_CERT_FILE environment variable.
|
|
13
|
+
USER_LANGUAGE="en_GB.UTF-8" # default language.
|
|
14
|
+
USER=$(whoami) # current user name.
|
|
15
15
|
|
|
16
16
|
## π
΄ππ
Ώπ
Ύπππ - Export the variables.
|
|
17
|
-
export ARCHFLAGS="-arch ${OS_ARCH}"
|
|
18
|
-
export DOTFILES_VERSION='0.2.
|
|
19
|
-
export DOTFILES="${HOME}"/.dotfiles/lib
|
|
20
|
-
export HOSTNAME=${HOSTNAME}
|
|
21
|
-
export INPUTRC=${INPUTRC}
|
|
22
|
-
export LANG=${USER_LANGUAGE}
|
|
23
|
-
export LANGUAGE=${USER_LANGUAGE}
|
|
24
|
-
export LC_ALL=${USER_LANGUAGE}
|
|
25
|
-
export OS_ARCH
|
|
26
|
-
export OS_NAME
|
|
27
|
-
export OS_VERSION
|
|
28
|
-
export SSL_CERT_FILE=${SSL_CERT_FILE}
|
|
29
|
-
export TERM=xterm-256color
|
|
30
|
-
export USER
|
|
17
|
+
export ARCHFLAGS="-arch ${OS_ARCH}" # archflags for the current machine.
|
|
18
|
+
export DOTFILES_VERSION='0.2.459' # version of the dotfiles.
|
|
19
|
+
export DOTFILES="${HOME}"/.dotfiles/lib # path to the cross plaform dotfiles.
|
|
20
|
+
export HOSTNAME=${HOSTNAME} # hostname of the machine.
|
|
21
|
+
export INPUTRC=${INPUTRC} # set INPUTRC (so that .inputrc is respected)
|
|
22
|
+
export LANG=${USER_LANGUAGE} # default language.
|
|
23
|
+
export LANGUAGE=${USER_LANGUAGE} # default language.
|
|
24
|
+
export LC_ALL=${USER_LANGUAGE} # default language.
|
|
25
|
+
export OS_ARCH # machine hardware name.
|
|
26
|
+
export OS_NAME # operating system name.
|
|
27
|
+
export OS_VERSION # operating system version number.
|
|
28
|
+
export SSL_CERT_FILE=${SSL_CERT_FILE} # set the SSL_CERT_FILE environment variable.
|
|
29
|
+
export TERM=xterm-256color # default terminal color.
|
|
30
|
+
export USER # current user name.
|
|
31
31
|
|
|
32
32
|
## π
»π
Ύπ
°π
³π
΄ππ - Load the dotfiles.
|
|
33
33
|
for loaders in "${DOTFILES}"/*.sh; do
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.459) - https://dotfiles.io
|
|
3
|
+
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
|
+
# License: MIT
|
|
5
|
+
|
|
6
|
+
## π
³π
Ύππ
΅π
Έπ
»π
΄π π
π
°ππ
Έπ
°π
±π
»π
΄π - Set Dotfiles variables.
|
|
7
|
+
# DF_CURRENT_DIR=${PWD} # Current directory.
|
|
8
|
+
DF_DIR="${HOME}/.dotfiles/" # Dotfiles directory.
|
|
9
|
+
DF_BACKUPDIR="${HOME}/dotfiles_backup" # Backup directory.
|
|
10
|
+
DF_DOWNLOADDIR="${HOME}/Downloads" # Download directory.
|
|
11
|
+
DF_VERSION="0.2.459" # Dotfiles Version number.
|
|
12
|
+
DF_TIMESTAMP="$(date +%Y-%m-%d_%H-%M-%S)" # Timestamp for backup directory.
|
|
13
|
+
|
|
14
|
+
export DF_BACKUPDIR
|
|
15
|
+
export DF_DIR
|
|
16
|
+
export DF_DOWNLOADDIR
|
|
17
|
+
export DF_TIMESTAMP
|
|
18
|
+
export DF_VERSION
|
|
19
|
+
|
|
20
|
+
## π
²π
Ύπ
»π
Ύππ - Set colors.
|
|
21
|
+
BLACK="$(tput setaf 0)" # Black
|
|
22
|
+
BLUE="$(tput bold && tput setaf 4)" # Blue
|
|
23
|
+
CYAN="$(tput bold && tput setaf 6)" # Cyan
|
|
24
|
+
GREEN="$(tput bold && tput setaf 2)" # Green
|
|
25
|
+
NC="$(tput sgr0)" # No Color
|
|
26
|
+
PURPLE="$(tput bold && tput setaf 5)" # Purple
|
|
27
|
+
RED="$(tput bold && tput setaf 1)" # Red
|
|
28
|
+
WHITE="$(tput bold && tput setaf 7)" # White
|
|
29
|
+
YELLOW="$(tput bold && tput setaf 3)" # Yellow
|
|
30
|
+
|
|
31
|
+
export BLACK
|
|
32
|
+
export BLUE
|
|
33
|
+
export CYAN
|
|
34
|
+
export GREEN
|
|
35
|
+
export NC
|
|
36
|
+
export PURPLE
|
|
37
|
+
export RED
|
|
38
|
+
export WHITE
|
|
39
|
+
export YELLOW
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.459) - <https://dotfiles.io>
|
|
2
|
+
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
3
|
+
# License: MIT
|
|
4
|
+
|
|
5
|
+
# π
½π
°π
½π
Ύππ
²
|
|
6
|
+
|
|
7
|
+
# Display
|
|
8
|
+
set atblanks # Display trailing blanks
|
|
9
|
+
set autoindent # Indent new lines to the previous line's indentation
|
|
10
|
+
set backup # Creates backups of your current file.
|
|
11
|
+
set boldtext # Display bold text
|
|
12
|
+
set bookstyle # Display bookstyle
|
|
13
|
+
set casesensitive # Perform case-sensitive searches
|
|
14
|
+
set constantshow # Constantly show the cursor position in the status bar
|
|
15
|
+
set historylog # Log search and replace strings to `~/.nano_history`
|
|
16
|
+
set functioncolor cyan # Color of function names
|
|
17
|
+
set keycolor cyan # Color of the key bindings in the help menu
|
|
18
|
+
set linenumbers # Show line numbers in front of the text
|
|
19
|
+
set mouse # Enable mouse support
|
|
20
|
+
set noconvert # Keep original end-of-line formatting
|
|
21
|
+
set numbercolor yellow # Set the color of the line numbers
|
|
22
|
+
set preserve # Preserve the XON `^Q` and XOFF `^S` keys for the terminal
|
|
23
|
+
set showcursor # Show the cursor position
|
|
24
|
+
set smarthome # Make the Home key smarter
|
|
25
|
+
set softwrap # Enable soft wrapping
|
|
26
|
+
set statuscolor black,yellow # Set the color of the status bar
|
|
27
|
+
set tabsize 4 # Set the tab size to 4 spaces
|
|
28
|
+
set tabstospaces # Convert typed tabs to spaces
|
|
29
|
+
set trimblanks # Trim trailing whitespace on save
|
|
30
|
+
set titlecolor white,red # Set the color of the title bar
|
|
31
|
+
set whitespace "Β»β
" # Show whitespace as dots
|
|
32
|
+
set wordbounds # Detect word boundaries
|
|
33
|
+
set wordchars "_" # Allow underscores in words
|
|
34
|
+
set zap # Let `Backspace` and `Delete` keys erase a marked region
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
1
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.459) - https://dotfiles.io
|
|
2
2
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
3
3
|
# License: MIT
|
|
4
4
|
|
|
@@ -17,11 +17,11 @@ if 'uname -s | grep -q MINGW' 'set -g status-left "#[bg=#007ACC] πͺ Windows #[
|
|
|
17
17
|
set -g status-bg "#2D1681" # Status bar background color (purple)
|
|
18
18
|
set -g status-fg "#FFFFFF" # Status bar foreground color (text)
|
|
19
19
|
set -g status-interval 5 # Status bar refresh interval in seconds
|
|
20
|
-
set -g status-justify
|
|
20
|
+
set -g status-justify centre # Status bar justification (left, right, centre, absolute-left, absolute-right, absolute-centre)
|
|
21
21
|
set -g status-left-length 50 # Status bar left length
|
|
22
22
|
set -g status-right-length 50 # Status bar right length
|
|
23
|
-
set -g status-right "#[fg=#FFFFFF] #[bg=#14222A] β¬ #I #[bg=#007ACC]
|
|
24
|
-
set -g window-status-current-format "#[bg=#2D1681]Dotfiles (v0.2.
|
|
23
|
+
set -g status-right "#[fg=#FFFFFF] #[bg=#14222A] β¬ #I #[bg=#007ACC] #H #[bg=#EB0000] %_d %B %I:%M%p "
|
|
24
|
+
set -g window-status-current-format "#[bg=#2D1681]Dotfiles (v0.2.459)" # Current window status format
|
|
25
25
|
set -g window-status-current-style "bg=#EB0000" # Current window status style
|
|
26
26
|
set -g window-status-separator "" # Window status separator
|
|
27
27
|
set-window-option -g clock-mode-colour "#FFFFFF" # Clock mode color
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.459) - https://dotfiles.io
|
|
3
3
|
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
4
|
# License: MIT
|
|
5
5
|
|
|
6
|
-
## π
π
°ππ
Έπ
°π
±π
»π
΄π - Set
|
|
6
|
+
## π
π
°ππ
Έπ
°π
±π
»π
΄π - Set Dotfiles variable.
|
|
7
7
|
HOSTNAME=$(hostname -f) # hostname of the machine.
|
|
8
8
|
INPUTRC=${HOME}/.inputrc # set INPUTRC (so that .inputrc is respected)
|
|
9
9
|
OS_ARCH=$(uname -m) # machine hardware name.
|
|
@@ -14,20 +14,20 @@ USER_LANGUAGE="en_GB.UTF-8" # default language.
|
|
|
14
14
|
USER=$(whoami) # current user name.
|
|
15
15
|
|
|
16
16
|
## π
΄ππ
Ώπ
Ύπππ - Export the variables.
|
|
17
|
-
export ARCHFLAGS="-arch ${OS_ARCH}"
|
|
18
|
-
export DOTFILES_VERSION='0.2.
|
|
17
|
+
export ARCHFLAGS="-arch ${OS_ARCH}" # archflags for the current machine.
|
|
18
|
+
export DOTFILES_VERSION='0.2.459' # version of the dotfiles.
|
|
19
19
|
export DOTFILES="${HOME}"/.dotfiles/lib # path to the cross plaform dotfiles.
|
|
20
|
-
export HOSTNAME=${HOSTNAME}
|
|
21
|
-
export INPUTRC=${INPUTRC}
|
|
22
|
-
export LANG=${USER_LANGUAGE}
|
|
23
|
-
export LANGUAGE=${USER_LANGUAGE}
|
|
24
|
-
export LC_ALL=${USER_LANGUAGE}
|
|
25
|
-
export OS_ARCH
|
|
26
|
-
export OS_NAME
|
|
27
|
-
export OS_VERSION
|
|
28
|
-
export SSL_CERT_FILE=${SSL_CERT_FILE}
|
|
29
|
-
export TERM=xterm-256color
|
|
30
|
-
export USER
|
|
20
|
+
export HOSTNAME=${HOSTNAME} # hostname of the machine.
|
|
21
|
+
export INPUTRC=${INPUTRC} # set INPUTRC (so that .inputrc is respected)
|
|
22
|
+
export LANG=${USER_LANGUAGE} # default language.
|
|
23
|
+
export LANGUAGE=${USER_LANGUAGE} # default language.
|
|
24
|
+
export LC_ALL=${USER_LANGUAGE} # default language.
|
|
25
|
+
export OS_ARCH # machine hardware name.
|
|
26
|
+
export OS_NAME # operating system name.
|
|
27
|
+
export OS_VERSION # operating system version number.
|
|
28
|
+
export SSL_CERT_FILE=${SSL_CERT_FILE} # set the SSL_CERT_FILE environment variable.
|
|
29
|
+
export TERM=xterm-256color # default terminal color.
|
|
30
|
+
export USER # current user name.
|
|
31
31
|
|
|
32
32
|
## π
»π
Ύπ
°π
³π
΄ππ - Load the dotfiles.
|
|
33
33
|
for loaders in "${DOTFILES}"/*.sh; do
|
|
@@ -47,4 +47,3 @@ autoload -Uz colors && colors
|
|
|
47
47
|
|
|
48
48
|
# Starting to find autocorrect rather annoying...
|
|
49
49
|
unsetopt correct_all
|
|
50
|
-
|
package/dist/lib/exit.sh
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.459) - https://dotfiles.io
|
|
3
|
+
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
|
+
# License: MIT
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# https://dotfiles.io
|
|
8
|
+
#
|
|
9
|
+
# Description: Mac OS X Dotfiles - Simply designed to fit your shell life.
|
|
10
|
+
#
|
|
11
|
+
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
12
|
+
# Licensed under the MIT license
|
|
13
|
+
#
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# changediskpwd: Function to change the password on an encrypted disk image
|
|
17
|
+
# changediskpwd() {
|
|
18
|
+
# hdiutil chpass "$1"
|
|
19
|
+
# }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.459) - https://dotfiles.io
|
|
3
|
+
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
|
+
# License: MIT
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# https://dotfiles.io
|
|
8
|
+
#
|
|
9
|
+
# Description: Mac OS X Dotfiles - Simply designed to fit your shell life.
|
|
10
|
+
#
|
|
11
|
+
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
12
|
+
# Licensed under the MIT license
|
|
13
|
+
#
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# TODO: Fix code function
|
|
17
|
+
# Add Visual Studio Code (code)
|
|
18
|
+
# code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $"*" ;}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.459) - https://dotfiles.io
|
|
3
|
+
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
4
|
+
# License: MIT
|
|
5
|
+
|
|
6
|
+
# countdown: Function for countdown
|
|
7
|
+
|
|
8
|
+
# TODO: Fix countdown function
|
|
9
|
+
# countdown() {
|
|
10
|
+
|
|
11
|
+
# if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then
|
|
12
|
+
# echo "usage:
|
|
13
|
+
# countdown [SECONDS]
|
|
14
|
+
# countdown"
|
|
15
|
+
# exit 0
|
|
16
|
+
# fi
|
|
17
|
+
# if [ -z "$1" ]; then
|
|
18
|
+
# read -rp "Enter a number of seconds to countdown from: " seconds
|
|
19
|
+
# else
|
|
20
|
+
# seconds=$1
|
|
21
|
+
# fi
|
|
22
|
+
# : "${x=60}"
|
|
23
|
+
# for ((c = 1; c <= seconds; c++)); do
|
|
24
|
+
# sleep 1
|
|
25
|
+
# seconds_remaining=$((seconds - c))
|
|
26
|
+
# echo -ne "\033[2k\rCountdown: $seconds_remaining seconds"
|
|
27
|
+
# done
|
|
28
|
+
# echo -ne "\033[2k\r"
|
|
29
|
+
# echo "Countdown finished on $(date)"
|
|
30
|
+
# }
|
|
31
|
+
|
|
32
|
+
# alias cntd='countdown' # Alias for countdown
|
|
33
|
+
# alias ctd='countdown' # Alias for countdown
|