configs  Diff

Differences From Artifact [a7a370f468]:

To Artifact [bc60b12193]:


1
2
3
4
5
6
7
8
9
10
11

12
13
14
15
16
17
18
export EDITOR="vim"
export PAGER="less"
export LS_COLORS='di=34:ow=44;37:tw=44;37:st=44;37:ex=31:su=7;31:sg=7;31:ln=33:or=7;33:pi=32:do=32:bd=35:cd=35:so=32:*.bz2=36:*.dmg=36:*.gz=36:*.gpg=36:*.rar=36:*.tar=36:*.tbz2=36:*.tgz=36:*.xz=36:*.zip=36:*.orig=90:*~=90'
LISTMAX=32768
WORDCHARS="*?[];!#~"
local grep=""
local grep_color="auto"
local ls=""
local ls_color="auto"
local ls_on_cd="yes"
local ls_on_init="no"


bindkey -v
# history-incremental-search-backward is much more useful than
# _history-complete-*
bindkey "^R" history-incremental-search-backward
# Add a few other emacs bindings for convenience, as it's sometimes quicker to
# use those than to switch between modes.











>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
export EDITOR="vim"
export PAGER="less"
export LS_COLORS='di=34:ow=44;37:tw=44;37:st=44;37:ex=31:su=7;31:sg=7;31:ln=33:or=7;33:pi=32:do=32:bd=35:cd=35:so=32:*.bz2=36:*.dmg=36:*.gz=36:*.gpg=36:*.rar=36:*.tar=36:*.tbz2=36:*.tgz=36:*.xz=36:*.zip=36:*.orig=90:*~=90'
LISTMAX=32768
WORDCHARS="*?[];!#~"
local grep=""
local grep_color="auto"
local ls=""
local ls_color="auto"
local ls_on_cd="yes"
local ls_on_init="no"
local simple_prompt="no"

bindkey -v
# history-incremental-search-backward is much more useful than
# _history-complete-*
bindkey "^R" history-incremental-search-backward
# Add a few other emacs bindings for convenience, as it's sometimes quicker to
# use those than to switch between modes.
63
64
65
66
67
68
69

70













71
72
73
74
75

76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
		}
		;;
	*)
		__update_terminal_cwd() {}
		;;
esac


set_prompt() {













	PS1="%F{23}%m %F{29}%c$1%F{36}%(!.#.>)%f "
	PS2="%B>%b "
	RPS1="%(1j.%F{yellow}%j%f.)%(?..%(1j. .)%F{red}%?%f)"
	RPS2="%(1_.%F{black}%B(%_%)%b%f.)"
}

set_prompt

__precmd() {
	__update_terminal_cwd

	local branch_name=$(git symbolic-ref HEAD 2>/dev/null)
	branch_name=${branch_name##refs/heads/}
	if [ -n "$branch_name" -a "$branch_name" != master ]; then
		local branch="%F{36}(%F{78}$branch_name%F{36})"
	fi
	set_prompt $branch
}

case $TERM in
	aterm|Eterm|rxvt*|uxterm*|xterm*)
		# Use set_title if you want to change the term title
		set_title() {







>
|
>
>
>
>
>
>
>
>
>
>
>
>
>
|
|
|
|
|
>





|
|
|
<
<







64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99


100
101
102
103
104
105
106
		}
		;;
	*)
		__update_terminal_cwd() {}
		;;
esac

if [ "$simple_prompt" = yes ]; then
	set_prompt() {
		local branch
		[ -n "$1" ] && branch="%F{black}%B(%b%F{cyan}$1%F{black}%B)%b%f"

		PS1="%m:%c$branch%B%(!.#.$)%b "
		PS2="%B>%b "
		RPS1="%(1j.%F{yellow}%j%f.)%(?..%(1j. .)%F{red}%?%f)"
		RPS2="%(1_.%F{black}%B(%_%)%b%f.)"
	}
else
	set_prompt() {
		local branch
		[ -n "$1" ] && branch="%F{36}(%F{78}$1%F{36})"

		PS1="%F{23}%m %F{29}%c$branch%F{36}%(!.#.>)%f "
		PS2="%B>%b "
		RPS1="%(1j.%F{yellow}%j%f.)%(?..%(1j. .)%F{red}%?%f)"
		RPS2="%(1_.%F{black}%B(%_%)%b%f.)"
	}
fi
set_prompt

__precmd() {
	__update_terminal_cwd

	local branch=$(git symbolic-ref HEAD 2>/dev/null)
	branch=${branch##refs/heads/}
	[ "$branch" = master ] && branch=""


	set_prompt $branch
}

case $TERM in
	aterm|Eterm|rxvt*|uxterm*|xterm*)
		# Use set_title if you want to change the term title
		set_title() {
197
198
199
200
201
202
203
204
205
}
alias pw="__pw -k ~/.cryptopassphrase.key"
alias pws="__pw -k ~/.cryptopassphrase-server.key"

ixio() { curl -F 'f:1=<-' ix.io }
0x0st() { curl -F'file=@-' https://0x0.st }

unset fgrep grep grep_color ls ls_color ls_on_cd ls_on_init
unset HISTFILE







|

211
212
213
214
215
216
217
218
219
}
alias pw="__pw -k ~/.cryptopassphrase.key"
alias pws="__pw -k ~/.cryptopassphrase-server.key"

ixio() { curl -F 'f:1=<-' ix.io }
0x0st() { curl -F'file=@-' https://0x0.st }

unset fgrep grep grep_color ls ls_color ls_on_cd ls_on_init simple_prompt
unset HISTFILE