Skip to content

Commit

Permalink
Add git nvm and zshrc aliases for nvm and nevermind. Add locale const…
Browse files Browse the repository at this point in the history
…ants. Ignorecase on vim
  • Loading branch information
GMadorell committed Feb 16, 2023
1 parent 18e1620 commit 3932a3d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 22 deletions.
1 change: 1 addition & 0 deletions gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
uncommit = reset --mixed HEAD~
amend = commit --amend
nevermind = !git reset --hard HEAD && git clean -d -f
nvm = nevermind
[credential]
helper = osxkeychain
[core]
Expand Down
6 changes: 3 additions & 3 deletions sbt/1.0/plugins/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
addSbtPlugin("com.github.duhemm" % "sbt-errors-summary" % "0.6.5")
//addSbtPlugin("com.github.duhemm" % "sbt-errors-summary" % "0.6.5")
// addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.10.0-RC1")
addSbtPlugin("com.github.tkawachi" % "sbt-repeat" % "0.1.0")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.2")
//addSbtPlugin("com.github.tkawachi" % "sbt-repeat" % "0.1.0")
// addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.2")

4 changes: 4 additions & 0 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ color dracula
"" expandtab -> Use actual spaces instead of tabs
:set tabstop=2 shiftwidth=2 expandtab

" Ignore case when searching
" Be careful, it also applies to search and replaces (aka substitutions).
:set ignorecase


" Commands
"" Json Formatting
Expand Down
45 changes: 26 additions & 19 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ export LOG_WARNING="[Warning]"
export LOG_INFO="[Info]"


# Locale constants
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8


# Shell configuration
## Name console window / tab
export DISABLE_AUTO_TITLE="true" # Don't let Oh-My-Zsh control title, control it yourself
Expand Down Expand Up @@ -106,7 +111,6 @@ bindkey -s "\C-r" "\eqhh\n" # bind hh to Ctrl-r (for Vi mode check doc)

## Broot setup - improved tree command
source "$HOME/.config/broot/launcher/bash/br"
alias tree=br

# Direnv - environment variables switcher (similar to virtualenv)
eval "$(direnv hook zsh)"
Expand Down Expand Up @@ -658,24 +662,24 @@ function notify() {
}

function timer() {
if [ $# -eq 1 ]; then
local start=$(date +%s)
local goal=$(m "$start+60*$1")
echo "Setting up a timer for $1 minutes"
echo "Start at: $(gdate -d@$start +%H:%M:%S)"
echo "Run until $(gdate -d@$goal +%H:%M:%S)"
while [ $goal -ge $(date +%s) ];
do;
local secondsLeft=$(m "$goal-$(date +%s)")
echo -en "\r\033[KTimer Left: $(gdate -d@$secondsLeft -u +%H:%M:%S)"
sleep 1;
done;
notify "Timer is done" "Timer is done"
for i in {1..3}; do afplay /System/Library/Sounds/Glass.aiff; done
say "Timer is done"
else
echo "$LOG_ERROR timer requires one parameter (amount of minutes)"
fi
if [ $# -eq 1 ]; then
local start=$(date +%s)
local goal=$(m "$start+60*$1")
echo "Setting up a timer for $1 minutes"
echo "Start at: $(gdate -d@$start +%H:%M:%S)"
echo "Run until $(gdate -d@$goal +%H:%M:%S)"
while [ $goal -ge $(date +%s) ];
do;
local secondsLeft=$(m "$goal-$(date +%s)")
echo -en "\r\033[KTimer Left: $(gdate -d@$secondsLeft -u +%H:%M:%S)"
sleep 1;
done;
notify "Timer is done" "Timer is done"
for i in {1..3}; do afplay /System/Library/Sounds/Glass.aiff; done
say "Timer is done"
else
echo "$LOG_ERROR timer requires one parameter (amount of minutes)"
fi
}

alias dateiso="date +%F"
Expand Down Expand Up @@ -907,6 +911,9 @@ alias ga.="ga ."

alias gunstage_all="git restore --staged ."

alias gnvm="git nvm"
alias gnevermind="git nevermind"

alias grc="git rebase --continue"

alias grp="git remote prune origin" # Remove branches locally that have already been deleted in the remote
Expand Down

0 comments on commit 3932a3d

Please sign in to comment.