2015-09-02 17:26:40 +02:00
|
|
|
set fish_greeting
|
|
|
|
set -x EDITOR 'emacsclient -t'
|
|
|
|
set -x GIT_EDITOR $EDITOR
|
|
|
|
set -x PATH $PATH ~/.local/bin ~/bin ~/bin/go/bin /usr/local/bin
|
|
|
|
set -x ALTERNATE_EDITOR "" # Start emacs in every case!
|
2015-09-11 14:42:41 +02:00
|
|
|
set -x WORKLOG /home/bascht/Documents/Freelance/Worklog/Worklog.md
|
|
|
|
set -x Documents /home/bascht/Documents
|
|
|
|
set -x Code $Documents/Code
|
2015-09-02 17:26:40 +02:00
|
|
|
|
|
|
|
# I need dis
|
|
|
|
set emflip '(╯°□°)╯︵ ┻━┻'
|
|
|
|
set emwhy 'џ(ºДºџ)'
|
|
|
|
set emshrug '¯\_(ツ)_/¯'
|
|
|
|
set emshrugdis '¯\_ಠ_ಠ_/¯'
|
|
|
|
set emdis 'ಠ_ಠ'
|
|
|
|
|
|
|
|
# Aliases
|
|
|
|
alias va "vagrant"
|
|
|
|
alias g "git"
|
|
|
|
alias tm "tmux -2"
|
|
|
|
alias ta "tm a -t"
|
|
|
|
alias bi "bundle install"
|
|
|
|
alias be "bundle exec"
|
|
|
|
alias ber "bundle exec rake"
|
|
|
|
alias e $EDITOR
|
|
|
|
alias vi $EDITOR #going emacs
|
|
|
|
alias vim $EDITOR
|
|
|
|
alias er "e --eval '(writeroom-mode)'"
|
|
|
|
|
|
|
|
# Manually switch HIDPI
|
|
|
|
function scale
|
|
|
|
/usr/bin/gsettings set org.gnome.desktop.interface scaling-factor $argv;
|
|
|
|
/usr/bin/gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gdk/WindowScalingFactor': <$argv>}";
|
2015-09-15 09:37:50 +02:00
|
|
|
if math "$argv == 1"
|
|
|
|
/usr/bin/xrandr --dpi 96
|
|
|
|
else
|
|
|
|
/usr/bin/xrandr --dpi 144
|
|
|
|
end
|
2015-09-02 17:26:40 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
# Initialize fasd
|
|
|
|
function -e fish_preexec _run_fasd
|
|
|
|
fasd --proc (fasd --sanitize "$argv") > "/dev/null" 2>&1
|
|
|
|
end
|
|
|
|
|
|
|
|
function z
|
|
|
|
cd (fasd -d -e 'printf %s' "$argv")
|
|
|
|
end
|
|
|
|
|
|
|
|
# Fire up RVM
|
|
|
|
rvm default
|
|
|
|
|
|
|
|
# Color Git Prompt
|
|
|
|
set -g __fish_git_prompt_show_informative_status 1
|
|
|
|
set -g __fish_git_prompt_showuntrackedfiles 1
|
|
|
|
set -g __fish_git_prompt_showdirtystate 1
|
|
|
|
set -g __fish_git_prompt_showstashstate 1
|
|
|
|
set -g __fish_git_prompt_showcolorhints 1
|