Last active
July 31, 2025 11:07
-
-
Save radupotop/afab3a8cddb80c6c14028659a17100be to your computer and use it in GitHub Desktop.
Fish shell config
This file contains hidden or 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
# vim: filetype=sh | |
# set path | |
set -l path_array $HOME/bin $HOME/.cargo/bin $HOME/.local/bin | |
if not contains $path_array[1] $PATH | |
set -a PATH $path_array | |
end | |
# exports | |
set -x EDITOR "vim" | |
set -x PAGER "less" | |
set -x WINEARCH "win32" | |
# set -x CHROME_BIN "/usr/bin/chromium" | |
# set -x wiki_browser "epiphany" | |
set -x LESS "--tabs=4 -RFX" | |
set -x PYTHONBREAKPOINT "ipdb.set_trace" | |
set -x MINICOM "-m -c on" | |
# Docker and Podman | |
set -x REGISTRY_AUTH_FILE "$HOME/.docker/config.json" | |
# set -x DOCKER_HOST "unix://$XDG_RUNTIME_DIR/podman/podman.sock" | |
# set -x DOCKER_BUILDKIT 0 | |
# Python iptables lib | |
# set -x XTABLES_LIBDIR /usr/lib/xtables | |
# aliases | |
alias grep "grep -E --color=auto" | |
alias egrep "grep -E --color=auto" | |
alias gr "grep -E --color=auto -nR --exclude-dir={\.git,} --exclude={*\.min\.js,}" | |
alias man "batman" | |
alias w "w -f" | |
alias id3 "id3 -12v" | |
alias curl "curl -b ~/.cookies -c ~/.cookies" | |
alias vv "vim -R" | |
alias view "vv" | |
alias ports "netstat -tulpn" | |
alias lsf "readlink -f" | |
alias cfg "git --git-dir=$HOME/.cfg --work-tree=$HOME" | |
alias cfgtig "env GIT_DIR=$HOME/.cfg GIT_WORK_TREE=$HOME tig" | |
alias tigcfg "cfgtig" | |
alias ping "ping -c4" | |
alias ipy "ipython3 --no-banner --no-confirm-exit" | |
alias g "git" | |
alias venv "python3 -m venv" | |
alias gfont "gnome-font-viewer" | |
alias myip "curl -s4 https://ifconfig.co/json | jq" | |
alias myip6 "curl -s6 https://ifconfig.co/json | jq" | |
alias mydns "curl -sL https://test.nextdns.io | jq" | |
alias lsd "ll --group-directories-first" | |
alias dk "docker compose" | |
alias dke "docker compose exec -T" | |
alias dkps "docker ps --format '{{.ID}}\t{{.Status}}\t{{.Names}}'" # {{.Image}} {{.Ports}} | |
alias dkpsp "docker ps --format '{{.ID}}\t{{.Status}}\t{{.Names}} \t{{.Ports}}'" | |
alias pmc "podman-compose" | |
alias docker-no-restart "docker update --restart=no (docker ps -a -q)" | |
alias docker-stop-all "docker stop (docker ps -q)" | |
alias black "black -S" | |
alias mc "mc --nosubshell" | |
alias sus "sudo su -l" | |
alias gpgc "gpg --symmetric --cipher-algo AES256 --no-symkey-cache --sign" | |
alias weasyprint "weasyprint --presentational-hints --optimize-images --hinting" | |
# Merge all | |
history merge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment