@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.
Files changed (126) hide show
  1. package/README.md +181 -96
  2. package/dist/Makefile +31 -53
  3. package/dist/bin/constants.d.ts +4 -2
  4. package/dist/bin/constants.d.ts.map +1 -1
  5. package/dist/bin/constants.js +1 -1
  6. package/dist/bin/constants.js.map +1 -1
  7. package/dist/bin/dotfiles.js +1 -2
  8. package/dist/bin/dotfiles.js.map +1 -1
  9. package/dist/bin/index.js +0 -0
  10. package/dist/filesizes.txt +288 -230
  11. package/dist/{shell → lib}/README.md +0 -0
  12. package/dist/lib/aliases/default/default.aliases.sh +177 -0
  13. package/dist/{shell → lib}/aliases/gcloud/gcloud.aliases.sh +1 -1
  14. package/dist/lib/aliases/git/git.aliases.sh +569 -0
  15. package/dist/{shell → lib}/aliases/heroku/heroku.aliases.sh +1 -1
  16. package/dist/{shell → lib}/aliases/jekyll/jekyll.aliases.sh +1 -1
  17. package/dist/{shell → lib}/aliases/pnpm/pnpm.aliases.sh +1 -1
  18. package/dist/{shell → lib}/aliases/subversion/subversion.aliases.sh +1 -1
  19. package/dist/{shell → lib}/aliases/tmux/tmux.aliases.sh +1 -1
  20. package/dist/{shell → lib}/aliases.sh +2 -2
  21. package/dist/{shell → lib}/configurations/README.md +0 -0
  22. package/dist/lib/configurations/bash/bashrc +36 -0
  23. package/dist/{shell → lib}/configurations/curl/cacert.pem +0 -0
  24. package/dist/{shell → lib}/configurations/curl/curlrc +1 -1
  25. package/dist/{shell → lib}/configurations/default/color.sh +1 -1
  26. package/dist/lib/configurations/default/constants.sh +39 -0
  27. package/dist/{shell → lib}/configurations/default/editor.sh +1 -1
  28. package/dist/{shell → lib}/configurations/default/prompt.sh +1 -1
  29. package/dist/lib/configurations/gem/gemrc +9 -0
  30. package/dist/{shell → lib}/configurations/input/inputrc +1 -1
  31. package/dist/{shell → lib}/configurations/jshint/jshintrc +0 -0
  32. package/dist/lib/configurations/nano/nanorc +34 -0
  33. package/dist/{shell → lib}/configurations/profile/profile +1 -1
  34. package/dist/lib/configurations/tmux/default +17 -0
  35. package/dist/lib/configurations/tmux/display +25 -0
  36. package/dist/lib/configurations/tmux/linux +17 -0
  37. package/dist/lib/configurations/tmux/navigation +29 -0
  38. package/dist/lib/configurations/tmux/panes +9 -0
  39. package/dist/lib/configurations/tmux/theme +28 -0
  40. package/dist/lib/configurations/tmux/tmux +20 -0
  41. package/dist/lib/configurations/tmux/vi +5 -0
  42. package/dist/{shell → lib}/configurations/vim/vimrc +1 -1
  43. package/dist/{shell → lib}/configurations/wget/wgetrc +1 -1
  44. package/dist/lib/configurations/zsh/zshrc +49 -0
  45. package/dist/{shell → lib}/configurations.sh +2 -2
  46. package/dist/{shell → lib}/exit.sh +1 -1
  47. package/dist/{shell → lib}/functions/README.md +0 -0
  48. package/dist/{shell → lib}/functions/cdls.sh +1 -1
  49. package/dist/lib/functions/changediskpwd.tmp +19 -0
  50. package/dist/lib/functions/code.tmp +18 -0
  51. package/dist/lib/functions/countdown.tmp +33 -0
  52. package/dist/{shell → lib}/functions/curlheader.sh +1 -1
  53. package/dist/{shell → lib}/functions/curltime.sh +1 -1
  54. package/dist/{shell → lib}/functions/encode64.sh +1 -1
  55. package/dist/{shell → lib}/functions/environment.sh +1 -1
  56. package/dist/{shell → lib}/functions/extract.sh +1 -1
  57. package/dist/{shell → lib}/functions/filehead.sh +0 -0
  58. package/dist/{shell → lib}/functions/genpwd.sh +1 -1
  59. package/dist/{shell → lib}/functions/goto.sh +1 -1
  60. package/dist/lib/functions/headers.tmp +4 -0
  61. package/dist/{shell → lib}/functions/hidehiddenfiles.sh +1 -1
  62. package/dist/lib/functions/history-all.tmp +7 -0
  63. package/dist/{shell → lib}/functions/hostinfo.sh +1 -1
  64. package/dist/{shell → lib}/functions/hstats.sh +1 -1
  65. package/dist/{shell → lib}/functions/httpdebug.sh +1 -1
  66. package/dist/{shell → lib}/functions/keygen.sh +1 -1
  67. package/dist/{shell → lib}/functions/last.sh +1 -1
  68. package/dist/{shell → lib}/functions/logout.sh +1 -1
  69. package/dist/{shell → lib}/functions/lowercase.sh +1 -1
  70. package/dist/{shell → lib}/functions/macos.sh +1 -1
  71. package/dist/lib/functions/matrix.sh +14 -0
  72. package/dist/{shell → lib}/functions/mcd.sh +1 -1
  73. package/dist/{shell → lib}/functions/mount_read_only.sh +1 -1
  74. package/dist/{shell → lib}/functions/myproc.sh +1 -1
  75. package/dist/{shell → lib}/functions/prependpath.sh +1 -1
  76. package/dist/lib/functions/print.tmp +13 -0
  77. package/dist/{shell → lib}/functions/ql.sh +1 -1
  78. package/dist/{shell → lib}/functions/rd.sh +1 -1
  79. package/dist/{shell → lib}/functions/remove_disk.sh +1 -1
  80. package/dist/{shell → lib}/functions/ren.sh +1 -1
  81. package/dist/lib/functions/rm.tmp +13 -0
  82. package/dist/lib/functions/rps.tmp +103 -0
  83. package/dist/{shell → lib}/functions/showhiddenfiles.sh +1 -1
  84. package/dist/{shell → lib}/functions/size.sh +1 -1
  85. package/dist/{shell → lib}/functions/stopwatch.sh +1 -1
  86. package/dist/lib/functions/trash.tmp +13 -0
  87. package/dist/lib/functions/tree.tmp +13 -0
  88. package/dist/{shell → lib}/functions/uppercase.sh +1 -1
  89. package/dist/lib/functions/uuidgen.tmp +27 -0
  90. package/dist/{shell → lib}/functions/view-source.sh +1 -1
  91. package/dist/{shell → lib}/functions/vscode.sh +1 -1
  92. package/dist/{shell → lib}/functions/whoisport.sh +1 -1
  93. package/dist/{shell → lib}/functions/zipf.sh +1 -1
  94. package/dist/{shell → lib}/functions.sh +2 -2
  95. package/dist/{shell → lib}/history.sh +1 -1
  96. package/dist/{shell → lib}/paths/ant/ant.paths.sh +1 -1
  97. package/dist/{shell → lib}/paths/default/default.paths.sh +1 -1
  98. package/dist/{shell → lib}/paths/homebrew/homebrew.paths.sh +1 -1
  99. package/dist/{shell → lib}/paths/java/java.paths.sh +1 -1
  100. package/dist/{shell → lib}/paths/maven/maven.paths.sh +1 -1
  101. package/dist/{shell → lib}/paths/node/node.paths.sh +1 -1
  102. package/dist/{shell → lib}/paths/nvm/nvm.paths.sh +1 -1
  103. package/dist/{shell → lib}/paths/pnpm/pnpm.paths.sh +1 -1
  104. package/dist/{shell → lib}/paths/python/python.paths.sh +1 -1
  105. package/dist/{shell → lib}/paths/ruby/ruby.paths.sh +1 -1
  106. package/dist/{shell → lib}/paths/tmux/tmux.paths.sh +2 -2
  107. package/dist/{shell → lib}/paths.sh +2 -2
  108. package/dist/scripts/assemble.sh +32 -0
  109. package/dist/scripts/backup.sh +84 -0
  110. package/dist/scripts/banner.sh +18 -0
  111. package/dist/scripts/clean.sh +29 -0
  112. package/dist/scripts/compile.sh +52 -0
  113. package/dist/scripts/copy.sh +106 -0
  114. package/dist/scripts/dotfiles.sh +61 -0
  115. package/dist/scripts/download.sh +23 -0
  116. package/dist/scripts/help.sh +55 -0
  117. package/dist/scripts/unpack.sh +26 -0
  118. package/package.json +21 -44
  119. package/dist/bin/compile.sh +0 -16
  120. package/dist/bin/copy.sh +0 -21
  121. package/dist/bin/dotfiles.sh +0 -185
  122. package/dist/shell/aliases/default/default.aliases.sh +0 -199
  123. package/dist/shell/configurations/bash/bashrc +0 -36
  124. package/dist/shell/configurations/tmux/tmux +0 -95
  125. package/dist/shell/configurations/zsh/zshrc +0 -50
  126. package/dist/shell/functions/matrix.sh +0 -9
@@ -1,199 +0,0 @@
1
- #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- # 🅳🅴🅵🅰🆄🅻🆃 🅰🅻🅸🅰🆂🅴🆂
7
- unalias -a # Remove all previous environment defined aliases.
8
- alias -- -='cd -' # -: Shortcut to go to previous directory.
9
- alias .....='cd ../../../..' # .....: Shortcut to go to great-great-grandparent directory.
10
- alias ....='cd ../../..' # ....: Shortcut to go to great-grandparent directory.
11
- alias ...='cd ../..' # ...: Shortcut to go to grandparent directory.
12
- alias ..='cd ..' # ..: Shortcut to go to parent directory.
13
- alias ':q'='quit' # q: Shortcut for the `exit` command.
14
- alias '~'='cd ~' # ~: Shortcut to go to home directory.
15
- alias 'l.'="ls -dlhF .* | grep -v '^d'" # l.: List hidden files.
16
- alias 000='chmod -R 000' # 000: Make all files and directories read-only.
17
- alias 644='chmod -R 644' # 644: Make all files and directories readable and writable.
18
- alias 666='chmod -R 666' # 666: Make all files and directories readable and writable.
19
- alias 755='chmod -R 755' # 755: Make all files and directories readable and writable.
20
- alias 777='chmod -R 777' # 777: Make all files and directories readable and writable.
21
- alias bye='quit' # q: Shortcut for the `exit` command.
22
- alias c="clear" # c: Clear screen shortcut.
23
- alias cde="cd ~/Code; ls" # cde: Shortcut to go to the Code directory and list its contents.
24
- alias cgz='tar -zcvf' # cgz: Compress a whole directory (including subdirectories) to a tarball.
25
- alias chmox='chmod +x' # chmox: Make a file executable.
26
- alias cl="clear" # cl: Clear screen shortcut.
27
- alias clear="clear && printf '\e[3J'" # clear: Clear screen shortcut.
28
- alias clr="clear" # clr: Clear screen shortcut.
29
- alias cls="clear" # cls: Clear screen shortcut.
30
- alias cp="cp -vi" # cp: Copy files and directories.
31
- alias cr='cargo run' # cr: Run cargo.
32
- alias ct="clear && tree ./" # ct: Clear screen and list directory contents.
33
- alias ctf='echo $(ls -1 | wc -l)' # ctf: Count the number of files in the current directory.
34
- alias curl='curl --compressed' # curl: Use compression when transferring data.
35
- alias da='date "+%Y-%m-%d %A %T %Z"' # da: Display the current date and time.
36
- alias del="rm -rfv" # del: Remove a file or directory.
37
- alias digg="dig @8.8.8.8 +nocmd any +multiline +noall +answer" # digg: Dig with Google's DNS.
38
- alias dn="cd ~/Downloads; ls" # dn: Shortcut to go to the Downloads directory and list its contents.
39
- alias dot='cd ${HOME}/.dotfiles/' # dot: Shortcut to go to the dotfiles directory.
40
- alias ds="cd ~/Documents; ls" # ds: Shortcut to go to the Documents directory and list its contents.
41
- alias dsp="sudo du -shc ." # dsp: Show the size of the current directory.
42
- alias dt="cd ~/Desktop; ls" # dt: Shortcut to go to the Desktop directory and list its contents.
43
- alias du='sudo du -h' # du: File size human readable output sorted by size.
44
- alias duf='sudo du -sh *' # duf: File size human readable output sorted.
45
- alias e='vim' # e, edit, mate: Edit current file.
46
- alias edit='vim' # e, edit, mate: Edit current file.
47
- alias egz='tar -xvzf' # egz: Extract a whole directory (including subdirectories)
48
- alias f='find . -name ' # f: Quickly search for file
49
- alias fd='find . -type d -name' # fd: Quickly search for directory
50
- alias ff='find . -type f -name' # ff: Quickly search for file
51
- alias g='git' # g: Shortcut to git.
52
- alias ga='git add ' # ga: Shortcut to git add.
53
- alias gb='git branch ' # gb: Shortcut to git branch.
54
- alias gc='git commit -m ' # gc: Shortcut to git commit.
55
- alias gcb="git checkout -b " # gcb: Create a new branch and switch to it.
56
- alias gcl='git clone ' # gcl: Shortcut to git clone.
57
- alias gco='git checkout ' # gco: Shortcut to git checkout.
58
- alias gd='git diff ' # gd: Shortcut to git diff.
59
- alias gf='git fetch ' # gf: Shortcut to git fetch.
60
- alias gl='git log ' # gl: Shortcut to git log.
61
- alias gmv='git mv' # gmv: Move or rename a file, a directory, or a symlink.
62
- alias gph="git push" # gp: Push local commits to remote.
63
- alias gpl="git pull" # gl: Update and merge remote changes.
64
- alias gr='git remote ' # gr: Shortcut to git remote.
65
- alias grm='git remove' # grm: Remove files from the working tree and from the index.
66
- alias grt='cd "$(git rev-parse --show-toplevel)"' # gr: Change to Git Root directory.
67
- alias gst='git status ' # gst: Shortcut to git status.
68
- alias gsta='git stash save ' # gsta: Shortcut to git stash save.
69
- alias gz='tar -zcvf' # gz: Compress a whole directory (including subdirectories) to a tarball.
70
- alias h='history' # h: Lists all recently used commands.
71
- alias halt="sudo /sbin/halt" # halt: Shutdown the system.
72
- alias ifconfig='sudo ifconfig' # ifconfig: Append sudo to ifconfig (configure network interface parameters) command.
73
- alias ip="ip4; ip6" # ip: Get the public IPv4 and IPv6 addresses.
74
- alias ip4="dig +short myip.opendns.com @resolver1.opendns.com -4" # ip4: Get the public IPv4 address.
75
- alias ip6="dig -6 AAAA +short myip.opendns.com. @resolver1.opendns.com." # ip6: Get the public IPv6 address.
76
- alias ipinfo='ipconfig getpacket en0' # ipInfo0: Get network interface parameters for en0.
77
- alias l='ls -lFh' # l: Size, show type, human readable.
78
- alias l1='ls -1' # l1: Display one file per line.
79
- alias la='ls -Alh' # la: show hidden files on the command line.
80
- alias labc='ls -lap' # labc: List all files in alphabetical order.
81
- alias lc='wc -l' # lc: Count the number of lines in the file.
82
- alias lct='ls -lcrh' # lc: sort by change time
83
- alias ld='ls -ltrh' # lt: sort by date
84
- alias ldir="ls -l | egrep '^d'" # directories only
85
- alias ldot="l." # l.: List hidden files.
86
- alias left='ls -t -1' # left: List files by date, most recent last.
87
- alias lf="ls -l | egrep -v '^d'" # files only
88
- alias lk='ls -lSrh' # lk: sort by size
89
- alias ll='ls -lAFh' # ll: Long list, show almost all, show type, human readable.
90
- alias lla='ls -l -d $PWD/*' # lla: List full path of all files in current directory.
91
- alias lm='ls -alh |more' # lm: pipe through 'more'
92
- alias ln='ln -vi' # ln: interactive symbolic link
93
- alias locale='locale -a | grep UTF-8' # locale: List all available locales.
94
- alias lp='sudo lsof -i -T -n' # lp: List all open ports.
95
- alias lr='ls -lRh' # lr: recursive ls
96
- alias ls='ls --color' # ls: Colorize the output.
97
- alias lS='ls -1FSsh' # lS: Order Files Based on Last Modified Time and size.
98
- alias lt="tree" # lt: List contents of directories in a tree-like format.
99
- alias lu='ls -lurh' # lu: sort by access time
100
- alias lw='ls -xAh' # wide listing format
101
- alias lx='ls | sort -k 1,1 -t .' # lx: sort by extension
102
- alias mate='vim' # e, edit, mate: Edit current file.
103
- alias mc='make clean' # mc: Make clean.
104
- alias md='mkd' # mkd: Create the directory and all parent directories, verbose mode.
105
- alias mi='make install' # mi: Make install.
106
- alias mk=make # mk: Make.
107
- alias mkbz2='tar -cvjf' # mkbz2: Create a temporary tar ball compressed with bzip2.
108
- alias mkcd='mkdir -pv && cd' # mkcd: Create the directory and all parent directories, verbose mode, then change to it.
109
- alias mkd='mkdir -pv' # mkd: Create the directory and all parent directories, verbose mode.
110
- alias mkdd='mkdir -pv $(date +%Y%m%d)' # mkdd: Create a directory with the current date.
111
- alias mkgz='tar -cvzf' # mkgz: Create a temporary tar ball compressed with gzip.
112
- alias mkh="make help" # mkh: Make help.
113
- alias mkr="make run" # mkr: Make run.
114
- alias mkt="make test" # mkt: Make test.
115
- alias mktar='tar -cvf' # mktar: Create a temporary tarball.
116
- alias mv='mv -vi' # mv: Move files interactively (ask before overwrite) and verbose.
117
- alias mx='chmod a+x' # mx: Make executable.
118
- alias nls='sudo lsof -i -P | grep LISTEN' # nls: Show only active network listeners.
119
- alias now='date +"%T"' # now: Show the current time.
120
- alias npmi='npm install ' # npmi: Install npm package.
121
- alias npms='npm start ' # npms: Start npm package.
122
- alias op='sudo lsof -i -P' # op: List of open ports.
123
- alias p='pwd' # p: Shortcut for `pwd` which returns working directory name.
124
- alias pa="clear && pwd && echo '' && ls && echo ''" # pa: Clear the screen, show the current directory, and list the files.
125
- alias paa="clear && pwd && echo '' && ls -a && echo ''" # paa: Clear the screen, show the current directory, and list all files.
126
- alias path='echo -e ${PATH//:/\\n}' # path: Display the $PATH variable on newlines.
127
- 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.
128
- alias ping='ping -c 5' # ping: Limit Ping to 5 ECHO_REQUEST packets.
129
- alias please='sudo -' # sudo: Execute a command as the superuser.
130
- alias pn='pnpm' # pn: Shortcut to pnpm.
131
- alias ports='netstat -tulan' # ports: List all listening ports.
132
- alias poweroff="sudo /sbin/shutdown" # poweroff: Poweroff the system.
133
- alias pp="clear && pwd" # pp: Clear the screen and show the current directory.
134
- alias ps='ps auxwww' # kp: Getting full path of executables.
135
- alias pt="clear && pwd && echo '' && tree ./ && echo ''" # pt: Clear the screen and show the current directory and tree.
136
- alias q='quit' # q: Shortcut for the `exit` command.
137
- alias qfind='find . -name ' # qfind: Quickly search for file.
138
- alias quit='exit' # q: Shortcut for the `exit` command.
139
- alias r=reload # r: Reload the shell.
140
- alias reboot="sudo /sbin/reboot" # reboot: Reboot the system.
141
- alias reload='exec $SHELL -l' # reload: Reload the shell.
142
- alias rm='rm -vI' # rm: Prompts for every file before removing.
143
- alias rr="rm -rf" # rr: Remove directory and all its contents.
144
- alias rs='rsync -avz' # rs: Rsync with verbose and progress.
145
- alias s='sudo' # s: Execute a command as the superuser.
146
- alias shutdown='sudo shutdown -h now' # shutdown: Shutdown the system.
147
- alias spd='sudo rm -rf /private/var/log/asl/*' # spd: Remove all log files in /private/var/log/asl.
148
- alias srv='python3 -m http.server' # srv: Start a simple HTTP server.
149
- alias svi='sudo vi' # svi: Run vi in sudo mode.
150
- alias t='tail -f' # t: Prints the last 10 lines of a text or log file, and then waits for new additions to the file to print it in real time.
151
- alias top='sudo btop' # top: Allows the user to interactively monitor the system's vital resources or server's processes in real time.
152
- alias trash="rm -fr ~/.Trash" # trash: Remove all files in the trash.
153
- alias tree='tree --dirsfirst' # tree: Display a directory tree.
154
- alias unbz2='tar -xvjf' # unbz2: Extract a tarball compressed with bzip2.
155
- alias undopush="git push -f origin HEAD^:master" # undopush: Undo the last push.
156
- alias ungz='tar -xvzf' # ungz: Extract a tarball compressed with gzip.
157
- alias untar='tar -xvf' # untar: Extract a tarball.
158
- alias usage='du -ch | grep total' # usage: Grabs the disk usage in the current directory.
159
- alias v='vim $(f)' # v: Edit a file.
160
- alias v='vim' # e, edit, mate: Edit current file.
161
- alias wget='wget -c' # wget: wget with resume.
162
- alias wip='dig +short myip.opendns.com @resolver1.opendns.com' # wip: Get public IP address.
163
- alias wk='date +%V' # wk: Show the current week number.
164
- alias wth='curl https://wttr.in' # wth: Get the weather.
165
- alias x='quit' # q: Shortcut for the `exit` command.
166
-
167
- if [[ "$(uname || true)" = "Darwin" ]]; then
168
- alias upd='
169
- sudo softwareupdate -i -a;
170
- pnpm i;
171
- pnpm i yarn --global;
172
- pnpm i npm --global;
173
- pnpm i pnpm --global;
174
- pnpm up;
175
- brew cu --all;
176
- brew doctor;
177
- brew update;
178
- brew upgrade;
179
- brew cleanup;
180
- mas upgrade;
181
- sudo gem update;
182
- sudo gem cleanup;
183
- '
184
- elif [[ "$(uname || true)" = "Linux" ]]; then
185
- alias open="xdg-open >/dev/null 2>&1" # open: Open a file or URL in the user's preferred application.
186
- alias pbcopy='xsel --clipboard --input' # pbcopy: Copy to clipboard.
187
- alias pbpaste='xsel --clipboard --output' # pbpaste: Paste from clipboard.
188
- alias upd='
189
- sudo apt update;
190
- sudo apt upgrade -y;
191
- pnpm i;
192
- pnpm i yarn --global;
193
- pnpm i npm --global;
194
- pnpm i pnpm --global;
195
- pnpm up;
196
- sudo gem update;
197
- sudo gem cleanup;
198
- '
199
- fi
@@ -1,36 +0,0 @@
1
- #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- ## 🆅🅰🆁🅸🅰🅱🅻🅴🆂 - Set variables.
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.457' # version of the dotfiles.
19
- export DOTFILES="${HOME}"/.dotfiles/shell # 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
@@ -1,95 +0,0 @@
1
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
2
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
3
- # License: MIT
4
-
5
- set -g default-terminal "screen-256color" # use 256 colors
6
- if 'infocmp -x tmux-256color > /dev/null 2>&1' 'set -g default-terminal "tmux-256color"'
7
-
8
- ## 🅶🅴🅽🅴🆁🅰🅻
9
- bind C-a send-prefix -2 # GNU-Screen compatible prefix
10
- bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced' # reload configuration
11
- set -g history-limit 5000 # boost history limit
12
- set -g prefix2 C-a # GNU-Screen compatible prefix
13
- set -q -g status-utf8 on # expect UTF-8 (tmux < 2.2)
14
- set -s escape-time 10 # faster command sequences
15
- set -s focus-events on # enable mouse focus events
16
- set -sg repeat-time 600 # increase repeat timeout
17
- setw -g xterm-keys on # enable xterm keys
18
- setw -q -g utf8 on # expect UTF-8 (tmux < 2.2)
19
-
20
- ## 🅳🅸🆂🅿🅻🅰🆈
21
- bind -n C-l send-keys C-l \; run 'sleep 0.2' \; clear-history # clear both screen and history
22
- set -g base-index 1 # start windows numbering at 1
23
- set -g display-panes-time 800 # slightly longer pane indicators display time
24
- set -g display-time 1000 # slightly longer status messages display time
25
- set -g monitor-activity on # monitor for activity
26
- set -g renumber-windows on # renumber windows when a window is closed
27
- set -g set-titles on # set terminal title
28
- set -g status-interval 10 # redraw status line every 10 seconds
29
- set -g visual-activity off # disable visual activity
30
- set -wg allow-rename off # disable window renaming
31
- set -wg automatic-rename off # disable automatic window renaming
32
- set -wg mode-keys vi # vi mode
33
- setw -g automatic-rename on # rename window to reflect current program
34
- setw -g pane-base-index 1 # make pane numbering consistent with windows
35
-
36
- ## 🅽🅰🆅🅸🅶🅰🆃🅸🅾🅽
37
-
38
- bind _ split-window -h # split current window horizontally
39
- bind - split-window -v # split current window vertically
40
- bind -r C-h previous-window # select previous window
41
- bind -r C-l next-window # select next window
42
- bind -r h select-pane -L # move left
43
- bind -r j select-pane -D # move down
44
- bind -r k select-pane -U # move up
45
- bind -r l select-pane -R # move right
46
- bind + run 'cut -c3- ~/.tmux.conf | sh -s _maximize_pane "#{session_name}" #D' # maximize current pane
47
- bind < swap-pane -U # swap current pane with the previous one
48
- bind > swap-pane -D # swap current pane with the next one
49
- bind | split-window -h -c "#{pane_current_path}" # split current window horizontally
50
- bind a last -t : # move to last active window
51
- bind BTab switch-client -l # move to last session
52
- bind C-c new-session # create session
53
- bind C-f command-prompt -p find-session 'switch-client -t %%' # find session
54
- bind e neww -n tmux-config "\${EDITOR:-vim} ~/.tmux.conf" # edit configuration
55
- bind m run "cut -c3- ~/.tmux.conf | sh -s _toggle_mouse" # toggle mouse
56
- bind N new-window # create window
57
- bind r source ~/.tmux.conf\; display "bmux config sourced" # reload configuration
58
- bind Tab last-window # move to last active window
59
- bind U run "cut -c3- ~/.tmux.conf | sh -s _urlview #{pane_id}" # urlview
60
- unbind n # unbind default next-window
61
- unbind p # unbind default previous-window
62
-
63
-
64
- ## 🆃🅷🅴🅼🅴
65
- if 'uname -s | grep -q Darwin' 'set -g status-left "#[bg=#D0D3D5]  macOS ❐ #S "' # macOS version
66
- if 'uname -s | grep -q Linux' 'set -g status-left "#[bg=#D0D3D5] 🐧 Linux ❐ #S "' # Linux version
67
- set -g history-limit 102400 # increase history limit
68
- set -g message-style "bg=#14222A, fg=#D0D3D5" # Mirage blue and Iron grey
69
- set -g set-clipboard on # copy to system clipboard
70
- set -g status-left-length 400 # status left length
71
- set -g status-right "#[bg=#027bff] #(whoami)@#h #[bg=red] %_d %B %I:%M%p " # status right
72
- set -g status-right-length 600 # status right length
73
- set -g status-style "bg=#14222A, fg=#D0D3D5" # mirage blue and iron grey
74
- set -wg pane-active-border-style "fg=#14222A" # mirage blue
75
- set -wg pane-border-style "fg=#D0D3D5" # iron grey
76
- set -wg window-status-current-format " #I #W " # current window status format
77
- set -wg window-status-current-style "bg=red" # red
78
- set -wg window-status-format " #I #W " # window status format
79
- set -wg window-status-last-style "fg=#D0D3D5" # iron grey
80
- set -wg window-status-separator "" # window status separator
81
-
82
-
83
- ## 🅻🅸🅽🆄🆇 🅾🅽🅻🆈
84
- bind -n C-WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M # scroll up
85
- bind -n WheelDownPane select-pane -t= \; send-keys -M # scroll down
86
- 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
87
- bind -T copy-mode-emacs C-WheelDownPane send-keys -X halfpage-down # scroll down half page
88
- bind -T copy-mode-emacs C-WheelUpPane send-keys -X halfpage-up # scroll up half page
89
- bind -T copy-mode-vi C-WheelDownPane send-keys -X halfpage-down # scroll down half page
90
- bind -T copy-mode-vi C-WheelUpPane send-keys -X halfpage-up # scroll up half page
91
- bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -selection c" # copy to system clipboard
92
- bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard" # copy to system clipboard
93
- set -g mouse on # enable mouse
94
- setw -g mode-keys vi # vi mode
95
- unbind -T copy-mode-vi Enter # unbind default Enter
@@ -1,50 +0,0 @@
1
- #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - https://dotfiles.io
3
- # Copyright (c) Sebastien Rousseau 2022. All rights reserved
4
- # License: MIT
5
-
6
- ## 🆅🅰🆁🅸🅰🅱🅻🅴🆂 - Set variables.
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.457' # version of the dotfiles.
19
- export DOTFILES="${HOME}"/.dotfiles/shell # 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
50
-
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env bash
2
- # 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.457) - 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 "\\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( RANDOM % COLUMNS)) $(( RANDOM % 72 )) ;sleep 0.05; 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; } }}'
9
- }