1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-20 02:43:23 -07:00

remove debug echoes from rc files

This commit is contained in:
Connor Olding 2021-07-29 07:39:19 -07:00
parent 1c562ad0f9
commit 7e5b09b6c7
2 changed files with 0 additions and 16 deletions

View File

@ -1,5 +1,4 @@
[ -z "$PS1" ] && return
echo START.bashrc
# trace: (on ubuntu)
# /etc/bash.bashrc
@ -38,23 +37,19 @@ ret_fail="$_title${Cfail}$_line1\n${Cfail}$_line2"
PROMPT_COMMAND='[ $? = 0 ] && PS1=${ret_succ} || PS1=${ret_fail}'
echo START.-shrc
. ~/.-shrc
echo FINISH.-shrc
alias pl="printf '%s\n'"
# this doesn't work for all scripts at the moment, but
ADDPATH "$HOME/sh"
echo START.MERGING
(
cd ~/sh \
&& printf "%s\n" '#!/usr/bin/env false' '[ "${SOURCING:-0}" -gt 0 ] || exit 1' '' \
| cat - $(grep -lF 'YES_BASH' $(find ~/sh -maxdepth 1 -type f)) \
> ~/.sh-bash
)
echo FINISH.MERGING
SOURCING=$((SOURCING+1))
. ~/.sh-bash
@ -62,4 +57,3 @@ SOURCING=$((SOURCING-1))
# TODO: respect initctl like in .zshrc.
alias reload='cd; exec bash'
echo FINISH.bashrc

View File

@ -1,6 +1,4 @@
echo START.PROFILE
[ -e /etc/profile ] && emulate sh -c "source /etc/profile"
echo FINISH.PROFILE
# trace:
# /etc/zsh/zshenv{.zwc,}
@ -53,8 +51,6 @@ autoload edit-command-line
autoload history-search-end
zmodload zsh/mathfunc
echo START.SH
function {
local a b
@ -75,8 +71,6 @@ SOURCING=$((SOURCING+1))
. ~/.sh
SOURCING=$((SOURCING-1))
echo FINISH.SH
local fuzzy=`has fzy || print`
dirprev() {
@ -164,9 +158,7 @@ bindkey -s '^[[6;2~' '\a' # shift+PgDn, do nothing, already at bottom (tmux)
zle -N edit-command-line # new widget of the same function name
bindkey '^Xe' edit-command-line # ctrl+x -> e
echo START.-
. ~/.-shrc
echo FINISH.-
alias -g OMFG="1>/dev/null"
alias -g STFU="2>/dev/null"
@ -255,6 +247,4 @@ for x in ai arith curl fc find ftp hex history let locate rsync scp sftp tw twit
alias $x="noglob $x"
unset x
echo START.COMPINIT
. ~/.prezto-compinit
echo FINISH.COMPINIT