@sebastienrousseau/dotfiles 0.2.464 β 0.2.465
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 +118 -281
- package/dist/Makefile +2 -2
- 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/filesizes.txt +170 -144
- package/dist/lib/README.md +6 -1
- package/dist/lib/aliases/README.md +47 -0
- package/dist/lib/aliases/archives/README.md +39 -67
- package/dist/lib/aliases/archives/archives.aliases.sh +128 -60
- package/dist/lib/aliases/cd/README.md +26 -9
- package/dist/lib/aliases/cd/cd.aliases.sh +1 -4
- package/dist/lib/aliases/chmod/README.md +48 -13
- package/dist/lib/aliases/chmod/chmod.aliases.sh +1 -1
- package/dist/lib/aliases/clear/README.md +33 -38
- package/dist/lib/aliases/clear/clear.aliases.sh +35 -33
- package/dist/lib/aliases/configuration/README.md +26 -37
- package/dist/lib/aliases/configuration/configuration.aliases.sh +40 -36
- package/dist/lib/aliases/default/README.md +26 -52
- package/dist/lib/aliases/default/default.aliases.sh +105 -44
- package/dist/lib/aliases/dig/README.md +23 -40
- package/dist/lib/aliases/dig/dig.aliases.sh +26 -29
- package/dist/lib/aliases/disk-usage/README.md +32 -0
- package/dist/lib/aliases/disk-usage/du.aliases.sh +84 -0
- package/dist/lib/aliases/editor/README.md +35 -33
- package/dist/lib/aliases/editor/editor.aliases.sh +13 -39
- package/dist/lib/aliases/find/README.md +42 -29
- package/dist/lib/aliases/find/find.aliases.sh +52 -26
- package/dist/lib/aliases/gcloud/README.md +59 -148
- package/dist/lib/aliases/gcloud/gcloud.aliases.sh +327 -138
- package/dist/lib/aliases/git/README.md +149 -0
- package/dist/lib/aliases/git/git.aliases.sh +535 -131
- package/dist/lib/aliases/gnu/README.md +85 -0
- package/dist/lib/aliases/gnu/gnucoreutils-aliases.sh +143 -109
- package/dist/lib/aliases/heroku/README.md +426 -0
- package/dist/lib/aliases/heroku/heroku.aliases.sh +1047 -288
- package/dist/lib/aliases/interactive/README.md +43 -0
- package/dist/lib/aliases/interactive/interactive.aliases.sh +48 -9
- package/dist/lib/aliases/jekyll/README.md +37 -0
- package/dist/lib/aliases/jekyll/jekyll.aliases.sh +49 -10
- package/dist/lib/aliases/list/README.md +38 -0
- package/dist/lib/aliases/list/list.aliases.sh +81 -30
- package/dist/lib/aliases/macos/README.md +38 -0
- package/dist/lib/aliases/macos/macos.aliases.sh +65 -0
- package/dist/lib/aliases/make/README.md +28 -0
- package/dist/lib/aliases/make/make.aliases.sh +30 -10
- package/dist/lib/aliases/mkdir/README.md +26 -0
- package/dist/lib/aliases/mkdir/mkdir.aliases.sh +24 -8
- package/dist/lib/aliases/npm/README.md +37 -0
- package/dist/lib/aliases/npm/npm.aliases.sh +54 -17
- package/dist/lib/aliases/permission/README.md +43 -0
- package/dist/lib/aliases/permission/permission.aliases.sh +73 -0
- package/dist/lib/aliases/pnpm/README.md +49 -0
- package/dist/lib/aliases/pnpm/pnpm.aliases.sh +70 -36
- package/dist/lib/aliases/ps/README.md +25 -0
- package/dist/lib/aliases/ps/ps.aliases.sh +14 -6
- package/dist/lib/aliases/rsync/README.md +21 -0
- package/dist/lib/aliases/rsync/rsync.aliases.sh +10 -4
- package/dist/lib/aliases/rust/README.md +57 -0
- package/dist/lib/aliases/rust/rust.aliases.sh +116 -39
- package/dist/lib/aliases/subversion/README.md +62 -0
- package/dist/lib/aliases/subversion/subversion.aliases.sh +4 -3
- package/dist/lib/aliases/sudo/README.md +23 -0
- package/dist/lib/aliases/sudo/sudo.aliases.sh +15 -6
- package/dist/lib/aliases/tmux/README.md +27 -0
- package/dist/lib/aliases/tmux/tmux.aliases.sh +29 -10
- package/dist/lib/aliases/update/README.md +34 -0
- package/dist/lib/aliases/update/update.aliases.sh +57 -26
- package/dist/lib/aliases/uuid/README.md +20 -0
- package/dist/lib/aliases/uuid/uuid.aliases.sh +13 -4
- package/dist/lib/aliases/wget/README.md +23 -0
- package/dist/lib/aliases/wget/wget.aliases.sh +15 -6
- package/dist/lib/aliases.sh +4 -3
- package/dist/lib/configurations/README.md +13 -2
- package/dist/lib/configurations/bash/bashrc +4 -3
- package/dist/lib/configurations/curl/curlrc +2 -2
- package/dist/lib/configurations/default/color.sh +3 -2
- package/dist/lib/configurations/default/constants.sh +4 -3
- package/dist/lib/configurations/default/editor.sh +3 -2
- package/dist/lib/configurations/default/prompt.sh +3 -2
- package/dist/lib/configurations/input/inputrc +2 -2
- package/dist/lib/configurations/nano/nanorc +2 -2
- package/dist/lib/configurations/profile/profile +2 -2
- package/dist/lib/configurations/tmux/default +2 -2
- package/dist/lib/configurations/tmux/display +6 -2
- package/dist/lib/configurations/tmux/linux +2 -2
- package/dist/lib/configurations/tmux/navigation +2 -2
- package/dist/lib/configurations/tmux/panes +2 -2
- package/dist/lib/configurations/tmux/theme +3 -3
- package/dist/lib/configurations/tmux/tmux +2 -2
- package/dist/lib/configurations/tmux/vi +2 -2
- package/dist/lib/configurations/vim/vimrc +1 -1
- package/dist/lib/configurations/wget/wgetrc +2 -2
- package/dist/lib/configurations/zsh/zshrc +2 -2
- package/dist/lib/configurations.sh +4 -3
- package/dist/lib/functions/README.md +69 -2
- package/dist/lib/functions/cdls.sh +3 -2
- package/dist/lib/functions/curlheader.sh +3 -2
- package/dist/lib/functions/curlstatus.sh +17 -0
- package/dist/lib/functions/curltime.sh +4 -3
- package/dist/lib/functions/encode64.sh +3 -2
- package/dist/lib/functions/environment.sh +3 -2
- package/dist/lib/functions/extract.sh +3 -2
- package/dist/lib/functions/filehead.sh +1 -1
- package/dist/lib/functions/freespace.sh +21 -0
- package/dist/lib/functions/genpwd.sh +33 -7
- package/dist/lib/functions/goto.sh +3 -2
- package/dist/lib/functions/hidehiddenfiles.sh +3 -2
- package/dist/lib/functions/hostinfo.sh +3 -2
- package/dist/lib/functions/hstats.sh +3 -2
- package/dist/lib/functions/httpdebug.sh +3 -2
- package/dist/lib/functions/keygen.sh +20 -13
- package/dist/lib/functions/last.sh +3 -2
- package/dist/lib/functions/logout.sh +3 -2
- package/dist/lib/functions/lowercase.sh +3 -2
- package/dist/lib/functions/matrix.sh +15 -14
- package/dist/lib/functions/mount_read_only.sh +3 -2
- package/dist/lib/functions/myproc.sh +4 -3
- package/dist/lib/functions/prependpath.sh +3 -2
- package/dist/lib/functions/ql.sh +3 -2
- package/dist/lib/functions/rd.sh +3 -2
- package/dist/lib/functions/remove_disk.sh +3 -2
- package/dist/lib/functions/ren.sh +3 -2
- package/dist/lib/functions/showhiddenfiles.sh +3 -2
- package/dist/lib/functions/size.sh +3 -2
- package/dist/lib/functions/stopwatch.sh +4 -3
- package/dist/lib/functions/uppercase.sh +3 -2
- package/dist/lib/functions/view-source.sh +3 -2
- package/dist/lib/functions/vscode.sh +3 -2
- package/dist/lib/functions/whoisport.sh +3 -2
- package/dist/lib/functions/zipf.sh +3 -2
- package/dist/lib/functions.sh +4 -3
- package/dist/lib/history.sh +4 -4
- package/dist/lib/paths/ant/ant.paths.sh +3 -2
- package/dist/lib/paths/default/default.paths.sh +3 -2
- package/dist/lib/paths/homebrew/homebrew.paths.sh +3 -2
- package/dist/lib/paths/java/java.paths.sh +3 -2
- package/dist/lib/paths/maven/maven.paths.sh +3 -2
- package/dist/lib/paths/node/node.paths.sh +3 -2
- package/dist/lib/paths/nvm/nvm.paths.sh +3 -2
- package/dist/lib/paths/pnpm/pnpm.paths.sh +3 -2
- package/dist/lib/paths/python/python.paths.sh +3 -2
- package/dist/lib/paths/ruby/ruby.paths.sh +3 -2
- package/dist/lib/paths/tmux/tmux.paths.sh +3 -2
- package/dist/lib/paths.sh +4 -3
- package/dist/scripts/backup.sh +3 -2
- package/dist/scripts/banner.sh +3 -2
- package/dist/scripts/build.sh +3 -2
- package/dist/scripts/clean.sh +3 -2
- package/dist/scripts/compile.sh +3 -2
- package/dist/scripts/copy.sh +3 -2
- package/dist/scripts/dotfiles.sh +3 -2
- package/dist/scripts/download.sh +3 -2
- package/dist/scripts/help.sh +3 -2
- package/dist/scripts/ssh.sh +3 -2
- package/dist/scripts/unpack.sh +3 -2
- package/package.json +7 -7
- package/dist/lib/aliases/du/README.md +0 -35
- package/dist/lib/aliases/du/du.aliases.sh +0 -37
- package/dist/lib/functions/changediskpwd.tmp +0 -19
- package/dist/lib/functions/code.tmp +0 -18
- package/dist/lib/functions/countdown.tmp +0 -34
- package/dist/lib/functions/headers.tmp +0 -4
- package/dist/lib/functions/history-all.tmp +0 -8
- package/dist/lib/functions/macos.sh +0 -47
- package/dist/lib/functions/mcd.tmp +0 -19
- package/dist/lib/functions/print.tmp +0 -14
- package/dist/lib/functions/rm.tmp +0 -14
- package/dist/lib/functions/rps.tmp +0 -104
- package/dist/lib/functions/trash.tmp +0 -14
- package/dist/lib/functions/tree.tmp +0 -14
- package/dist/lib/functions/uuidgen.tmp +0 -28
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
|
-
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-2023. All rights reserved
|
|
5
|
-
# License: MIT
|
|
6
|
-
|
|
7
|
-
# https://dotfiles.io
|
|
8
|
-
#
|
|
9
|
-
# Description: Mac OS X Dotfiles - Simply designed to fit your shell life.
|
|
10
|
-
#
|
|
11
|
-
# Made with β₯ in London, UK by @sebastienrousseau
|
|
12
|
-
# Copyright (c) 2015-2023. All rights reserved
|
|
13
|
-
# Licensed under the MIT license
|
|
14
|
-
#
|
|
15
|
-
|
|
16
|
-
# changediskpwd: Function to change the password on an encrypted disk image
|
|
17
|
-
# changediskpwd() {
|
|
18
|
-
# hdiutil chpass "$1"
|
|
19
|
-
# }
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
|
-
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-2023. All rights reserved
|
|
5
|
-
# License: MIT
|
|
6
|
-
|
|
7
|
-
# https://dotfiles.io
|
|
8
|
-
#
|
|
9
|
-
# Description: Mac OS X Dotfiles - Simply designed to fit your shell life.
|
|
10
|
-
#
|
|
11
|
-
# Made with β₯ in London, UK by @sebastienrousseau
|
|
12
|
-
# Copyright (c) 2015-2023. All rights reserved
|
|
13
|
-
# Licensed under the MIT license
|
|
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 $"*" ;}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
|
-
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-2023. All rights reserved
|
|
5
|
-
# License: MIT
|
|
6
|
-
|
|
7
|
-
# countdown: Function for countdown
|
|
8
|
-
|
|
9
|
-
# TODO: Fix countdown function
|
|
10
|
-
# countdown() {
|
|
11
|
-
|
|
12
|
-
# if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then
|
|
13
|
-
# echo "usage:
|
|
14
|
-
# countdown [SECONDS]
|
|
15
|
-
# countdown"
|
|
16
|
-
# exit 0
|
|
17
|
-
# fi
|
|
18
|
-
# if [ -z "$1" ]; then
|
|
19
|
-
# read -rp "Enter a number of seconds to countdown from: " seconds
|
|
20
|
-
# else
|
|
21
|
-
# seconds=$1
|
|
22
|
-
# fi
|
|
23
|
-
# : "${x=60}"
|
|
24
|
-
# for ((c = 1; c <= seconds; c++)); do
|
|
25
|
-
# sleep 1
|
|
26
|
-
# seconds_remaining=$((seconds - c))
|
|
27
|
-
# echo -ne "\033[2k\rCountdown: $seconds_remaining seconds"
|
|
28
|
-
# done
|
|
29
|
-
# echo -ne "\033[2k\r"
|
|
30
|
-
# echo "Countdown finished on $(date)"
|
|
31
|
-
# }
|
|
32
|
-
|
|
33
|
-
# alias cntd='countdown' # Alias for countdown
|
|
34
|
-
# alias ctd='countdown' # Alias for countdown
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
|
-
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-2023. All rights reserved
|
|
5
|
-
# License: MIT
|
|
6
|
-
|
|
7
|
-
# history-all: Function to display the full view of the history command
|
|
8
|
-
#function history-all { history -E 1 }
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
|
-
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-2023. All rights reserved
|
|
5
|
-
# License: MIT
|
|
6
|
-
|
|
7
|
-
# π
Όπ
°π
²π
Ύπ π
Ώπ
»ππ
Άπ
Έπ
½π
Ά π
°π
»π
Έπ
°ππ
΄π
|
|
8
|
-
|
|
9
|
-
alias clds='find . -type f -name "*.DS_Store" -ls -delete' # clds: Recursively delete .DS_Store files.
|
|
10
|
-
alias clls='/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user && killall Finder' # clls: Clean up LaunchServices to remove duplicates in the 'Open With' menu.
|
|
11
|
-
alias emptytrash='rm -rf ~/.Trash/*' # Empty the Trash on all mounted volumes and the main HDD.
|
|
12
|
-
alias finderHideHidden='defaults write com.apple.finder ShowAllFiles FALSE' # finderHideHidden: Hide hidden files in Finder.
|
|
13
|
-
alias finderShowHidden='defaults write com.apple.finder ShowAllFiles TRUE' # finderShowHidden: Show hidden files in Finder.
|
|
14
|
-
alias iphone='open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app' # iphone: Open the device simulators.
|
|
15
|
-
alias noDS='defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true'
|
|
16
|
-
alias ofd='open $PWD' # Open the current directory in a Finder window.
|
|
17
|
-
alias purge='rm -rf ~/library/Developer/Xcode/DerivedData/*' # purge: Purging Xcode DerivedData.
|
|
18
|
-
alias screensaverDesktop='/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background' # screensaverDesktop: Run a screensaver on the Desktop.
|
|
19
|
-
alias vp='diskutil verifyPermissions /' # vp: Verify macOS Permissions.
|
|
20
|
-
alias vv='diskutil verifyvolume /' # vv: Verify macOS Volume.
|
|
21
|
-
alias xcode='open -a xcode' # xcode: Launch XCode app in macOS.
|
|
22
|
-
|
|
23
|
-
# π
Όπ
°π
²π
Ύπ π
Ώπ
»ππ
Άπ
Έπ
½π
Ά π
΅ππ
½π
²ππ
Έπ
Ύπ
½π
|
|
24
|
-
|
|
25
|
-
# Erases purgeable disk space with 0s on the selected disk
|
|
26
|
-
freespace() {
|
|
27
|
-
if [[ -z "$1" ]]; then
|
|
28
|
-
echo "Usage: $0 <disk>"
|
|
29
|
-
echo "Example: $0 /dev/disk1s1"
|
|
30
|
-
echo
|
|
31
|
-
echo "Possible disks:"
|
|
32
|
-
df -h | awk 'NR == 1 || /^\/dev\/disk/'
|
|
33
|
-
return 1
|
|
34
|
-
fi
|
|
35
|
-
|
|
36
|
-
echo "Cleaning purgeable files from disk: $1 ...."
|
|
37
|
-
diskutil secureErase freespace 0 "$1"
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
mp() {
|
|
41
|
-
# Don't let Preview.app steal focus if the man page doesn't exist
|
|
42
|
-
man -w "$@" >/dev/null 2>&1 || man -t "$@" | open -f -a Preview || man "$@"
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
ql() {
|
|
46
|
-
(($# > 0)) && qlmanage -p "$*" &>/dev/null &
|
|
47
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
|
-
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-2023. All rights reserved
|
|
5
|
-
# License: MIT
|
|
6
|
-
|
|
7
|
-
# mcd: Function to combine mkdir and cd.
|
|
8
|
-
mcd() {
|
|
9
|
-
if [[ "$#" != 1 ]]; then
|
|
10
|
-
echo "[ERROR] Please add one argument" >&2
|
|
11
|
-
return 1
|
|
12
|
-
fi
|
|
13
|
-
echo "[INFO] Creating the folder $1"
|
|
14
|
-
mkdir "$1"
|
|
15
|
-
echo "[INFO] Switching to $1 folder"
|
|
16
|
-
cd "$1" || exit
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
alias mkcd='mcd' # Alias for mcd
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
|
-
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-2023. All rights reserved
|
|
5
|
-
# License: MIT
|
|
6
|
-
|
|
7
|
-
# print: Function to display the argument given
|
|
8
|
-
# print() {
|
|
9
|
-
# if [[ "$#" != 1 ]]; then
|
|
10
|
-
# echo "[ERROR] Please add one argument" >&2
|
|
11
|
-
# return 1
|
|
12
|
-
# fi
|
|
13
|
-
# echo "$1"
|
|
14
|
-
# }
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
|
-
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-2023. All rights reserved
|
|
5
|
-
# License: MIT
|
|
6
|
-
|
|
7
|
-
# rm: Function to make 'rm' move files to the trash
|
|
8
|
-
# function rm() {
|
|
9
|
-
# if [[ "$#" != 1 ]]; then
|
|
10
|
-
# echo "[ERROR] Please add one argument" >&2
|
|
11
|
-
# return 1
|
|
12
|
-
# fi
|
|
13
|
-
# rm "$1"
|
|
14
|
-
# }
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
|
-
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-2023. All rights reserved
|
|
5
|
-
# License: MIT
|
|
6
|
-
|
|
7
|
-
# Adapted from https://github.com/Ananta-Gupta/Rock-Paper-Scissors
|
|
8
|
-
|
|
9
|
-
# rps: Function to play Rock Paper Scissors
|
|
10
|
-
|
|
11
|
-
# check() {
|
|
12
|
-
# if [ "$1" == "$2" ]; then
|
|
13
|
-
# echo "Draw!"
|
|
14
|
-
# elif [ "$1" = 1 ] && [ "$2" = 2 ]; then
|
|
15
|
-
# echo "You Lose! Paper beats Rock!"
|
|
16
|
-
# elif [ "$1" = 2 ] && [ "$2" = 3 ]; then
|
|
17
|
-
# echo "You Lose! Scissor beats Paper!"
|
|
18
|
-
# elif [ "$1" = 3 ] && [ "$2" = 1 ]; then
|
|
19
|
-
# echo "You Lose! Rock beats Scissor!"
|
|
20
|
-
# elif [ "$1" != 1 ] && [ "$1" != 2 ] && [ "$1" != 3 ]; then
|
|
21
|
-
# echo "Invalid input! You have not entered a valid number"
|
|
22
|
-
# else
|
|
23
|
-
# echo " β You Win! ππ»"
|
|
24
|
-
# fi
|
|
25
|
-
# }
|
|
26
|
-
|
|
27
|
-
# print() {
|
|
28
|
-
# echo ""
|
|
29
|
-
# echo "ββββββββββββββββββββββββββββββββββββββββ"
|
|
30
|
-
# echo "β β"
|
|
31
|
-
# echo "β Rock, Paper, Scissors β"
|
|
32
|
-
# echo "β β"
|
|
33
|
-
# echo "ββββββββββββββββββββββββββββββββββββββββ"
|
|
34
|
-
# echo ""
|
|
35
|
-
# echo "Enter a choice :"
|
|
36
|
-
# echo "1 for Rock"
|
|
37
|
-
# echo "2 for Paper"
|
|
38
|
-
# echo "3 for Scissor"
|
|
39
|
-
# echo ""
|
|
40
|
-
# }
|
|
41
|
-
|
|
42
|
-
# rps() {
|
|
43
|
-
|
|
44
|
-
# clr=0
|
|
45
|
-
# i=0
|
|
46
|
-
# while [ $i != 1 ]; do
|
|
47
|
-
# if [ $clr = 0 ]; then
|
|
48
|
-
# clr=0
|
|
49
|
-
# clear
|
|
50
|
-
# print 1
|
|
51
|
-
# fi
|
|
52
|
-
# read -r ch1
|
|
53
|
-
# echo ""
|
|
54
|
-
|
|
55
|
-
# case $ch1 in
|
|
56
|
-
# 1)
|
|
57
|
-
# echo "You chose rock"
|
|
58
|
-
# ;;
|
|
59
|
-
# 2)
|
|
60
|
-
# echo "You chose paper"
|
|
61
|
-
# ;;
|
|
62
|
-
# 3)
|
|
63
|
-
# echo "You chose scissor"
|
|
64
|
-
# ;;
|
|
65
|
-
# esac
|
|
66
|
-
|
|
67
|
-
# if [ "$ch1" = 0 ] && [ "$ch1" = 3 ]; then
|
|
68
|
-
# echo "please choose from 1, 2 or 3."
|
|
69
|
-
# clr=1
|
|
70
|
-
# continue
|
|
71
|
-
# fi
|
|
72
|
-
|
|
73
|
-
# ch2=$(echo "$RANDOM%3+1" | bc)
|
|
74
|
-
|
|
75
|
-
# case $ch2 in
|
|
76
|
-
# 1)
|
|
77
|
-
# echo "The computer chose rock"
|
|
78
|
-
# ;;
|
|
79
|
-
# 2)
|
|
80
|
-
# echo "The computer chose paper"
|
|
81
|
-
# ;;
|
|
82
|
-
# 3)
|
|
83
|
-
# echo "The computer chose scissor"
|
|
84
|
-
# ;;
|
|
85
|
-
# esac
|
|
86
|
-
|
|
87
|
-
# check "${ch1}" "${ch2}"
|
|
88
|
-
# echo "To exit press 0"
|
|
89
|
-
# echo "To play again press p : "
|
|
90
|
-
# read -r ch3
|
|
91
|
-
# if [ "$ch3" = p ]; then
|
|
92
|
-
# rep=6
|
|
93
|
-
# while [ $rep != 0 ]; do
|
|
94
|
-
# clear
|
|
95
|
-
# print 1
|
|
96
|
-
# echo "Starting in $($rep - 1) seconds!!!"
|
|
97
|
-
# rep=$($rep - 1)
|
|
98
|
-
# done
|
|
99
|
-
# continue
|
|
100
|
-
# else
|
|
101
|
-
# exit
|
|
102
|
-
# fi
|
|
103
|
-
# done
|
|
104
|
-
# }
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
|
-
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-2023. All rights reserved
|
|
5
|
-
# License: MIT
|
|
6
|
-
|
|
7
|
-
# trash: Function to moves a file to the MacOS trash
|
|
8
|
-
#trash(){
|
|
9
|
-
# if [ "$#" != 1 ]; then
|
|
10
|
-
# echo "[ERROR] Please add one argument" >&2
|
|
11
|
-
# return 1
|
|
12
|
-
# fi
|
|
13
|
-
# rm "$1"
|
|
14
|
-
#}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.464) - https://dotfiles.io
|
|
3
|
-
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-2023. All rights reserved
|
|
5
|
-
# License: MIT
|
|
6
|
-
|
|
7
|
-
# tree: Function to generates a tree view from the current directory
|
|
8
|
-
#if [ ! -e /usr/local/bin/tree ]; then
|
|
9
|
-
# tree(){
|
|
10
|
-
# pwd
|
|
11
|
-
# ls -R | grep ":$" | \
|
|
12
|
-
# sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'
|
|
13
|
-
# }
|
|
14
|
-
#fi
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# π
³π
Ύππ
΅π
Έπ
»π
΄π (v0.2.452) - https://dotfiles.io
|
|
3
|
-
# Made with β₯ in London, UK by @sebastienrousseau
|
|
4
|
-
# Copyright (c) 2015-2023. All rights reserved
|
|
5
|
-
# License: MIT
|
|
6
|
-
|
|
7
|
-
# uuid: Function to generate a UUID (Universally Unique IDentifier)
|
|
8
|
-
# uuidgen() {
|
|
9
|
-
# local N B C='89ab' # 89ab is the hexadecimal value of 10, 11, 12, 13, 14, 15 in decimal
|
|
10
|
-
# for ((N = 0; N < 16; ++N)); do
|
|
11
|
-
# B=$(("$RANDOM" % 256))
|
|
12
|
-
# case $N in
|
|
13
|
-
# 6)
|
|
14
|
-
# printf '4%x' $((B % 16))
|
|
15
|
-
# ;;
|
|
16
|
-
# 8)
|
|
17
|
-
# printf '%c%x' ${C:$RANDOM%${#C}:1} ${B % 16}
|
|
18
|
-
# ;;
|
|
19
|
-
# 3 | 5 | 7 | 9)
|
|
20
|
-
# printf '%02x-' "${B}"
|
|
21
|
-
# ;;
|
|
22
|
-
# *)
|
|
23
|
-
# printf '%02x' "${B}"
|
|
24
|
-
# ;;
|
|
25
|
-
# esac
|
|
26
|
-
# done
|
|
27
|
-
# echo
|
|
28
|
-
# }
|