From 7f79985cd6d4c5067b90edc1cc0eced8b3523112 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Thu, 27 Apr 2023 14:49:01 +0100 Subject: [PATCH] General tidy-up --- .bashrc | 28 ---------------------------- .bashrc.d/space | 1 + .keys/HOMEBREW_GITHUB_API_TOKEN | Bin 512 -> 0 bytes 3 files changed, 1 insertion(+), 28 deletions(-) create mode 100644 .bashrc.d/space delete mode 100644 .keys/HOMEBREW_GITHUB_API_TOKEN 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 2aa5068b7a7b998790eb4721ac018e4377832ecf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 512 zcmV+b0{{J7zT9qv{2=U$moU=`R{d9?mdGqZ<*uxoHuVQ5!}?VaVSFMu2Zv(7XEF*- zd?-e4qRf|g`9R#o=#$0y87Qufs1>0XWQLj}ZjiujpHA2%fw;;J%`Uh=8KMu3iXUwh z1V=0_sa@ZSo{oGezp9Ow8TlW>zfyzwerkVIkGr#I97W_ll`mwxweL9E@s-ZDlL2<8 z&zVLBzt;#5`pG1MsIAd#v3dFd9J66j)^CH>zdSS_}Mf6oC8*{g?NpEe~oHP|>L3tkVpK81cD zesY_&cAkM&+-v)5aTqCnQFdk>ZJA+HImj95BMhnpgQk@VQJ)&!)jkJi2_4QZN~x53 zy1^15w^aeiUi$D*4~}N3Qd;H3Qsg+i3hrJi1BIfGEy3UA?a>)uq~nJ1BEt?8|H7Eg z#PX9M8@E7qEsZ~ARgo|59Sk!I;L$^7lEWgz46K4DKkZ<)Fq4!hr&C>@6a6M8`c~U| zo)6T9cv&~D0G*~YIuwzR>sRQaz;L08T^f2;w4N4~;#Bn8`a7;H4wK+8WXv{_YAw14 C3j7TK