Skip to content

Instantly share code, notes, and snippets.

View wrecklass's full-sized avatar
😎
Retired from home. At this point coding is a habit.

Steven Martin wrecklass

😎
Retired from home. At this point coding is a habit.
View GitHub Profile
@wrecklass
wrecklass / browseStash.sh
Created June 28, 2019 16:37
Open Stash based git repo in Browser from command line
#!/bin/bash
STASH_SERVER="stash.dev-charter.net"
remotes="$(git remotes -v 2> /dev/null | tail -n 1)"
if [[ -n "${remotes}" ]];then
SEP="7999"
if [[ "$remotes" =~ "https:" ]];then
SEP="scm"
@wrecklass
wrecklass / cd_func.bash
Created December 12, 2018 19:36
CD Function and some aliases to make a cd history list easily usable.
#!/bin/bash
# Source this file in your bash_profile or bashrc as you like.
# Once sourced, cd to a few directories and then try `cd --` to see history.
# cd -# where # is the number of the directory you wish to return to.
# Works on macOS, Linux and Cygwin, although the aliases
# would have to be changed for different OSes.
alias cd="cd_func"
alias mkcd="_mkcd"

Keybase proof

I hereby claim:

  • I am wrecklass on github.
  • I am wrecklass (https://keybase.io/wrecklass) on keybase.
  • I have a public key ASAoRdSliSEmHinuF5Q5HkcuXO3C1OmZJfJAuvsv8ISDeQo

To claim this, I am signing this object: