mirror of
https://gitlab.com/octospacc/Configs.git
synced 2024-12-22 20:48:00 +01:00
27 lines
334 B
Plaintext
27 lines
334 B
Plaintext
function cdexec() {
|
|
cd "$( dirname "$( realpath "$@" )" )"
|
|
basename "$@"
|
|
}
|
|
|
|
function touchx() {
|
|
touch "$@"
|
|
chmod +x "$@"
|
|
}
|
|
|
|
function ccr() {
|
|
gcc "$@" && ./a.out
|
|
}
|
|
|
|
function cxxr() {
|
|
g++ "$@" && ./a.out
|
|
}
|
|
|
|
function gitacp() {
|
|
git add .
|
|
git commit -m "$1" && git push
|
|
}
|
|
|
|
function gitacpc() {
|
|
git add .
|
|
git commit && git push
|
|
} |