diff --git a/.bashrc b/.bashrc index 47f2c5e..1570fdd 100644 --- a/.bashrc +++ b/.bashrc @@ -18,27 +18,6 @@ pathadd() { } #-------------------------------------------------------------------------------- -#-------------------------------------------------------------------------------- -# Decrypt stored keys -#-------------------------------------------------------------------------------- -getkey() { - KEYFILE=~/.keys/${1} - - if [ -f "${KEYFILE}" ]; then - if [ -x /usr/bin/security ]; then - PASS=$(/usr/bin/security find-internet-password -l ssh:scott@wallace.sh -gw) - else - read -rsp "Password: " PASS - echo - fi - - openssl rsautl -decrypt -inkey ~/.ssh/scott@wallace.sh -passin "pass:${PASS}" -in "${KEYFILE}" 2>/dev/null - else - echo "No such key" >&2 - fi -} -#-------------------------------------------------------------------------------- - #-------------------------------------------------------------------------------- # The best editor #-------------------------------------------------------------------------------- @@ -82,13 +61,6 @@ export PROMPT_COMMAND=__PROMPT_COMMAND #-------------------------------------------------------------------------------- # Command alias functions #-------------------------------------------------------------------------------- -function datafart() { curl --data-binary @- datafart.com; } && export -f datafart -function space() { du -ahx --max-depth=1 | sort -h; } && export -f space -if ! alias ll >/dev/null 2>&1; then function ll() { ls -l "${@}"; } && export -f ll; fi -[[ ! -x $(which psgrep 2>/dev/null) ]] && function psgrep() { ps -ef | grep "${@}" | grep -v ${$}; } && export -f psgrep -# [[ -x $(which glances 2>/dev/null) ]] && function top() { glances; } && export -f top -[[ -x $(which tree 2>/dev/null) ]] && alias tree="tree -AQh --du" - GIT_SSH_COMMAND="$(which ssh) -o RemoteCommand=none" export GIT_SSH_COMMAND #-------------------------------------------------------------------------------- diff --git a/.bashrc.d/space b/.bashrc.d/space new file mode 100644 index 0000000..8a566ae --- /dev/null +++ b/.bashrc.d/space @@ -0,0 +1 @@ +function space() { du -ahx --max-depth=1 | sort -h; } && export -f space diff --git a/.keys/HOMEBREW_GITHUB_API_TOKEN b/.keys/HOMEBREW_GITHUB_API_TOKEN deleted file mode 100644 index 2aa5068..0000000 Binary files a/.keys/HOMEBREW_GITHUB_API_TOKEN and /dev/null differ