summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-03-09 20:19:16 -0600
committerJeff Carr <[email protected]>2023-03-09 20:19:16 -0600
commit745e7e9308069f6ac7d863707e9e2a95d6e701c5 (patch)
treeb1e3e8db730d4875addcff54af4d7372f8696a43 /bashrc
parent439fa2ae2f5bc8a69fd306679f20da57593df8c0 (diff)
okay
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc/.wit70
1 files changed, 70 insertions, 0 deletions
diff --git a/bashrc/.wit b/bashrc/.wit
index 275a7d2..e286960 100644
--- a/bashrc/.wit
+++ b/bashrc/.wit
@@ -31,3 +31,73 @@ jcarr2)
fi
;;
esac
+
+case "$-" in
+*i*) echo This shell is interactive ;;
+*) return ;;
+esac
+
+# export PS1='\h:\w\$ '
+umask 022
+export LESS="-XR"
+# export LESS="-XFR"
+# -F makes less exit if the file is short
+
+unset PAGER
+set +o ignoreeof
+export LS_OPTIONS='--color=auto'
+eval `dircolors`
+alias ls='ls $LS_OPTIONS'
+alias ll='ls $LS_OPTIONS -lh'
+alias lf='ls $LS_OPTIONS -aCF'
+alias l='ls $LS_OPTIONS -lA'
+#
+# Some more alias to avoid making mistakes:
+alias rm='rm -i'
+alias cp='cp -i'
+alias mv='mv -i'
+
+alias pa='ps auxwH -L kstart_time'
+alias psc='ps xawf -eo pid,user,cgroup,args'
+alias lstree='lsusb --tree -v'
+alias last='last -a'
+alias vi='vim -u ~/.config/vimrc'
+alias vim='vim -u ~/.config/vimrc'
+
+alias apt-find="apt-file search"
+
+export LANG=C
+export LANGUAGE=C
+export LC_ALL=C
+
+# setterm -blength 0
+
+if [ $DISPLAY ] ; then
+ xset b off
+fi
+
+export EDITOR=vim
+unset VIMINIT
+
+stty -echoctl
+
+# this magic makes less work with .gz files
+[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
+
+# export PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
+
+if [ -d ~/.config/wit/ ]; then
+ cd ~/.config/wit/ && git pull
+ cd
+ sleep 1
+fi
+
+if [ $? == 0 ]; then
+ neofetch
+fi
+
+if [[ $(type -t _git_wit) == function ]]; then
+ echo "wit bash completion already exists"
+else
+ echo "should add wit bash completion here"
+fi