##################################################################### ## Environment ## ##################################################################### # Set the time zone. TZ=AEST+4 # Clear the terminal. clear # Set our default directory to the Workspace. cd ~/Desktop/Workspace # Set up the preferred tooling. EDITOR='emacsclient -cuq -nw' PAGER='less' XPG='xless' W3B='Links' VPLAY='fpv' MPLAY='fpm' IVIEW='iview' ## Configure for kiss compat KISS_PATH=`{echo "/var/db/kiss/repos/kiss-mfavila/ports:`{du -d5 /var/db/kiss/repos|cut -f2|grep -v \\.|sort|tr '\n' ':'}"} KISS_DL='axel' KISS_SU='sup' # Configure our compiler. 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,-O1,-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 {test `'pwd' \= $HOME}{printf \~}{basename `pwd}} # Print the prompt itself. %prompt is called before displaying the prompt. fn %prompt{prompt=`echo `whoami\:`cdir\>\ } ##################################################################### ## Aliases ## ##################################################################### # Editor! fn edit args {emacsclient -cuq -nw $args} # Git! fn gcl args {git clone $args} # KISS! fn k args {kiss $args} # 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}