Workstation Setup: Difference between revisions
Jump to navigation
Jump to search
Created page with "== .bashrc == Additions to .bashrc: <pre> #alias alias dir='ls -lAh --group-directories-first' alias vi="vim" alias cls="clear" alias svi="sudo vim" alias ping='ping -c 5' ali..." |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
Additions to .bashrc: | Additions to .bashrc: | ||
<pre> | <pre> | ||
# Some applications read the EDITOR variable to determine your favourite text | |||
# editor. So edit the line below with the editor of your choice :-) | |||
export EDITOR=/usr/bin/vim | |||
#alias | #alias | ||
alias dir='ls -lAh --group-directories-first' | alias dir='ls -lAh --group-directories-first' | ||
Line 7: | Line 11: | ||
alias cls="clear" | alias cls="clear" | ||
alias svi="sudo vim" | alias svi="sudo vim" | ||
alias ping='ping -c | alias ping='ping -c 3' | ||
alias mv='mv -iv' | alias mv='mv -iv' | ||
alias cp='cp -iv' | alias cp='cp -iv' | ||
Line 13: | Line 17: | ||
alias zypper='sudo zypper' | alias zypper='sudo zypper' | ||
alias wget='wget -c' | alias wget='wget -c' | ||
#Fancy colored prompt, that shows full working path | |||
PS1="[\e[1;34m\u\e[m@\e[0;35m\h\e[m]:\w \$ " | |||
</pre> | </pre> | ||
Line 21: | Line 28: | ||
== SSH Settings == | == SSH Settings == | ||
Edit <code>/etc/ssh/ssh_config</code> and add (or un-comment) the line(s):<br /> | |||
<br /> | |||
<code>StrictHostKeyChecking no</code> - You won't have to type in "yes" every time you connect to a new host.<br /> | |||
<code>ServerAliveInterval 60</code> - Sends "keep-alive" packets to prevent the session from timing out. |
Latest revision as of 02:42, 7 February 2017
.bashrc
Additions to .bashrc:
# Some applications read the EDITOR variable to determine your favourite text # editor. So edit the line below with the editor of your choice :-) export EDITOR=/usr/bin/vim #alias alias dir='ls -lAh --group-directories-first' alias vi="vim" alias cls="clear" alias svi="sudo vim" alias ping='ping -c 3' alias mv='mv -iv' alias cp='cp -iv' alias rm='rm -Iv' alias zypper='sudo zypper' alias wget='wget -c' #Fancy colored prompt, that shows full working path PS1="[\e[1;34m\u\e[m@\e[0;35m\h\e[m]:\w \$ "
Icons
- Tux the penguin. Sized for an app launcher icon (48x48).
SSH Settings
Edit /etc/ssh/ssh_config
and add (or un-comment) the line(s):
StrictHostKeyChecking no
- You won't have to type in "yes" every time you connect to a new host.
ServerAliveInterval 60
- Sends "keep-alive" packets to prevent the session from timing out.