summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.config/fish/alias.fish49
-rw-r--r--.config/fish/config.fish39
2 files changed, 88 insertions, 0 deletions
diff --git a/.config/fish/alias.fish b/.config/fish/alias.fish
new file mode 100644
index 0000000..93ac7fc
--- /dev/null
+++ b/.config/fish/alias.fish
@@ -0,0 +1,49 @@
+alias ls='exa -l'
+alias c='clear'
+alias less='less --tabs 4'
+alias bc='clear; bc -l'
+alias emacs='emacs -nw'
+alias mkf='gmake fclean'
+alias mkc='gmake clean'
+alias mk='gmake -j5'
+alias web='w3m https://duckduckgo.com/'
+alias cp='cp -iv'
+alias mv='mv -iv'
+alias rm='rm -v'
+alias ln='ln -v'
+alias mkdir='mkdir -v'
+alias rmdir='rmdir -v'
+alias chmod='chmod -v'
+alias chown='chown -v'
+alias grep='grep --color'
+alias diff='colordiff'
+alias tree='tree -C'
+alias yt='straw-viewer --api=auto'
+alias gyt='gtk-straw-viewer'
+alias dgit='git --git-dir=$HOME/Documents/dotfiles-bsd --work-tree=$HOME'
+alias vim='nvim'
+alias gst='git status'
+alias ga='git add'
+alias gco='git commit -m'
+alias gpp='git push'
+alias gpo='git push origin'
+alias startdocker='sudo service vboxnet restart && docker-machine start docker-home'
+alias stopdocker='docker-machine stop docker-home'
+alias envdocker='eval `docker-machine env docker-home`'
+alias cat='bat'
+alias vimz='nvim (fzf)'
+alias v='nvim (fzf)'
+function twi
+ mpv https://twitch.tv/$argv;
+end
+alias nb='newsboat'
+alias mutt='neomutt'
+alias nmt='neomutt'
+alias sxiv='sxiv -b'
+alias infox='pkg info -x'
+function search
+ make -C /usr/ports search name=$argv;
+end
+alias watch='cmdwatch'
+alias tsm='transmission-remote'
+alias df='df -h'
diff --git a/.config/fish/config.fish b/.config/fish/config.fish
new file mode 100644
index 0000000..798aa03
--- /dev/null
+++ b/.config/fish/config.fish
@@ -0,0 +1,39 @@
+set -x PATH $HOME/.local/bin /usr/local/llvm11/bin $PATH
+export PATH
+
+export EDITOR="nvim"
+export VISUAL="nvim"
+export PAGER="less"
+export TERMINAL="alacritty"
+export BROWSER="firefox"
+export READER="zathura"
+export FILE="vifm"
+export MPD_HOST="$HOME/.mpd/socket"
+export LANG="en_US.UTF-8"
+export LESSHISTFILE="-"
+export XDG_DATA_HOME="$HOME/.local/share"
+export XDG_CONFIG_HOME="$HOME/.config"
+export XDG_MUSIC_DIR="$HOME/Music"
+export CCACHE_PATH="/usr/bin:/usr/local/bin:/usr/local/llvm11/bin"
+export CCACHE_DIR="/var/cache/ccache-jozan"
+export CCACHE_LOGFILE="/var/log/ccache.log"
+export RUSTFLAGS="-L /usr/local/lib"
+export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border'
+
+
+source $HOME/.config/fish/alias.fish
+
+fish_vi_key_bindings
+set fish_greeting
+function fish_mode_prompt
+end
+
+function fish_prompt
+ printf "\033[1;31m%s \033[1;34m%s\033[1;31m> \033[0m" (prompt_hostname) (prompt_pwd)
+end
+function fish_right_prompt
+ set -l last_pipestatus $pipestatus
+ set -l last_status $status
+ set -l prompt_status (__fish_print_pipestatus " " "" "|" (set_color $fish_color_status) (set_color --bold $fish_color_status) $last_pipestatus)
+ printf "%s \033[1;31m%s\033[0m" (fish_vcs_prompt) $prompt_status
+end