Configuration_Files/user/homedir/rcrc

75 lines
2.4 KiB
Plaintext

#####################################################################
## Environment ##
#####################################################################
# Set the time zone
TZ=AEST+4
# Clear the terminal
clear
# Set our default directory to the Workspace
cd $HOME/Desktop/Workspace
# Set up preferred tools
EDITOR='emacsclient -cuq -nw'
PAGER='less'
XPG='xless'
W3B='Links'
VPLAY='fpv'
MPLAY='fpm'
IVIEW='iview'
# Configure for kiss compat
KISS_PATH=`{du -hd3 /var/db/kiss/repos/kiss-mfavila/ |cut -f2|sed -ne 's/.*git.*//gh' -ne 's/.*NR.*//gh' -e p|tr '\n' :}
KISS_DL='axel'
KISS_SU='sup'
# Configure our toolchain
CFLAGS='-pipe -w -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference'
CXXFLAGS=$CFLAGS
FFLAGS=$CFLAGS
LDFLAGS='-Wl,-O2,-sort-common,-as-needed,-z,relro,-z,now'
# Set makejobs to number of threads minus two
MAKEFLAGS=`{echo -j`{expr `{grep cores /proc/cpuinfo|wc -l} - 2}}
# Build in memory and keep crap out of home
XDG_CACHE_HOME='/tmp'
LESSHISTFILE='/dev/urandom'
XDG_CONFIG_HOME='/home/midfavila/.config/'
CONFIG_DIR='.config'
#####################################################################
## Prompt Settings ##
#####################################################################
# Determine what directory we're in
fn cdir {if(~ `{pwd} `{echo $HOME})
{printf %s '~'} else
{printf %s `{basename `{pwd}}}}
fn prompt {prompt=`{printf '%s' `whoami^:^`cdir^'>'^' '}}
#####################################################################
## Aliases ##
#####################################################################
# Editor
fn edit {emacsclient -cuq -nw $*}
# Git
fn gcl {git clone $*}
# KISS
fn k {kiss $*}
# Stream Furry.FM
fn stream_furryfm {fpm https://s4.radio.co/sa18a4da89/low}
# Stream AnonRadio
fn stream_anonradio {fpm http://anonradio.net:8000/anonradio}
# Stream chiptune
fn stream_chiptune {fpm http://lwtve.xyz/modmusic.ogg}