diff --git a/config.fish b/config.fish new file mode 100644 index 0000000..eb31840 --- /dev/null +++ b/config.fish @@ -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 diff --git a/functions/a.fish b/functions/a.fish index f4ca898..75d3cb2 100644 --- a/functions/a.fish +++ b/functions/a.fish @@ -1,4 +1,4 @@ function a -mkdir -p /tmp/a -cd /tmp/a + mkdir -p /tmp/a + cd /tmp/a end diff --git a/functions/bind_bang.fish b/functions/bind_bang.fish new file mode 100644 index 0000000..f73c8fd --- /dev/null +++ b/functions/bind_bang.fish @@ -0,0 +1,8 @@ +function bind_bang + switch (commandline -t)[-1] + case "!" + commandline -t $history[1]; commandline -f repaint + case "*" + commandline -i ! + end +end diff --git a/functions/bind_dollar.fish b/functions/bind_dollar.fish new file mode 100644 index 0000000..4eddea8 --- /dev/null +++ b/functions/bind_dollar.fish @@ -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