(Grav GitSync) Automatic Commit from tanshu
This commit is contained in:
parent
1ef7031ef5
commit
87f6632b79
64
pages/09.tanshu-com-setup/docs.md
Normal file
64
pages/09.tanshu-com-setup/docs.md
Normal file
@ -0,0 +1,64 @@
|
||||
---
|
||||
title: 'Tanshu.Com setup'
|
||||
---
|
||||
|
||||
## 1. Data
|
||||
Create a Data directory `mkdir -p ~/Data`
|
||||
|
||||
## 2. Scripts
|
||||
Create a Script directory `mkdir -p ~/Data/scripts` add the script there and link it with
|
||||
```sh
|
||||
cd ~/bin
|
||||
ls -s ~/Data/scripts/script.sh script.sh
|
||||
```
|
||||
|
||||
## 3. Crontab
|
||||
`export VISUAL=nano; crontab -e`
|
||||
|
||||
## 4. .bash_aliases
|
||||
```sh
|
||||
alias psq='psql -U hops'
|
||||
alias ruby=ruby2.4
|
||||
alias gem=gem2.4
|
||||
alias ls='ls -l --color=auto'
|
||||
alias ct='export VISUAL=nano; crontab -e'
|
||||
```
|
||||
|
||||
## 5. .bash_profile
|
||||
```sh
|
||||
# .bash_profile
|
||||
|
||||
# Get the aliases and functions
|
||||
if [ -f ~/.bashrc ]; then
|
||||
. ~/.bashrc
|
||||
fi
|
||||
|
||||
# User specific environment and startup programs
|
||||
|
||||
export PATH=$HOME/bin:$PATH
|
||||
```
|
||||
|
||||
## 6. .bash_rc
|
||||
```sh
|
||||
# .bashrc
|
||||
|
||||
# Source global definitions
|
||||
if [ -f /etc/bashrc ]; then
|
||||
. /etc/bashrc
|
||||
fi
|
||||
|
||||
# Alias definitions.
|
||||
# You may want to put all your additions into a separate file like
|
||||
# ~/.bash_aliases, instead of adding them here directly.
|
||||
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
|
||||
|
||||
if [ -f ~/.bash_aliases ]; then
|
||||
. ~/.bash_aliases
|
||||
fi
|
||||
|
||||
# User specific aliases and functions
|
||||
export GEM_HOME=$HOME/gems
|
||||
export RUBYLIB=$GEM_HOME/lib
|
||||
export PATH=$HOME/bin/:$PATH:$GEM_HOME/bin
|
||||
# export PATH=$HOME/bin/:$PATH
|
||||
```
|
Loading…
Reference in New Issue
Block a user