all repos — dotfiles @ eff04f9ced169aa8519423e93d4b6b78e8add0be

random configuration files

kshrc (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
dolphin()
{
  /home/nilix/src/myUtils/swarpabuse.sh 360 &
  dolphin-emu;
  killall swarpabuse.sh
}

indicator()
{
  if [ $(whoami) != root ]; then
    echo "%"
  else echo "#"
  fi
}

silence()
{
  "$@" > /dev/null & exit
}

search()
{
  firefox https://duckduckgo.com/?q="$*" > /dev/null & exit
}

acmeInit()
{
  tabstop=2
  acme -ab & sleep 0.2;
  transset -n acme --no-regex 0.85;
  exit
}

9man()
{
  man -c "$@" | ul
}

alias web='silence firefox'
alias mail='silence thunderbird'
alias fs='silence thunar'
alias office='silence libreoffice'
alias acme='acmeInit'
alias man='9man'

alias ls='ls -lh --group-directories-first'

if [ -d ~/bin ]; then
  PATH=~/bin:${PATH}
  for x in ~/bin/*; do
    if [ -d $x ]; then
      PATH=${x}:${PATH}
    fi
  done
fi
  
export GTK_THEME=steppenwolf-dark
export GPG_TTY=$(tty)
VISUAL=nano
EDITOR=nano
if [ "$TERM" = "dumb" ]; then
  PS1='$(indicator) '
else
  PS1='\033]0;$(whoami)@$(hostname): ${PWD}\007[ $(hostname): ${PWD} ]\n$(indicator) '
fi
bind -m '^L'='^C'clear'^J'