mirror of
https://github.com/szymon-jozef/superior_dotfiles.git
synced 2026-09-07 12:10:38 +02:00
Add .config/kitty/theme.conf Add .config/fish/completions/.keep Add .config/fish/conf.d/omf.fish Add .config/fish/fish_plugins Add .config/fish/fish_variables Add .config/fish/functions/cpc.fish Add .config/fish/functions/fish_prompt.1713041410.copy Add .config/fish/functions/fish_prompt.1711301070.copy Add .config/fish/functions/fish_prompt.fish Add .config/fish/functions/lsblk.fish Add .config/fish/functions/xampp_link.fish Add .config/fish/themes/Catppuccin Frappe.theme Add .config/fish/themes/Catppuccin Latte.theme Add .config/fish/themes/Catppuccin Macchiato.theme Add .config/fish/themes/Catppuccin Mocha.theme
15 lines
327 B
Fish
15 lines
327 B
Fish
function cpc
|
|
if test (count $argv) -eq 1
|
|
set filename (basename $argv[1] .cpp)
|
|
g++ -o $filename $argv[1]
|
|
if test -x $filename
|
|
./$filename
|
|
rm $filename
|
|
else
|
|
echo "Compilation failed."
|
|
end
|
|
else
|
|
echo "Usage: cpc filename.cpp"
|
|
end
|
|
end
|