mirror of
https://github.com/szymon-jozef/superior_dotfiles.git
synced 2026-10-28 11:10:37 +01:00
Remove .config/kitty/theme.conf
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
This commit is contained in:
14
private_dot_config/private_fish/functions/cpc.fish
Normal file
14
private_dot_config/private_fish/functions/cpc.fish
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
Reference in New Issue
Block a user