Last active
April 28, 2023 15:20
-
-
Save jeriley/0ac5cb7e1acfd9b9e73410ce3886bfbb to your computer and use it in GitHub Desktop.
bashrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function open { | |
explorer . | |
} | |
function reset-me { | |
echo 'resting HEAD' | |
git fetch origin | |
git reset --hard origin/master | |
} | |
alias home="cd /c/projects/" | |
alias ja="cd /c/java/" | |
alias jbuild="./gradlew build" | |
function mail { | |
/c/swaks2017/swaks -h domain.com -t booya@myserver.com -f somewhere@example.com --header "Subject: A Subject!" --body "body body body" -s localhost -p 25 | |
} | |
alias chrome="/c/Program\ Files\ \(x86\)/Google/Chrome/Application/chrome.exe" | |
function ssh-start() | |
{ | |
echo 'eval $(ssh-agent)' | |
eval $(ssh-agent) | |
echo 'ssh-ad ~/.ssh/id_rs_rsa' | |
ssh-add ~/.ssh/id_rs_rsa | |
} | |
alias that="$($(fc -ln -1) |& tail -1)" | |
google() | |
{ | |
local s="$_" | |
local query= | |
case "$1" in | |
'') ;; | |
that) query="search?q=${s//[[:space:]]/+}" ;; | |
*) s="$*"; query="search?q=${s//[[:space:]]/+}" ;; | |
esac | |
chrome "http://www.google.com/${query}" | |
echo open chrome "http://www.google.com/${query}" | |
} | |
alias subl="/c/Program\ Files/Sublime\ Text\ 3/subl.exe" | |
alias mdb="mongod --dbpath /c/whatever/db" | |
function cdwin(){ | |
line=$(sed -e 's#^J:##' -e 's#\\#/#g' <<< "$1") | |
cd "$line" | |
} | |
alias globals="$ npm list -g --depth=0" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment