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 diff --git a/bashrc/wit b/bashrc/wit new file mode 120000 index 0000000..0b17ac6 --- /dev/null +++ b/bashrc/wit @@ -0,0 +1 @@ +.wit \ No newline at end of file