| 1 | git config --global core.autocrlf input |
| 2 | alias python=python3 |
| 3 | alias Vim='vim ~/.vimrc' |
| 4 | alias Gvim='vim ~/.ghost/ghost.vimrc' |
| 5 | alias Gbash='vim ~/.ghost/ghost.sh' |
| 6 | alias clip=clip.exe |
| 7 | alias Bash='vim ~/.bashrc' |
| 8 | alias Source='source ~/.bashrc' |
| 9 | alias gcom='git add . && git commit -m' |
| 10 | alias ghook='~/.ghost/ghook/startproject.sh' |
| 11 | alias venv='python3 -m venv venv' |
| 12 | function 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 | } |
| 23 | function 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 | |
| 32 | export -f vsource |
| 33 | export -f Gsend |