Skip to content
This repository has been archived by the owner on Jun 1, 2020. It is now read-only.

Commit

Permalink
Suffix aliases. Aumento en el histsize. Túnel para CMU
Browse files Browse the repository at this point in the history
  • Loading branch information
nanounanue committed May 26, 2020
1 parent 8780f3d commit cd9ea48
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 16 deletions.
8 changes: 8 additions & 0 deletions postgresql.org
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ host=localhost
port=5444
user=nanounanue
dbname=amai_2019


# cmu
[cmu]
host=localhost
port=2345
user=nanounanue
dbname=postgres
#+end_src


Expand Down
49 changes: 33 additions & 16 deletions profile.org
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js


* Funciones

#+BEGIN_SRC shell
function projects() {
cd ~/projects/$1
}
#+END_SRC


* Estructura de archivos

Intentando la estructura de archivos =XDG=
Expand Down Expand Up @@ -69,7 +60,7 @@ PATH=$OLDPATH:$PATH
* Environment

#+BEGIN_SRC shell
HISTSIZE=5000
HISTSIZE=10000
SAVEHIST=$HISTSIZE
#+END_SRC

Expand Down Expand Up @@ -217,10 +208,18 @@ _fzf_compgen_dir() {
* Aliases

#+BEGIN_SRC shell
alias p="projects"
alias s="software"
alias p="cd ~/projects"
alias s="cd ~/software"
alias d="cd ~/dotfiles"
#+END_SRC

** docker

#+begin_src shell
alias dps="docker ps"
#+end_src


** Emacs

#+BEGIN_SRC shell
Expand All @@ -236,12 +235,12 @@ alias sbcl="rlwrap sbcl"

** SSH Tunneling

*** DSaPP bastión :deprecated:
*** CMU bastión

#+BEGIN_SRC shell
alias dsapp-up='ssh -fNTM dsapp-tunnel'
alias dsapp-status='ssh -TO check dsapp-tunnel'
alias dsapp-down='ssh -TO exit dsapp-tunnel'
alias cmu-up='ssh -fNTM cmu-tunnel'
alias cmu-status='ssh -TO check cmu-tunnel'
alias cmu-down='ssh -TO exit cmu-tunnel'
#+END_SRC

*** ITAM bastión
Expand All @@ -267,3 +266,21 @@ alias top="sudo htop"
alias preview="fzf --preview 'bat --color \"always\" {}'"
alias du="ncdu --color dark -rr -x --exclude .git --exclude node_modules"
#+END_SRC

** /suffix aliases/

Esto es específico de =zsh=, indica con qué aplicación abrir los
archivos con extensión (por el momento, todo en =emacs=)

#+begin_src shell
alias -s org=ec
alias -s md=ec
alias -s json=ec
alias -s {py,rb,lisp,clj}=ec
#+end_src


* Funciones



0 comments on commit cd9ea48

Please sign in to comment.