Skip to content

Commit dffab45

Browse files
committed
update bashrc slightly, add curlrc
1 parent 64c60c8 commit dffab45

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

.curlrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# see https://stackoverflow.com/a/44079479/198348
2+
-w "\nstatus=%{http_code} %{redirect_url} size=%{size_download} time=%{time_total} content-type=\"%{content_type}\"\n"
3+

.readable.bashrc

+6-14
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ export PROMPT_COMMAND="history -a; history -c; history -r; $prompt_command"
1010
# update the values of lines and columns after each command
1111
shopt -s checkwinsize
1212

13+
# using `tty -s` because of https://askubuntu.com/a/918479/22073
1314
# break on '-' and '/' for 'c-w' properly! look at .inputrc for backward-kill-word
1415
# TODO look at other stty options
15-
stty werase undef
16+
tty -s && stty werase undef
1617
# disable terminal flow control
17-
stty -ixon
18+
tty -s && stty -ixon
1819

1920
export INPUTRC="$HOME/.inputrc"
2021
export PAGER="less"
@@ -37,19 +38,10 @@ test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)"
3738
alias grep="grep --color=auto --ignore-case"
3839
alias ls="ls --human-readable --group-directories-first --sort=extension --color=auto"
3940

40-
4141
# https://github.com/BurntSushi/ripgrep/issues/86#issuecomment-331718946
42-
rgl() {
43-
rg -i -p -M 500 "$@" | less -XFR
44-
}
45-
46-
rgf() {
47-
rg --files | rg -i -p -M 500 "$@" | less -XFR
48-
}
49-
50-
rglc() {
51-
rg -i -p -M 500 --type csharp "$@" | less -XFR
52-
}
42+
rgl() { rg -i -p -M 500 "$@" | less -XFR }
43+
rgf() { rg --files | rg -i -p -M 500 "$@" | less -XFR }
44+
rglc() { rg -i -p -M 500 --type csharp "$@" | less -XFR }
5345

5446
# https://github.com/junegunn/fzf#respecting-gitignore
5547
export FZF_DEFAULT_COMMAND='

0 commit comments

Comments
 (0)