Skip to content

Commit

Permalink
feat: improve daily scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rgomezcasas committed Sep 25, 2023
1 parent b0ee2a6 commit 7c90a71
Show file tree
Hide file tree
Showing 9 changed files with 2,112 additions and 3,098 deletions.
4 changes: 4 additions & 0 deletions editors/code/keybindings.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,9 @@
{
"key": "ctrl+alt+cmd+o",
"command": "workbench.action.openRecent"
},
{
"key": "cmd+2",
"command": "tabsTreeView.focus"
}
]
8 changes: 4 additions & 4 deletions editors/code/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"search.useGlobalIgnoreFiles": true,
"search.useIgnoreFiles": true,
"workbench.editor.showTabs": false,
"explorer.openEditors.visible": 0,
"explorer.openEditors.visible": 1,
// Behaviour
"window.openFoldersInNewWindow": "on",
// Apparence
"workbench.colorTheme": "Visual Studio Light",
"workbench.colorTheme": "Codely Dark",
"editor.cursorSmoothCaretAnimation": "on",
"editor.smoothScrolling": true,
"explorer.compactFolders": false,
Expand Down Expand Up @@ -67,6 +67,6 @@
"boot-java.rewrite.reconcile": true,
"editor.inlineSuggest.enabled": true,
"aws.telemetry": false,
"workbench.activityBar.visible": false,
"symbols.hidesExplorerArrows": false
"symbols.hidesExplorerArrows": false,
"window.zoomLevel": 1
}
2 changes: 2 additions & 0 deletions git/.gitignore_global
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
.lein-failures
completer.histw
.nrepl-port
.lsp
.clj-kondo

# Scala
libsigar-universal64-macosx.dylib
Expand Down
5,157 changes: 2,068 additions & 3,089 deletions os/mac/karabiner-elements/karabiner.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion os/mac/karabiner-goku/karabiner.edn
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
{:des "[launch] iTerm"
:rules [[:!CTOspacebar [:open-app "iTerm"]]]}
{:des "[launch] IntelliJ"
:rules [[:!CTOi [:open-app "IntelliJ IDEA-EAP"]]]}
:rules [[:!CTOi [:open-app "IntelliJ IDEA Ultimate"]]]}
{:des "[launch] Chrome"
:rules [[:!CTOc [:open-app "Google Chrome"]]]}
{:des "[launch] Slack"
Expand Down
29 changes: 29 additions & 0 deletions scripts/utils/random
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env bash

set -euo pipefail

source "$DOTLY_PATH/scripts/core/_main.sh"

##? Open one common element
#?? 1.0.0
##?
##? Usage:
##? random
docs::parse "$@"

declare -A commands

commands=(
["domain"]="faker-cli --internet domainName"
["email"]="faker-cli --internet email"
["name"]="faker-cli --names firstName"
["uuid"]="uuidgen"
)

command=$(printf "%s\n" "${!commands[@]}" | choose)

if [[ -n ${commands[$command]} ]]; then
eval "${commands[$command]}" | sed 's/"//g' | pbcopy
else
echo "No command selected"
fi
2 changes: 1 addition & 1 deletion shell/zsh/.zimrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# If you modify this execute `zimfw uninstall & zimfw install`
zmodule zimfw/completion
zmodule Aloxaf/fzf-tab
zmodule zimfw/environment
zmodule zimfw/git-info
zmodule zimfw/input
zmodule zimfw/completion
zmodule zsh-users/zsh-syntax-highlighting
zmodule zsh-users/zsh-autosuggestions
2 changes: 1 addition & 1 deletion shell/zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ZSH_HIGHLIGHT_MAXLENGTH=300

source "$DOTFILES_PATH/shell/init.sh"

fpath=("$DOTFILES_PATH/shell/zsh/themes" "$DOTFILES_PATH/shell/zsh/autocompletions" "$DOTLY_PATH/shell/zsh/themes" "$DOTLY_PATH/shell/zsh/completions" $fpath)
fpath=("$DOTLY_PATH/shell/zsh/themes" "$DOTLY_PATH/shell/zsh/completions" $fpath)

autoload -Uz promptinit && promptinit
prompt ${DOTLY_THEME:-codely}
Expand Down
4 changes: 2 additions & 2 deletions symlinks/conf.macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
~/bin/make: /opt/homebrew/bin/gmake
~/bin/node: /opt/homebrew/opt/node@18/bin/node
~/bin/npm: /opt/homebrew/opt/node@18/bin/npm
~/bin/pecl: /opt/homebrew/opt/php@8.1/bin/pecl
~/bin/php: /opt/homebrew/opt/php@8.1/bin/php
~/bin/pecl: /opt/homebrew/opt/php@8.2/bin/pecl
~/bin/php: /opt/homebrew/opt/php@8.2/bin/php
~/bin/sed: /opt/homebrew/bin/gsed
~/bin/touch: /opt/homebrew/bin/gtouch
~/bin/zsh: /bin/zsh
Expand Down

0 comments on commit 7c90a71

Please sign in to comment.