Dotfiles for my tiling window manager + terminal workflow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

57 lines
1.3 KiB

alias ll="ls -l"
cd_209="d ~/Documents/School/209";
alias 209="$cd_209"
alias 9r="$cd_209/mokkar"
alias l5="$cd_209/mokkar/lab5"
alias a2="$cd_209/mokkar/a2"
# alias cdf="ssh -t mokkar@cdf.utoronto.ca '. ./.bashrc; bash -l'"
alias cdf="echo \". ./.bashrc\"&& ssh mokkar@cdf.utoronto.ca"
mkex() { chmod 700 $1 ; }
## compilation functions
# compile without running
c9() { gcc -Wall -std=gnu99 -g -o "${1%.*}.out" "$1" -lm ; }
# compile without running
c9a() {
for file in *; do
if [[ $file = *.c ]]; then
gcc -Wall -std=gnu99 -g -o "${file%.*}".out "$file"
fi
done
}
# compile and run
c9r() { gc9 $1 && ./"${1%.*}.out" ; }
# compile and run with input
c9i() { gc9 $1 && ./"${1%.*}.out" < $2 ; }
# compile and run with input file
run() {
while read line; do
# ./$1.out $line
echo ./$1.out $line
done < $1.in
}
# temp
c4g() {
gcc -Wall -std=gnu99 -g -o greeting.out greeting.c
./greeting.out "Good morning" "Emmanuel"
}
# compile a1p2 and test with simple case
ca12() {
gcc -Wall -std=gnu99 -g -o validate_sin.out validate_sin.c sin_helpers.c
./validate_sin.out 810620716
}
# compile a1p1 and test with simple case
ca1() {
gcc -Wall -std=gnu99 -g -o count_large.out count_large.c
# ll | ./count_large.out 4000
./count_large.out 0 rw------- < ll.txt
}