Skip to content

Instantly share code, notes, and snippets.

View skelly37's full-sized avatar
🐘
Anti-POSIX warrior

Kamil skelly37

🐘
Anti-POSIX warrior
  • Poland
  • 22:20 (UTC +02:00)
View GitHub Profile
@skelly37
skelly37 / python_shell_aliases.py
Last active June 9, 2023 20:42
Aliases for python in shell (exit, clear, get random number). Usage: `alias python = python3 -i /path/to/python_shell_aliases.py`
#!/usr/bin/python3
class Clear:
def __repr__(self):
from os import system
system("clear")
return ""
class Exit:
@skelly37
skelly37 / env.nu
Last active June 9, 2023 20:44
Nu simple functions and prompt
let-env CDPATH = ["." "/home/skelly37" $env.HOME "/home/skelly37/.config" "/home/skelly37/it" "/" ]
# SOURCES
# they all come from https://github.com/nushell/nu_scripts
source /home/skelly37/.config/nushell/external/dict.nu
source /home/skelly37/.config/nushell/external/wolframalpha.nu
source /home/skelly37/.config/nushell/external/math_functions.nu
source /home/skelly37/.config/nushell/external/ultimate_extractor.nu
source /home/skelly37/.config/nushell/external/cdpath.nu
source /home/skelly37/.config/nushell/external/run-c.nu