From 54e76e0329c5f2fa0283ee49d79c2e633f4af386 Mon Sep 17 00:00:00 2001 From: Andrei Stoica Date: Sat, 11 Mar 2017 02:57:12 -0500 Subject: [PATCH] .. --- .bash_aliases | 4 ++++ .bashrc | 12 +++++++++++- .tmux.conf##Linux | 2 ++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.bash_aliases b/.bash_aliases index e198491..b42eae1 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -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' diff --git a/.bashrc b/.bashrc index cb2e8f8..23afed4 100644 --- a/.bashrc +++ b/.bashrc @@ -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 diff --git a/.tmux.conf##Linux b/.tmux.conf##Linux index 60de294..70ade64 100644 --- a/.tmux.conf##Linux +++ b/.tmux.conf##Linux @@ -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 '