File tree 2 files changed +9
-14
lines changed
2 files changed +9
-14
lines changed Original file line number Diff line number Diff line change
1
+ # see https://stackoverflow.com/a/44079479/198348
2
+ -w " \n status=%{http_code} %{redirect_url} size=%{size_download} time=%{time_total} content-type=\" %{content_type}\"\n "
3
+
Original file line number Diff line number Diff line change @@ -10,11 +10,12 @@ export PROMPT_COMMAND="history -a; history -c; history -r; $prompt_command"
10
10
# update the values of lines and columns after each command
11
11
shopt -s checkwinsize
12
12
13
+ # using `tty -s` because of https://askubuntu.com/a/918479/22073
13
14
# break on '-' and '/' for 'c-w' properly! look at .inputrc for backward-kill-word
14
15
# TODO look at other stty options
15
- stty werase undef
16
+ tty -s && stty werase undef
16
17
# disable terminal flow control
17
- stty -ixon
18
+ tty -s && stty -ixon
18
19
19
20
export INPUTRC="$HOME/.inputrc"
20
21
export PAGER="less"
@@ -37,19 +38,10 @@ test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)"
37
38
alias grep="grep --color=auto --ignore-case"
38
39
alias ls="ls --human-readable --group-directories-first --sort=extension --color=auto"
39
40
40
-
41
41
# 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 }
53
45
54
46
# https://github.com/junegunn/fzf#respecting-gitignore
55
47
export FZF_DEFAULT_COMMAND='
You can’t perform that action at this time.
0 commit comments