Update tmux conf, django alias for runserver, custom commands

This commit is contained in:
Loïc Gremaud 2020-08-06 18:09:35 +02:00
parent 5174af181a
commit 8510af21d0
No known key found for this signature in database
GPG Key ID: CACB2A128E557EFD
4 changed files with 12 additions and 8 deletions

View File

@ -4,10 +4,10 @@ set-option -g prefix C-a
bind-key C-a send-prefix bind-key C-a send-prefix
# split panes # split panes
bind | split-window -h bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v bind - split-window -v -c "#{pane_current_path}"
bind s split-window -h -p 20 bind s split-window -h -p 20 -c "#{pane_current_path}"
bind v split-window -v -p 20 bind v split-window -v -p 20 -c "#{pane_current_path}"
# switch panes # switch panes
bind -n M-w select-pane -U bind -n M-w select-pane -U

2
vimrc
View File

@ -288,6 +288,8 @@ Plug 'https://github.com/ap/vim-css-color'
Plug 'https://github.com/vifm/vifm.vim' Plug 'https://github.com/vifm/vifm.vim'
Plug 'https://github.com/gregsexton/gitv', {'on': ['Gitv']}
call plug#end() call plug#end()
set clipboard=unnamedplus set clipboard=unnamedplus

View File

@ -5,18 +5,19 @@ alias lla='ls -al'
alias mux='tmuxinator' alias mux='tmuxinator'
alias pm='python manage.py' alias pm='python manage.py'
alias pmt='clear && pm test'
alias sp='python manage.py shell_plus' alias sp='python manage.py shell_plus'
alias mkmg='python manage.py makemigrations' alias mkmg='python manage.py makemigrations'
alias mg='python manage.py migrate' alias mg='python manage.py migrate'
alias gp='git push' alias gp='git push'
alias rs='python manage.py runserver'
alias rs2='python manage.py runserver 127.0.0.2'
alias ga!='git commit --amend --no-edit --date now' alias ga!='git commit --amend --no-edit --date now'
rs() {python manage.py runserver 127.0.0."$1":"$2"}
cheat() { curl cheat.sh/"$1" } cheat() { curl cheat.sh/"$1" }
cda() { conda activate "$@" } cda() { conda activate "$@" }
cdd() { conda deactivate "$@" } cdd() { conda deactivate "$@" }
cdc() { conda create --name "$@" python=3.5 pip } cdc() { conda create --name "$@" python=3.6 pip }
cdi() { conda info --envs "$@" } cdi() { conda info --envs "$@" }
ca() { pygmentize -g "$@" } ca() { pygmentize -g "$@" }
grepf() { grep -rnw ./ -e "$@"} grepf() { grep -rnw ./ -e "$@"}

View File

@ -18,8 +18,9 @@ fi
unset __conda_setup unset __conda_setup
#<<< conda initialize <<< #<<< conda initialize <<<
export PATH=$HOME/Documents/Arcanite/git_ci_runner:$PATH export PATH=$HOME/custom_commands:$PATH
export NB_MINIONS=4 export NB_MINIONS=4
export VAGRANT_TYPE='abacus-abahost'
export VISUAL=nvim export VISUAL=nvim
export EDITOR=nvim export EDITOR=nvim