Configs/.dotfiles/functrc

24 lines
274 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 .
git commit -m "$1"
git push
}