### PROMPT set fish_prompt_pwd_dir_length 0 function fish_prompt set_color green echo -n (whoami) set_color normal echo -n '@' set_color red echo -n (hostname) set_color normal echo -n ':' set_color blue echo (prompt_pwd) set_color normal echo "~> " end function fish_greeting ### cowsay 'hey, '(whoami)'...' | lolcat echo -n "" end ### ENV set -l DEFAULT_PATH "/bin:/usr/bin:/usr/local/bin:/usr/local/games:/usr/games:/usr/sbin:/usr/local/sbin" set -l LOCAL_PATHS "~/.local/bin:~/perl5/bin:~/.cargo/bin" set -x PATH "$DEFAULT_PATH:$LOCAL_PATHS" set -x TERM 'xterm' # For fun animations set -x PERL_MB_OPT "--install_base \"~/perl5\"" set -x PERL_MM_OPT "INSTALL_BASE=~/perl5" ### FUNCTIONS # easy dec to hex for fish function hexcalc echo "obase=16;$argv[1]" | bc end ### ALIASES ##Fun bullshit aliases # quicker base64 decryption alias based="base64 -d" # color cat, pip install Pygments, if you dont have alias ccat="pygmentize -g -O style=fruity" # sources changes to bashrc faster alias bashrc="source ~/.bashrc" # sources changes to fishrc faster alias fishrc="source ~/.config/fish/config.fish" # vim/gdb like quit alias q="exit" alias :q="exit" ##Necessary aliases # pull input to clipboard alias clip="xclip -selection c" # some more ls aliases alias ll="ls -lh" alias la="ls -Ah" alias lt="ls -Aulth" alias lS="ls -AlSh" alias l="ls" # makes speaker-test less annoying alias speaker-test="speaker-test -t wav -c 2 -l 1" # tmux copy alias tsb="tmux show-buffer" alias y="tmux show-buffer | clip" ##Python stuff # virtual env aliases alias venv="source env/bin/activate.fish" alias newvenv="python -m venv env" # pycharm because they made it weird alias charm="/opt/pycharm-community-2020.3.3/bin/pycharm.sh"