############# ## ~/.profile # supposed to be default, but just in case set -o emacs ## ┬─┐┬─┐┌┐┐┬ ┬ ## │─┘│─┤ │ │─┤ ## │ ┘ │ │ │ ┴ ########## PATH # GENERAL PATH=$PATH:/usr/local/bin:/usr/games:/usr/sbin:/sbin # USER PATH=$PATH:$HOME/s/scripts:/usr/share/surfraw/ # CALIBRE PATH=$PATH:/opt/calibre # TEXLIVE PATH=$PATH:/usr/local/texlive/2020/bin/x86_64-linux MANPATH=$MANPATH:/usr/local/texlive/2020/texmf-dist/doc/man INFOPATH=$INFOPATH:/usr/local/texlive/2020/texmf-dist/doc/info ## ┬─┐┬─┐┌─┐┌┌┐┬─┐┌┐┐ ## │─┘│┬┘│ │││││─┘ │ ## │ │└┘┘─┘┘ ││ │ ############## PROMPT if [ ! -z "$SSH_CONNECTION" ] then PS1="\h>" else PS1=">" fi ## ┬─┐┐ │┬─┐┌─┐┬─┐┌┐┐┐─┐ ## ├─ ┌┼┘│─┘│ ││┬┘ │ └─┐ ## ┴─┘│ └│ ┘─┘│└┘ │ ──┘ ################ EXPORTS export TERM=vt100 export EDITOR=jmacs export SUDO_EDITOR=jmacs export LESS="-z-2 -XFM" export LESSHISTFILE="-" export PAGER=less export MAIL=/home/f6k/x/mail/ut-capitole.fr export GIT_SSH_COMMAND='ssh -q' export FIGLET_FONTDIR="$HOME/.figlet" export LYNX_CFG="$HOME/.lynx.cfg" export LYNX_SAVE_SPACE="$HOME/b" export SURFRAW_lang=fr export APULSE_PLAYBACK_DEVICE="plughw:0,0" ## ┬─┐┬ o┬─┐┐─┐┬─┐┐─┐ ## │─┤│ ││─┤└─┐├─ └─┐ ## ┘ │└─┘│┘ │──┘┴─┘──┘ ############## ALIASES # COREUTILS alias ls='ls -FNh -T 0 --color=none --show-control-chars' alias l='ls -CF --color=none' alias ll='ls -kl --color=none' alias la='ls -a' alias rm='rm -v' alias df='df -h' alias mkdir='mkdir -v' alias s='cd ..' alias chmod='chmod -v' alias c='clear;tput cup $(tput lines) 0' alias cdc='cd;clear;tput cup $(tput lines) 0' # OTHERS alias x='startx' alias zless='zless -z-2 -XPM".?ltlines %lt-%lb?L/%L. .byte %bB?s/%s. ?e(END) :?pB%pB\%..%t"' alias grep='grep --color=none' alias slrn="slrn -C-" alias feh="feh -dF" alias ec="emacsclient -nw" alias get="aria2c" alias lynx="lynx -cookies=0" alias units='units -H ""' # FUNZ AND GAMES alias nethack_t='telnet nethack.alt.org' alias doom='chocolate-doom -nomouse -iwad /archive/emu/wad/DOOM.WAD' alias doom2='chocolate-doom -nomouse -iwad /archive/emu/wad/DOOM2.WAD' alias freedoom='chocolate-doom -nomouse -iwad /archive/emu/wad/FREEDOOM1.WAD' alias freedoom2='chocolate-doom -nomouse -iwad /archive/emu/wad/FREEDOOM2.WAD' alias heretic='chocolate-heretic -nomouse -iwad /archive/emu/wad/HERETIC.WAD' alias sigil='zdoom -iwad /archive/emu/wad/DOOM.WAD -file /archive/emu/wad/SIGIL.wad' # RADIO ALIASES . ~/.radio ## ┬─┐┬ ┐┌┐┐┌─┐┌┐┐o┌─┐┌┐┐┐─┐ ## ├─ │ │││││ │ ││ ││││└─┐ ## │ └─┘ └┘└─┘ │ │┘─┘ └┘──┘ ################## FUNCTIONS # VERBOSE CD cd () { builtin cd "$@" echo "directory changed to $PWD" } # TORRENT torrent () { aria2c --seed-time=0 -u 15k "$@" } ## ┌┌┐o┐─┐┌─┐┬─┐┬ ┬ ┬─┐┌┐┐┬─┐┌─┐┬ ┐┐─┐ ## ││││└─┐│ ├─ │ │ │─┤│││├─ │ ││ │└─┐ ## ┘ ││──┘└─┘┴─┘└─┘└─┘┘ │ └┘┴─┘┘─┘└─┘──┘ ########################## MISCELLANEOUS # BLOCK CURSOR echo -e '\033[?6c'