summaryrefslogtreecommitdiff
path: root/bashrc/.wit
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-27 04:32:27 -0600
committerJeff Carr <[email protected]>2024-12-27 04:32:27 -0600
commitdc251253c8f2b51ec37a2b2aafa745cfa14a818b (patch)
tree6afab034f9ff4b0cbe6e7252ddac33460c0cb9d0 /bashrc/.wit
parent2f03d655b58f17445bcd3b408c1ca264f21ad883 (diff)
move more bash stuff here
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'bashrc/.wit')
-rw-r--r--bashrc/.wit21
1 files changed, 20 insertions, 1 deletions
diff --git a/bashrc/.wit b/bashrc/.wit
index 8aafc36..642fdcd 100644
--- a/bashrc/.wit
+++ b/bashrc/.wit
@@ -1,3 +1,5 @@
+# wit default bash settings
+
case "$-" in
*i*) echo This shell is interactive ;;
*) return ;;
@@ -35,7 +37,11 @@ alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -lh'
alias lf='ls $LS_OPTIONS -aCF'
alias l='ls $LS_OPTIONS -lA'
-#
+
+umask 022
+export LESS="-XFR"
+# -F makes less exit if the file is short
+
# Some more alias to avoid making mistakes:
alias rm='rm -i'
alias cp='cp -i'
@@ -48,10 +54,23 @@ alias last='last -a'
alias vi='vim -u ~/.config/vimrc'
alias vim='vim -u ~/.config/vimrc'
+# added 2024/09/03
+alias df='df -h -x tmpfs -x devtmpfs'
+alias dff='/usr/bin/df'
+alias dmesg='dmesg -wT'
+alias grep='grep -I -d skip'
+alias lsof='lsof -n -P'
+
alias apt-find="apt-file search"
+
+# added 2024/12
alias apps="cd ~/go/src/go.wit.com/apps"
alias proto="cd ~/go/src/go.wit.com/lib/protobuf"
+# this is neat. how does it work?
+# todo: make it work with go-args
+complete -C gocomplete go
+
export LANG=C
export LANGUAGE=C
export LC_ALL=C