irongit

A combination of vim and bash that I find useful

ghostshell/ghost.sh
33 lines752 BBourne Again Shell (bash)
1git config --global core.autocrlf input
2alias python=python3
3alias Vim='vim ~/.vimrc'
4alias Gvim='vim ~/.ghost/ghost.vimrc'
5alias Gbash='vim ~/.ghost/ghost.sh'
6alias clip=clip.exe
7alias Bash='vim ~/.bashrc'
8alias Source='source ~/.bashrc'
9alias gcom='git add . && git commit -m'
10alias ghook='~/.ghost/ghook/startproject.sh'
11alias venv='python3 -m venv venv'
12function vsource() {
13 local start=`pwd`
14 for i in $(seq 1 5);do
15 if ! source venv/bin/activate; then
16 cd ..
17 else
18 cd $start
19 break
20 fi
21 done
22}
23function Gsend() {
24 local start=`pwd`
25 local message=$@
26 echo $message
27 cd ~/.ghost
28 gcom '"'$message'"'
29 git push -u origin main
30}
31
32export -f vsource
33export -f Gsend