config

My configuration files and custom scripts.
git clone https://git.tronto.net/config
Download | Log | Files | Refs

.profile (1709B)


      1 # Standard  options and environment variables
      2 set -o vi
      3 
      4 PATH="$HOME/scripts:$PATH"
      5 PS1="[\h \W] \$ "
      6 export LC_COLLATE="C"
      7 
      8 export HISTCONTROL=ignoredups
      9 export HISTFILE=$HOME/.sh_history
     10 export HISTSIZE=10000
     11 
     12 # Standard stuff and variables for my scripts
     13 export EDITOR=vi
     14 export VISUAL=vi
     15 export NOTIFY=notify
     16 export OPENER=open-file
     17 export BROWSER=firefox
     18 export XDG_CONFIG_HOME="$HOME/.config"
     19 export XDG_DATA_HOME="$HOME/.local/share"
     20 export XDG_CACHE_HOME="$HOME/.cache"
     21 
     22 # Program-specific stuff
     23 export FZF_DEFAULT_OPTS="-e -i -m --no-bold --no-color --layout=reverse-list"
     24 export LYNX_CFG="$XDG_CONFIG_HOME/lynx/lynx.cfg"
     25 export LYNX_LSS="$XDG_CONFIG_HOME/lynx/lynx.lss"
     26 export PYTHON_COLORS=0
     27 
     28 # Aliases
     29 alias o='open-file'
     30 alias f='feed get && feed -m fzf menu'
     31 alias w='iwctl station wlan0 get-networks'
     32 alias c='iwctl station wlan0 connect'
     33 alias d='iwctl station wlan0 disconnect'
     34 
     35 alias bc='bc -q /home/sebastiano/box/bc.library'
     36 alias rm='trash rm'
     37 alias ls='ls --color=auto'
     38 alias clip='clip -m fzf'
     39 alias svi='vi "+so $HOME/.virc-spaces"'
     40 
     41 # Email management (mblaze)
     42 MAIL=$HOME/mail
     43 msync() { mbsync -a; }
     44 msc()   { d=${1:-$MAIL/INBOX}; minc -q $d; mlist -t $d | mthread | mseq -S; mscan; }
     45 mget()  { mbsync -a; msc; }
     46 mtt()   { echo $MAIL/Trash | xargs mrefile $@; }
     47 mta()   { echo $MAIL/Archive | xargs mrefile $@; }
     48 mpk()   { f=$1; shift; mpick -t "$f =~~ \"$@\""; }
     49 s()     { mshow $@ | templess; }
     50 sht()   { mshow -A text/html $@; }
     51 n()     { mshow .+1 | templess; }
     52 
     53 # nissy build options
     54 #export NISSY_BUILD_SANITIZE="address,undefined"
     55 
     56 # Session cookies are kept in .ssh
     57 [ -f $HOME/.ssh/sessions ] && . $HOME/.ssh/sessions
     58 
     59 # startx if in tty1
     60 [ "$(tty)" = "/dev/tty1" ] && startx