This commit is contained in:
6543 2022-01-01 18:20:27 +01:00
parent ca25d437a9
commit 77c00937ef
Signed by: 6543
GPG Key ID: C99B82E40B027BAE
4 changed files with 51 additions and 2 deletions

32
config.fish Normal file
View File

@ -0,0 +1,32 @@
# exporting makeflags to compile packages with maximum cores
export MAKEFLAGS="-j"(nproc)

export ANDROID_HOME="/opt/adnroid-sdk/tools/bin/"

function fish_user_key_bindings
bind ! bind_bang
bind '$' bind_dollar
end

#GO
export GOPATH=~/go
fish_add_path ~/go/bin /usr/local/go/bin

#adnroid
export ANDROID_HOME="~/Tools/android-sdk"

#Rust
fish_add_path ~/.cargo/bin

#Own binarys
fish_add_path ~/bin_nb ~/bin

thefuck --alias | source

alias pip='pip3'
alias LS=/bin/ls
alias ls=exa
alias ll='exa -alF'
alias la=ll
alias plz=sudo
alias please=sudo

8
functions/bind_bang.fish Normal file
View File

@ -0,0 +1,8 @@
function bind_bang
switch (commandline -t)[-1]
case "!"
commandline -t $history[1]; commandline -f repaint
case "*"
commandline -i !
end
end

View File

@ -0,0 +1,9 @@
function bind_dollar
switch (commandline -t)[-1]
case "!"
commandline -t ""
commandline -f history-token-search-backward
case "*"
commandline -i '$'
end
end