Configs/Misc/Home/.dotfiles/functrc

27 lines
334 B
Plaintext
Raw Normal View History

2022-08-21 23:01:50 +02:00
function cdexec() {
cd "$( dirname "$( realpath "$@" )" )"
basename "$@"
}
function touchx() {
touch "$@"
chmod +x "$@"
}
function ccr() {
2022-08-21 23:01:50 +02:00
gcc "$@" && ./a.out
}
function cxxr() {
2022-08-21 23:01:50 +02:00
g++ "$@" && ./a.out
}
function gitacp() {
git add .
2022-08-25 22:13:38 +02:00
git commit -m "$1" && git push
}
2022-08-25 22:13:38 +02:00
function gitacpc() {
git add .
git commit && git push
}