diff options
author | mjfernez <mjf@mjfer.net> | 2021-12-22 17:50:34 -0500 |
---|---|---|
committer | mjfernez <mjf@mjfer.net> | 2021-12-22 17:50:34 -0500 |
commit | 864ce0cff6ad530cdbe0bee133204c114d1905da (patch) | |
tree | 428b2c46ceeda798fda1f5c637f11118aac3135f /config.fish | |
download | dotfiles-master.tar.gz |
Diffstat (limited to 'config.fish')
-rw-r--r-- | config.fish | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/config.fish b/config.fish new file mode 100644 index 0000000..68af3a6 --- /dev/null +++ b/config.fish @@ -0,0 +1,77 @@ +### 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" |