@sebastienrousseau/dotfiles 0.2.457 → 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 +181 -96
- package/dist/Makefile +31 -53
- package/dist/bin/constants.d.ts +4 -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 -2
- package/dist/bin/dotfiles.js.map +1 -1
- package/dist/bin/index.js +0 -0
- package/dist/filesizes.txt +288 -230
- package/dist/{shell → lib}/README.md +0 -0
- package/dist/lib/aliases/default/default.aliases.sh +177 -0
- package/dist/{shell → lib}/aliases/gcloud/gcloud.aliases.sh +1 -1
- package/dist/lib/aliases/git/git.aliases.sh +569 -0
- package/dist/{shell → lib}/aliases/heroku/heroku.aliases.sh +1 -1
- package/dist/{shell → lib}/aliases/jekyll/jekyll.aliases.sh +1 -1
- package/dist/{shell → lib}/aliases/pnpm/pnpm.aliases.sh +1 -1
- package/dist/{shell → lib}/aliases/subversion/subversion.aliases.sh +1 -1
- package/dist/{shell → lib}/aliases/tmux/tmux.aliases.sh +1 -1
- package/dist/{shell → lib}/aliases.sh +2 -2
- package/dist/{shell → lib}/configurations/README.md +0 -0
- package/dist/lib/configurations/bash/bashrc +36 -0
- package/dist/{shell → lib}/configurations/curl/cacert.pem +0 -0
- package/dist/{shell → lib}/configurations/curl/curlrc +1 -1
- package/dist/{shell → lib}/configurations/default/color.sh +1 -1
- package/dist/lib/configurations/default/constants.sh +39 -0
- package/dist/{shell → lib}/configurations/default/editor.sh +1 -1
- package/dist/{shell → lib}/configurations/default/prompt.sh +1 -1
- package/dist/lib/configurations/gem/gemrc +9 -0
- package/dist/{shell → lib}/configurations/input/inputrc +1 -1
- package/dist/{shell → lib}/configurations/jshint/jshintrc +0 -0
- package/dist/lib/configurations/nano/nanorc +34 -0
- package/dist/{shell → lib}/configurations/profile/profile +1 -1
- package/dist/lib/configurations/tmux/default +17 -0
- package/dist/lib/configurations/tmux/display +25 -0
- package/dist/lib/configurations/tmux/linux +17 -0
- package/dist/lib/configurations/tmux/navigation +29 -0
- package/dist/lib/configurations/tmux/panes +9 -0
- package/dist/lib/configurations/tmux/theme +28 -0
- package/dist/lib/configurations/tmux/tmux +20 -0
- package/dist/lib/configurations/tmux/vi +5 -0
- package/dist/{shell → lib}/configurations/vim/vimrc +1 -1
- package/dist/{shell → lib}/configurations/wget/wgetrc +1 -1
- package/dist/lib/configurations/zsh/zshrc +49 -0
- package/dist/{shell → lib}/configurations.sh +2 -2
- package/dist/{shell → lib}/exit.sh +1 -1
- package/dist/{shell → lib}/functions/README.md +0 -0
- package/dist/{shell → 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/{shell → lib}/functions/curlheader.sh +1 -1
- package/dist/{shell → lib}/functions/curltime.sh +1 -1
- package/dist/{shell → lib}/functions/encode64.sh +1 -1
- package/dist/{shell → lib}/functions/environment.sh +1 -1
- package/dist/{shell → lib}/functions/extract.sh +1 -1
- package/dist/{shell → lib}/functions/filehead.sh +0 -0
- package/dist/{shell → lib}/functions/genpwd.sh +1 -1
- package/dist/{shell → lib}/functions/goto.sh +1 -1
- package/dist/lib/functions/headers.tmp +4 -0
- package/dist/{shell → lib}/functions/hidehiddenfiles.sh +1 -1
- package/dist/lib/functions/history-all.tmp +7 -0
- package/dist/{shell → lib}/functions/hostinfo.sh +1 -1
- package/dist/{shell → lib}/functions/hstats.sh +1 -1
- package/dist/{shell → lib}/functions/httpdebug.sh +1 -1
- package/dist/{shell → lib}/functions/keygen.sh +1 -1
- package/dist/{shell → lib}/functions/last.sh +1 -1
- package/dist/{shell → lib}/functions/logout.sh +1 -1
- package/dist/{shell → lib}/functions/lowercase.sh +1 -1
- package/dist/{shell → lib}/functions/macos.sh +1 -1
- package/dist/lib/functions/matrix.sh +14 -0
- package/dist/{shell → lib}/functions/mcd.sh +1 -1
- package/dist/{shell → lib}/functions/mount_read_only.sh +1 -1
- package/dist/{shell → lib}/functions/myproc.sh +1 -1
- package/dist/{shell → lib}/functions/prependpath.sh +1 -1
- package/dist/lib/functions/print.tmp +13 -0
- package/dist/{shell → lib}/functions/ql.sh +1 -1
- package/dist/{shell → lib}/functions/rd.sh +1 -1
- package/dist/{shell → lib}/functions/remove_disk.sh +1 -1
- package/dist/{shell → lib}/functions/ren.sh +1 -1
- package/dist/lib/functions/rm.tmp +13 -0
- package/dist/lib/functions/rps.tmp +103 -0
- package/dist/{shell → lib}/functions/showhiddenfiles.sh +1 -1
- package/dist/{shell → lib}/functions/size.sh +1 -1
- package/dist/{shell → lib}/functions/stopwatch.sh +1 -1
- package/dist/lib/functions/trash.tmp +13 -0
- package/dist/lib/functions/tree.tmp +13 -0
- package/dist/{shell → lib}/functions/uppercase.sh +1 -1
- package/dist/lib/functions/uuidgen.tmp +27 -0
- package/dist/{shell → lib}/functions/view-source.sh +1 -1
- package/dist/{shell → lib}/functions/vscode.sh +1 -1
- package/dist/{shell → lib}/functions/whoisport.sh +1 -1
- package/dist/{shell → lib}/functions/zipf.sh +1 -1
- package/dist/{shell → lib}/functions.sh +2 -2
- package/dist/{shell → lib}/history.sh +1 -1
- package/dist/{shell → lib}/paths/ant/ant.paths.sh +1 -1
- package/dist/{shell → lib}/paths/default/default.paths.sh +1 -1
- package/dist/{shell → lib}/paths/homebrew/homebrew.paths.sh +1 -1
- package/dist/{shell → lib}/paths/java/java.paths.sh +1 -1
- package/dist/{shell → lib}/paths/maven/maven.paths.sh +1 -1
- package/dist/{shell → lib}/paths/node/node.paths.sh +1 -1
- package/dist/{shell → lib}/paths/nvm/nvm.paths.sh +1 -1
- package/dist/{shell → lib}/paths/pnpm/pnpm.paths.sh +1 -1
- package/dist/{shell → lib}/paths/python/python.paths.sh +1 -1
- package/dist/{shell → lib}/paths/ruby/ruby.paths.sh +1 -1
- package/dist/{shell → lib}/paths/tmux/tmux.paths.sh +2 -2
- package/dist/{shell → lib}/paths.sh +2 -2
- 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 +21 -44
- package/dist/bin/compile.sh +0 -16
- package/dist/bin/copy.sh +0 -21
- package/dist/bin/dotfiles.sh +0 -185
- package/dist/shell/aliases/default/default.aliases.sh +0 -199
- package/dist/shell/configurations/bash/bashrc +0 -36
- package/dist/shell/configurations/tmux/tmux +0 -95
- package/dist/shell/configurations/zsh/zshrc +0 -50
- package/dist/shell/functions/matrix.sh +0 -9
|
@@ -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
|
|
File without changes
|
|
@@ -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
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
|
|
2
|
+
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
3
|
+
# License: MIT
|
|
4
|
+
|
|
5
|
+
## 🅳🅴🅵🅰🆄🅻🆃
|
|
6
|
+
set -g default-terminal "screen-256color" # use 256 colors
|
|
7
|
+
if 'infocmp -x tmux-256color > /dev/null 2>&1' 'set -g default-terminal "tmux-256color"'
|
|
8
|
+
|
|
9
|
+
bind C-a send-prefix -2 # GNU-Screen compatible prefix
|
|
10
|
+
set -g history-limit 102400 # Increase history limit
|
|
11
|
+
set -g prefix2 C-a # GNU-Screen compatible prefix
|
|
12
|
+
set -g set-clipboard on # Copy to system clipboard
|
|
13
|
+
set -s escape-time 10 # Faster command sequences
|
|
14
|
+
set -s focus-events on # Enable mouse focus events
|
|
15
|
+
set -sg repeat-time 600 # Increase repeat timeout
|
|
16
|
+
setw -g xterm-keys on # Enable xterm keys
|
|
17
|
+
setw -q -g utf8 on # Expect UTF-8 (tmux < 2.2)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
|
|
2
|
+
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
3
|
+
# License: MIT
|
|
4
|
+
|
|
5
|
+
## 🅳🅸🆂🅿🅻🅰🆈
|
|
6
|
+
bind -n C-l send-keys C-l \; run 'sleep 0.2' \; clear-history # clear both screen and history
|
|
7
|
+
set -g aggressive-resize on # resize panes automatically when window is resized
|
|
8
|
+
set -g base-index 1 # start windows numbering at 1
|
|
9
|
+
set -g bell-action none # disable bell
|
|
10
|
+
set -g display-panes-time 800 # slightly longer pane indicators display time
|
|
11
|
+
set -g display-time 1000 # slightly longer status messages display time
|
|
12
|
+
set -g monitor-activity on # monitor for activity
|
|
13
|
+
set -g renumber-windows on # renumber windows when a window is closed
|
|
14
|
+
set -g set-titles off # set terminal title
|
|
15
|
+
set -g status-interval 10 # redraw status line every 10 seconds
|
|
16
|
+
set -g visual-activity off # disable visual activity
|
|
17
|
+
set -g visual-bell off # disable visual bell
|
|
18
|
+
set -g visual-silence off # disable visual silence
|
|
19
|
+
setw -g allow-rename off # disable window renaming
|
|
20
|
+
setw -g automatic-rename off # disable automatic window renaming
|
|
21
|
+
setw -g mode-keys vi # vi mode
|
|
22
|
+
setw -g automatic-rename off # rename window to reflect current program
|
|
23
|
+
setw -g monitor-activity on # disable monitor for activity
|
|
24
|
+
setw -g pane-base-index 1 # make pane numbering consistent with windows
|
|
25
|
+
setw -g synchronize-panes off # disable pane synchronization
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
|
|
2
|
+
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
3
|
+
# License: MIT
|
|
4
|
+
|
|
5
|
+
## 🅻🅸🅽🆄🆇 🅾🅽🅻🆈
|
|
6
|
+
bind -n C-WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M # scroll up
|
|
7
|
+
bind -n WheelDownPane select-pane -t= \; send-keys -M # scroll down
|
|
8
|
+
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'" # scroll up
|
|
9
|
+
bind -T copy-mode-emacs C-WheelDownPane send-keys -X halfpage-down # scroll down half page
|
|
10
|
+
bind -T copy-mode-emacs C-WheelUpPane send-keys -X halfpage-up # scroll up half page
|
|
11
|
+
bind -T copy-mode-vi C-WheelDownPane send-keys -X halfpage-down # scroll down half page
|
|
12
|
+
bind -T copy-mode-vi C-WheelUpPane send-keys -X halfpage-up # scroll up half page
|
|
13
|
+
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -selection c" # copy to system clipboard
|
|
14
|
+
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard" # copy to system clipboard
|
|
15
|
+
set -g mouse on # enable mouse
|
|
16
|
+
setw -g mode-keys vi # vi mode
|
|
17
|
+
unbind -T copy-mode-vi Enter # unbind default Enter
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
|
|
2
|
+
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
3
|
+
# License: MIT
|
|
4
|
+
|
|
5
|
+
## 🅽🅰🆅🅸🅶🅰🆃🅸🅾🅽
|
|
6
|
+
bind _ split-window -h # split current window horizontally
|
|
7
|
+
bind - split-window -v # split current window vertically
|
|
8
|
+
bind -r C-h previous-window # select previous window
|
|
9
|
+
bind -r C-l next-window # select next window
|
|
10
|
+
bind -r h select-pane -L # move left
|
|
11
|
+
bind -r j select-pane -D # move down
|
|
12
|
+
bind -r k select-pane -U # move up
|
|
13
|
+
bind -r l select-pane -R # move right
|
|
14
|
+
bind + run 'cut -c3- ~/.tmux.conf | sh -s _maximize_pane "#{session_name}" #D' # maximize current pane
|
|
15
|
+
bind < swap-pane -U # swap current pane with the previous one
|
|
16
|
+
bind > swap-pane -D # swap current pane with the next one
|
|
17
|
+
bind | split-window -h -c "#{pane_current_path}" # split current window horizontally
|
|
18
|
+
bind a last -t : # move to last active window
|
|
19
|
+
bind BTab switch-client -l # move to last session
|
|
20
|
+
bind C-c new-session # create session
|
|
21
|
+
bind C-f command-prompt -p find-session 'switch-client -t %%' # find session
|
|
22
|
+
bind e neww -n tmux-config "\${EDITOR:-vim} ~/.tmux.conf" # edit configuration
|
|
23
|
+
bind m run "cut -c3- ~/.tmux.conf | sh -s _toggle_mouse" # toggle mouse
|
|
24
|
+
bind N new-window # create window
|
|
25
|
+
bind r source-file ~/.tmux.conf \; display ".tmux.conf reloaded" # reload configuration
|
|
26
|
+
bind Tab last-window # move to last active window
|
|
27
|
+
bind U run "cut -c3- ~/.tmux.conf | sh -s _urlview #{pane_id}" # urlview
|
|
28
|
+
unbind n # unbind default next-window
|
|
29
|
+
unbind p # unbind default previous-window
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
|
|
2
|
+
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
3
|
+
# License: MIT
|
|
4
|
+
|
|
5
|
+
## 🅿🅰🅽🅴🆂
|
|
6
|
+
set-option -g pane-base-index 1 # set first pane to index 1 (not 0) to map more to the keyboard layout...
|
|
7
|
+
bind-key q kill-pane # confirm before killing a window or the server
|
|
8
|
+
bind -n M-c kill-pane \; select-layout
|
|
9
|
+
bind -n M-n split-window \; select-layout
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
|
|
2
|
+
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
3
|
+
# License: MIT
|
|
4
|
+
|
|
5
|
+
## 🆃🅷🅴🅼🅴
|
|
6
|
+
|
|
7
|
+
# macOS version
|
|
8
|
+
if 'uname -s | grep -q Darwin' 'set -g status-left "#[bg=#007ACC] macOS #S #[bg=#EB0000] #W #[bg=#14222A]"'
|
|
9
|
+
|
|
10
|
+
# Linux version
|
|
11
|
+
if 'uname -s | grep -q Linux' 'set -g status-left "#[bg=#007ACC] 🐧 Linux #[bg=#EB0000] #W #[bg=#14222A]"'
|
|
12
|
+
|
|
13
|
+
# Windows version
|
|
14
|
+
if 'uname -s | grep -q MINGW' 'set -g status-left "#[bg=#007ACC] 🪟 Windows #[bg=#EB0000] #W #[bg=#14222A]"'
|
|
15
|
+
|
|
16
|
+
# Status bar customisation
|
|
17
|
+
set -g status-bg "#2D1681" # Status bar background color (purple)
|
|
18
|
+
set -g status-fg "#FFFFFF" # Status bar foreground color (text)
|
|
19
|
+
set -g status-interval 5 # Status bar refresh interval in seconds
|
|
20
|
+
set -g status-justify centre # Status bar justification (left, right, centre, absolute-left, absolute-right, absolute-centre)
|
|
21
|
+
set -g status-left-length 50 # Status bar left length
|
|
22
|
+
set -g status-right-length 50 # Status bar right length
|
|
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
|
+
set -g window-status-current-style "bg=#EB0000" # Current window status style
|
|
26
|
+
set -g window-status-separator "" # Window status separator
|
|
27
|
+
set-window-option -g clock-mode-colour "#FFFFFF" # Clock mode color
|
|
28
|
+
set-window-option -g clock-mode-style 24 # Clock mode style (12, 24)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.459) - https://dotfiles.io
|
|
2
|
+
# Copyright (c) Sebastien Rousseau 2022. All rights reserved
|
|
3
|
+
# License: MIT
|
|
4
|
+
|
|
5
|
+
bind r source-file ~/.tmux.conf \; display ".tmux.conf reloaded" \; \
|
|
6
|
+
source-file $HOME/.dotfiles/lib/configurations/tmux/default \; \
|
|
7
|
+
source-file $HOME/.dotfiles/lib/configurations/tmux/display \; \
|
|
8
|
+
source-file $HOME/.dotfiles/lib/configurations/tmux/linux \; \
|
|
9
|
+
source-file $HOME/.dotfiles/lib/configurations/tmux/navigation \; \
|
|
10
|
+
source-file $HOME/.dotfiles/lib/configurations/tmux/panes \; \
|
|
11
|
+
source-file $HOME/.dotfiles/lib/configurations/tmux/panes \; \
|
|
12
|
+
source-file $HOME/.dotfiles/lib/configurations/tmux/vi \;
|
|
13
|
+
|
|
14
|
+
source-file $HOME/.dotfiles/lib/configurations/tmux/default
|
|
15
|
+
source-file $HOME/.dotfiles/lib/configurations/tmux/display
|
|
16
|
+
source-file $HOME/.dotfiles/lib/configurations/tmux/linux
|
|
17
|
+
source-file $HOME/.dotfiles/lib/configurations/tmux/navigation
|
|
18
|
+
source-file $HOME/.dotfiles/lib/configurations/tmux/panes
|
|
19
|
+
source-file $HOME/.dotfiles/lib/configurations/tmux/theme
|
|
20
|
+
source-file $HOME/.dotfiles/lib/configurations/tmux/vi
|
|
@@ -0,0 +1,49 @@
|
|
|
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 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
|
+
|
|
16
|
+
## 🅴🆇🅿🅾🆁🆃🆂 - Export the variables.
|
|
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
|
+
|
|
32
|
+
## 🅻🅾🅰🅳🅴🆁🆂 - Load the dotfiles.
|
|
33
|
+
for loaders in "${DOTFILES}"/*.sh; do
|
|
34
|
+
# shellcheck source=/dev/null
|
|
35
|
+
. "${loaders}"
|
|
36
|
+
done
|
|
37
|
+
|
|
38
|
+
# Remove duplicates in zsh $PATH
|
|
39
|
+
# shellcheck disable=SC2034
|
|
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
|
|
@@ -1,10 +1,10 @@
|
|
|
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
6
|
## 🅲🅾🅽🅵🅸🅶🆄🆁🅰🆃🅸🅾🅽🆂
|
|
7
|
-
for config in "${HOME}"/.dotfiles/
|
|
7
|
+
for config in "${HOME}"/.dotfiles/lib/configurations/[!.#]*/*.sh; do
|
|
8
8
|
# shellcheck source=/dev/null
|
|
9
9
|
source "${config}"
|
|
10
10
|
done
|
|
File without changes
|
|
@@ -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
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
# matrix: Function to Enable Matrix Effect in the terminal
|
|
7
|
+
matrix() {
|
|
8
|
+
echo "\\e[1;40m"
|
|
9
|
+
clear
|
|
10
|
+
while :; do
|
|
11
|
+
echo $LINES $COLUMNS $((RANDOM % COLUMNS)) $((RANDOM % 72))
|
|
12
|
+
sleep 0.05
|
|
13
|
+
done | awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}'
|
|
14
|
+
}
|