This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f795f1
commit 54f4342
Showing
64 changed files
with
3,462 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
set cli_translate "$HOME/s/help_scripts/cli_translate.py" | ||
alias ttf="$cli_translate -f" | ||
alias tte="$cli_translate -e" | ||
alias ttr="$cli_translate -r" | ||
|
||
# Compatibility aliases for Chrome translate shortcuts | ||
alias tef="$cli_translate -f" | ||
alias trf="$cli_translate -f" | ||
alias tfe="$cli_translate -e" | ||
alias tre="$cli_translate -e" | ||
alias ter="$cli_translate -r" | ||
alias tfr="$cli_translate -r" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
alias cc="cd && clear" | ||
|
||
# cs{} aliases {{{ | ||
function csc | ||
set _path "$HOME/.config/" | ||
if test -n "$argv[1]" | ||
set _path "$_path$argv[1]" | ||
end | ||
cs $_path | ||
end | ||
|
||
function css | ||
set _path "$HOME/s/" | ||
if test -n "$argv[1]" | ||
set _path "$_path$argv[1]" | ||
end | ||
cs $_path | ||
end | ||
|
||
function csh | ||
set _path "$HOME/s/help_scripts/" | ||
if test -n "$argv[1]" | ||
set _path "$_path$argv[1]" | ||
end | ||
cs $_path | ||
end | ||
|
||
function csv | ||
set _path "$HOME/s/valera/" | ||
if test -n "$argv[1]" | ||
set _path "$_path$argv[1]" | ||
end | ||
cs $_path | ||
end | ||
|
||
function csd | ||
set _path "$HOME/Downloads/" | ||
if test -n "$argv[1]" | ||
set _path "$_path$argv[1]" | ||
end | ||
cs $_path | ||
end | ||
|
||
function csa | ||
set _path "$HOME/s/ai-news-trade-bot/" | ||
if test -n "$argv[1]" | ||
set _path "$_path$argv[1]" | ||
end | ||
cs $_path | ||
end | ||
|
||
function cst | ||
set _path "$HOME/tmp/" | ||
if test -n "$argv[1]" | ||
set _path "$_path$argv[1]" | ||
end | ||
cs $_path | ||
end | ||
|
||
function csl | ||
set _path "$HOME/s/l/" | ||
if test -n "$argv[1]" | ||
set _path "$_path$argv[1]" | ||
end | ||
cs $_path | ||
end | ||
|
||
function csg | ||
set _path "$HOME/g/" | ||
if test -n "$argv[1]" | ||
set _path "$_path$argv[1]" | ||
end | ||
cs $_path | ||
end | ||
|
||
function cssg | ||
set _path "$HOME/s/g/" | ||
set parent 0 | ||
if test -n "$argv[1]" | ||
set _path "$_path$argv[1]" | ||
set parent 1 | ||
end | ||
cs $_path | ||
if test $parent = 1 | ||
git pull | ||
end | ||
end | ||
|
||
function csb | ||
set _path "$HOME/Documents/Books/" | ||
if test -n "$argv[1]" | ||
set _path "$_path$argv[1]" | ||
end | ||
cs $_path | ||
end | ||
|
||
function csp | ||
set _path "$HOME/Documents/Papers/" | ||
if test -n "$argv[1]" | ||
set _path "$_path$argv[1]" | ||
end | ||
cs $_path | ||
end | ||
|
||
function csn | ||
set _path "$HOME/Documents/SheetMusic/" | ||
if test -n "$argv[1]" | ||
set _path "$_path$argv[1]" | ||
end | ||
cs $_path | ||
end | ||
|
||
function csu | ||
set _path "$HOME/uni/" | ||
if test -n "$argv[1]" | ||
set _path "$_path$argv[1]" | ||
end | ||
cs $_path | ||
end | ||
|
||
function csm | ||
set _path "$HOME/math/" | ||
if test -n "$argv[1]" | ||
set _path "$_path$argv[1]" | ||
end | ||
cs $_path | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# Everything can rely on functions from here | ||
|
||
alias exa="eza" | ||
|
||
# for super ls | ||
function sl | ||
if test -f "$argv[1]" | ||
bat $argv[1] | ||
else | ||
exa -Ah $argv | ||
end | ||
end | ||
|
||
alias lt="eza --sort new" | ||
|
||
function mkfile | ||
set file_path "$argv[1]" | ||
mkdir -p (dirname "$file_path") | ||
touch "$file_path" | ||
end | ||
alias mkf="mkfile" | ||
|
||
function cs | ||
if test -f "$argv[1]" | ||
e "$argv[1]" | ||
else | ||
cd "$argv" || return 1 | ||
|
||
source "./.local.fish" > /dev/null 2>&1; or true | ||
source "./tmp/.local.fish" > /dev/null 2>&1; or true | ||
|
||
if test -n "$VIRTUAL_ENV" | ||
deactivate | ||
set -e VIRTUAL_ENV | ||
end | ||
|
||
source "venv/bin/activate.fish" > /dev/null 2>&1; or true | ||
sl | ||
end | ||
end | ||
|
||
# go | ||
function go | ||
todo manual counter-step --dev-runs | ||
/usr/bin/go $argv | ||
end | ||
|
||
# python | ||
function py | ||
todo manual counter-step --dev-runs | ||
python3 $argv | ||
end | ||
|
||
function spy | ||
todo manual counter-step --dev-runs | ||
sudo python3 $argv | ||
end | ||
|
||
function pp | ||
pip $argv --break-system-packages | ||
end | ||
|
||
function pu | ||
$HOME/s/help_scripts/pip_upload.sh | ||
end | ||
|
||
alias pt="pytest" | ||
alias pk="pytest -k " | ||
alias pm="py src/main.py" | ||
|
||
# Adjust font size in Alacritty | ||
function fontsize | ||
set CONFIG_FILE "$HOME/.config/alacritty/alacritty.toml" | ||
|
||
if test -z "$argv[1]" | ||
set current_size (grep '^size = ' "$CONFIG_FILE" | sed 's/size = //') | ||
echo "$current_size" | ||
else | ||
sed -i 's/^\(size = \).*/\1'"$argv[1]"'/' "$CONFIG_FILE" | ||
end | ||
end | ||
|
||
function mkcd | ||
mkdir -p "$argv[1]" && cd "$argv[1]" | ||
end | ||
|
||
function mvcd | ||
mv $argv && cd (basename "$argv[-1]") | ||
end |
Oops, something went wrong.