This commit is contained in:
Andrei Stoica 2017-03-11 02:57:12 -05:00
parent b0f581aea1
commit 54e76e0329
3 changed files with 17 additions and 1 deletions

View File

@ -8,3 +8,7 @@ alias ml='livestreamer --config ~/.livestreamerrc -v'
alias jblive='mpv rtmp://jblive.videocdn.scaleengine.net/jb-live/play/jblive.stream'
alias twit='livestreamer --config ~/.livestreamerrc -v http://www.ustream.tv/leolaporte'
alias glog='git log --pretty=format:"%C(auto) %h,%Cgreen \"%s\"%Creset, %aN,%Cblue %cD"'
alias antlr4='java -cp ~/antlr-4.6-complete.jar:. org.antlr.v4.Tool '
alias antlr4c='javac -cp ~/antlr-4.6-complete.jar:. '
alias grun='java -cp ~/antlr-4.6-complete.jar:. org.antlr.v4.runtime.misc.TestRig '
alias ssh-agent='ssh-agent -t 1h'

12
.bashrc
View File

@ -106,7 +106,17 @@ function tmw {
tmux split-window -dh "$*";
}
function cmpl () {
if [ -z "$1" ]
then
echo "No Parameter"
elif [ "$1" == "pthread" ] && ! [ -z "$2" ]
then
clang -lpthread -Wall -Wextra -lm -std=c99 $2.c -o $2 && ./$2
else
clang -Wall -Wextra -lm -std=c99 $1.c -o $1 && ./$1
fi
}
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile

View File

@ -18,6 +18,8 @@ unbind '"'
bind | split-window -h
bind - split-window -v
# setting vi mode
set-window-option -g mode-keys vi
# status bar
set -g status-right '♥#(acpi | cut -d ',' -f 2) | %H:%m %d-%b-%y '