Configs/.dotfiles/functrc
2022-08-21 23:01:50 +02:00

24 lines
274 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
}