blob: 68af3a61cc0ae4b902d239aadc696074d3841283 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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"
|