1
0
mirror of https://github.com/akelge/zsh synced 2025-07-03 05:05:28 +00:00
This commit is contained in:
Andrea Mistrali
2021-08-09 16:03:13 +02:00
parent 5f524d9757
commit c5825d2137
14 changed files with 8 additions and 74 deletions

View File

@ -4,8 +4,8 @@ then
echo AWS profile cleared.
return
fi
saml2aws login -a $1 -p $1
eval $(saml2aws script -a $1 -p $1 --skip-prompt)
#saml2aws login -a $1 -p $1
#eval $(saml2aws script -a $1 -p $1 --skip-prompt)
export AWS_DEFAULT_PROFILE=$1
export AWS_PROFILE=$1
export AWS_EB_PROFILE=$1

View File

@ -1,13 +0,0 @@
fancyterms=('xterm' 'rxvt' 'screen')
for t in $fancyterms; do
if [ "${TERM#${t}}" != "$TERM" ]; then
unset fancyterms
return 0
fi
done
unset fancyterms
return 1
# vim: set ts=4 sw=4 tw=0 ft=zsh :

Binary file not shown.

View File

@ -1,17 +0,0 @@
du -kc $* | sort -nr | awk '{
# Prepare human readable
if($1>=1024*1024) { size=$1/1024/1024; unit="G" }
else if($1>=1024) { size=$1/1024; unit="M" }
else { size=$1; unit="K" };
format="%10.2f%s";
hsize=sprintf(format,size,unit);
# Remove $1 (size), then removes " " at the start of $0
$1=""; thepath=$0; sub(/^ /,"",thepath);
# Print size and path (directories are bolded)
if ( system("[ -d \""thepath"\" ]") )
printf "%-8s %s\n",hsize,thepath;
else
printf "%-8s \033[1m%s\033[0m/\n",hsize,thepath;
}'

Binary file not shown.

View File

@ -1 +0,0 @@
grep -i $* $HISTFILE

Binary file not shown.

View File

@ -1,8 +0,0 @@
function repo_char {
#git branch > /dev/null 2> /dev/null && echo '±:' && return
git branch > /dev/null 2> /dev/null && echo '\u00b1:' && return
svn info > /dev/null 2> /dev/null && echo '\u13a6:' && return
# git branch > /dev/null 2> /dev/null && echo 'git:' && return
# svn info > /dev/null 2> /dev/null && echo 'svn:' && return
# echo '\u25cb'
}

Binary file not shown.