-
Notifications
You must be signed in to change notification settings - Fork 1
/
conf.sh
executable file
·27 lines (25 loc) · 963 Bytes
/
conf.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# == setup history sharing between prompts ==========================
# Where it gets saved
HISTFILE=~/.history
# Remember about a years worth of history (AWESOME)
SAVEHIST=10000
HISTSIZE=10000
# Don't overwrite, append!
setopt APPEND_HISTORY
# Killer: share history between multiple shells
setopt SHARE_HISTORY
# If I type cd and then cd again, only save the last one
setopt HIST_IGNORE_DUPS
# Even if there are commands inbetween commands that are the same, still only save the last one
setopt HIST_IGNORE_ALL_DUPS
# Use this locking method to prevent errors on initial start
setopt HIST_FCNTL_LOCK
# Pretty Obvious. Right?
setopt HIST_REDUCE_BLANKS
# https://cygwin.com/cygwin-ug-net/using-cygwinenv.html
# each option is separated by a space
export CYGWIN="nodosfilewarning winsymlinks:nativestrict"
# Makes the Open ConEmu right-click command open the terminal within the current directory.
if [ -n "${ConEmuWorkDir}" ]; then
cd "$ConEmuWorkDir"
fi