aboutsummaryrefslogtreecommitdiffstats
path: root/src/configs/shared/.zshrc
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2022-05-30 10:03:45 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2022-05-30 10:03:45 -0500
commit03a83252b0adc365bb183f77f555e2add33c1ba1 (patch)
tree450d2526ed03d24fb99afd7b411f6aeb4cc79f74 /src/configs/shared/.zshrc
parentAdd wallpaper and vim navigation keys for i3 (diff)
downloaddotfiles-03a83252b0adc365bb183f77f555e2add33c1ba1.zip
Add bsd updates
Diffstat (limited to 'src/configs/shared/.zshrc')
-rw-r--r--src/configs/shared/.zshrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/configs/shared/.zshrc b/src/configs/shared/.zshrc
index 89f96cc..53ff1ac 100644
--- a/src/configs/shared/.zshrc
+++ b/src/configs/shared/.zshrc
@@ -5,7 +5,8 @@ precmd() {
vcs_info
}
setopt prompt_subst
-PROMPT=' %~ ${vcs_info_msg_0_}%# '
+NEWLINE=$'\n'
+PROMPT=' %2~ ${vcs_info_msg_0_}%# '
export EDITOR="nvim"
export BROWSER="firefox"
@@ -73,3 +74,6 @@ gocover() {
go test -coverprofile=$t $@ && go tool cover -html=$t && unlink $t
}
+ip() {
+ ifconfig | jc --ifconfig | jq '.[] | select(.name=="em0") | {ipv4_addr, ipv6_addr}'
+}