65 lines
2.0 KiB
Plaintext
65 lines
2.0 KiB
Plaintext
#####################################################################
|
|
## Environment ##
|
|
#####################################################################
|
|
|
|
# Set the time zone.
|
|
TZ=AEST+3
|
|
|
|
# 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=1 -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'
|
|
CXXFLAGS=$CFLAGS
|
|
FFLAGS=$CFLAGS
|
|
LDFLAGS=
|
|
|
|
# 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}
|