From dc606713d558370aa6b3e4c28e5e370e913a2c72 Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Wed, 31 Jan 2018 00:16:00 -0500 Subject: [PATCH] Snippet/simple CDF aliases CDF alias stopped working so reverted to simplified one. --- dotfiles/.bash_aliases | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dotfiles/.bash_aliases b/dotfiles/.bash_aliases index fdc1988..0977b15 100644 --- a/dotfiles/.bash_aliases +++ b/dotfiles/.bash_aliases @@ -23,6 +23,11 @@ d() { cd "$@" && ls -a ; } cd_up() { d $(printf "%0.s../" $(seq 1 $1 )) ; } alias "c."="cd_up" alias cdd="d ~/Downloads" +alias dsnip="d ~/.vim/plugged/vim-snippets/UltiSnips/" +alias csnip="d ~/.vim/UltiSnips/" +vdsnip() { vi ~/.vim/plugged/vim-snippets/UltiSnips/"$1".snippets ; } +vsnip() { vi ~/.vim/UltiSnips/"$1".snippets ; } + if $in_lab; then ff() { firefox $1 ; } zip() { tar -zcvf $1.tar.gz $1/ ; } @@ -79,7 +84,8 @@ alias psy="$cd_school/psy" alias 9r="$cd_school/209/mokkar" alias l3="$cd_school/209/mokkar/lab3" alias a1="$cd_school/209/mokkar/a1" - alias cdf="ssh -t mokkar@cdf.utoronto.ca '. ./.bashrc'" + # alias cdf="ssh -t mokkar@cdf.utoronto.ca '. ./.bashrc; bash -l'" + alias cdf="echo \". ./.bashrc\"&& ssh mokkar@cdf.utoronto.ca" ca12() { gcc -Wall -std=gnu99 -g -o validate_sin.out validate_sin.c sin_helpers.c