summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-04-20 16:10:14 +1200
committerDavid Phillips <david@sighup.nz>2017-04-20 16:10:14 +1200
commitaffa6979c6f45618d3c2eb6ff691158fde09accc (patch)
tree404ae4e87cc1726ec1898cb5786f5c6e1f64bca3
parent36e1e0b68cf9b3d096a86492f7f82fd13adcf632 (diff)
downloaddotfiles-affa6979c6f45618d3c2eb6ff691158fde09accc.tar.xz
Add missing files
-rw-r--r--aliases27
-rw-r--r--environment12
2 files changed, 39 insertions, 0 deletions
diff --git a/aliases b/aliases
new file mode 100644
index 0000000..16de6ac
--- /dev/null
+++ b/aliases
@@ -0,0 +1,27 @@
+man() {
+ env LESS_TERMCAP_mb=$'\E[01;31m' \
+ LESS_TERMCAP_md=$'\E[01;38;5;74m' \
+ LESS_TERMCAP_me=$'\E[0m' \
+ LESS_TERMCAP_se=$'\E[0m' \
+ LESS_TERMCAP_so=$'\E[38;5;246m' \
+ LESS_TERMCAP_ue=$'\E[0m' \
+ LESS_TERMCAP_us=$'\E[04;38;5;146m' \
+ man "$@"
+}
+
+ccc() {
+ bc -l <<< "$@"
+}
+alias sudo="sudo "
+alias monut=mount
+alias pamcan=pacman
+alias ls="/bin/ls --color=auto"
+alias sl=ls
+alias grep="grep --color=auto"
+alias egrep="egrep --color=auto"
+alias xpdf="xpdf -cont"
+alias feh="feh --magick-timeout=0"
+alias xcp="xclip -selection c"
+alias pd=popd
+alias po='pushd $OLDPWD'
+
diff --git a/environment b/environment
new file mode 100644
index 0000000..1ae64ba
--- /dev/null
+++ b/environment
@@ -0,0 +1,12 @@
+export GPG_TTY=$(tty)
+export EDITOR=/usr/bin/vim
+
+if $(which clang 2>/dev/null); then
+ export CC=clang
+ export CXX=clang
+elif [[ $(which tcc 2>/dev/null) && !$(which gcc 2>/dev/null) ]]; then
+ export CC=tcc
+fi
+
+# u=rwx,g=,o=
+umask 077