Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3713836
D3075.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3075.id.diff
View Options
diff --git a/roles/core/userland-home/files/dereckson/.zshrc b/roles/core/userland-home/files/dereckson/.zshrc
--- a/roles/core/userland-home/files/dereckson/.zshrc
+++ b/roles/core/userland-home/files/dereckson/.zshrc
@@ -55,16 +55,23 @@
# -------------------------------------------------------------
# History
+#
+# https://blog.callstack.io/supercharge-your-terminal-with-zsh-8b369d689770
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
HISTFILE=~/.histfile
-HISTSIZE=10000
-SAVEHIST=10000
+HISTSIZE=100000
+SAVEHIST=$HISTSIZE
setopt appendhistory
if [[ -a /usr/local/share/zsh/wynter/zsh-histdb/sqlite-history.zsh ]]; then
source /usr/local/share/zsh/wynter/zsh-histdb/sqlite-history.zsh
autoload -Uz add-zsh-hook
+else
+ setopt hist_ignore_all_dups
+ setopt hist_reduce_blanks
+ setopt inc_append_history # save history entries as soon as they are entered
+ setopt share_history # share history between different instances of the shell
fi
# -------------------------------------------------------------
@@ -243,6 +250,16 @@
export VAULT_ADDR='https://172.27.27.7:8200'
+# -------------------------------------------------------------
+# Colorize output with grc
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+if command -v grc >/dev/null 2>&1; then
+ alias mysql="mysql --pager='grcat /usr/local/share/grc/conf.mysql | less -RSFXin'"
+ alias ping='grc ping'
+ alias ping6='grc ping6'
+fi
+
# -------------------------------------------------------------
# Misc aliases
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -257,6 +274,8 @@
alias tclsh='rlwrap tclsh8.6'
alias psysh='rlwrap psysh'
+alias weather="curl http://v2.wttr.in/Brussels"
+
if [[ -a ~/.zshrc-misc-aliases ]]; then
source ~/.zshrc-misc-aliases
fi
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 5, 08:14 (1 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2230121
Default Alt Text
D3075.id.diff (1 KB)
Attached To
Mode
D3075: Import .zshrc configuration from Ysul
Attached
Detach File
Event Timeline
Log In to Comment