# my weird function file
# lots of this coming from http://www.kfirlavi.com/blog/2012/11/14/defensive-bash-programming
-my_copy_to_clipboard() {
+
+my_copy_file_to_clipboard() {
local filecontent=$1
[ -f $file ] && xclip -sel clip < $filecontent
}
}
-not_end_by () {
- local by=$1;
- # grep -v: inverse match
- grep -v $by"$"
-}
-
-end_by () {
- local by=$1;
- grep $by"$"
-}
-
-begin_by () {
- local by=$1;
- grep "^"$by;
-}
-
-not_begin_by () {
- local by=$1;
- grep -v "^"$by
-}
-
my_list_venv(){
ls $HOME"/envs"
}