Browse Source

Auto-load .bashrc upon SSH'ing into CDF

Fix "c." function.
red-hat-laptop
Kevin Mok 7 years ago
parent
commit
3c7c7c37df
  1. 3
      .gitignore
  2. 7
      dotfiles/.bash_aliases
  3. 1
      dotfiles/.bashrc
  4. 3
      dotfiles/.vimrc
  5. 35
      dotfiles/termConfig

3
.gitignore

@ -1,4 +1,3 @@
*.swp
*.sw*
temp.sh temp.sh
konsole.shortcuts konsole.shortcuts
dotfiles/termConfig

7
dotfiles/.bash_aliases

@ -18,8 +18,9 @@ alias s="systemctl suspend"
alias hst="history" alias hst="history"
# directories # directories
# unalias c
d() { cd "$@" && ls -a ; } d() { cd "$@" && ls -a ; }
cd_up() { c $(printf "%0.s../" $(seq 1 $1 )) ; }
cd_up() { d $(printf "%0.s../" $(seq 1 $1 )) ; }
alias "c."="cd_up" alias "c."="cd_up"
alias cdd="d ~/Downloads" alias cdd="d ~/Downloads"
if $in_lab; then if $in_lab; then
@ -68,6 +69,7 @@ fi
# school # school
alias sch="$cd_school" alias sch="$cd_school"
alias 136="$cd_school/136" alias 136="$cd_school/136"
alias 236="$cd_school/236"
alias pr2="$cd_school/136/par/2" alias pr2="$cd_school/136/par/2"
alias psy="$cd_school/psy" alias psy="$cd_school/psy"
@ -77,8 +79,7 @@ alias psy="$cd_school/psy"
alias 9r="$cd_school/209/mokkar" alias 9r="$cd_school/209/mokkar"
alias l3="$cd_school/209/mokkar/lab3" alias l3="$cd_school/209/mokkar/lab3"
alias a1="$cd_school/209/mokkar/a1" alias a1="$cd_school/209/mokkar/a1"
alias cdf="ssh mokkar@cdf.utoronto.ca"
alias cdf="ssh -t mokkar@cdf.utoronto.ca '. ./.bashrc'"
ca12() { ca12() {
gcc -Wall -std=gnu99 -g -o validate_sin.out validate_sin.c sin_helpers.c gcc -Wall -std=gnu99 -g -o validate_sin.out validate_sin.c sin_helpers.c

1
dotfiles/.bashrc

@ -80,6 +80,7 @@ esac
if [ -x /usr/bin/dircolors ]; then if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto' alias ls='ls --color=auto'
#alias dir='dir --color=auto' #alias dir='dir --color=auto'
#alias vdir='vdir --color=auto' #alias vdir='vdir --color=auto'

3
dotfiles/.vimrc

@ -57,6 +57,7 @@ map <F4> :wqa<CR>
map <F5> :qa!<CR> map <F5> :qa!<CR>
map <F6> :LLPStartPreview<CR> map <F6> :LLPStartPreview<CR>
map <F7> :AutoSaveToggle<CR> map <F7> :AutoSaveToggle<CR>
set pastetoggle=<F9>
map <F10> :PlugInstall<CR> map <F10> :PlugInstall<CR>
map <Enter> o<ESC>
map <C-Enter> o<ESC>
map <S-Enter> O<ESC> map <S-Enter> O<ESC>

35
dotfiles/termConfig

@ -0,0 +1,35 @@
[global_config]
inactive_color_offset = 1.0
title_font = Noto Sans 10
title_transmit_bg_color = "#3d3d3d"
[keybindings]
close_term = <Primary>w
cycle_next = <Shift>Tab
go_down = <Primary>j
go_left = <Primary>h
go_right = <Primary>l
go_up = <Primary>k
new_tab = <Primary>t
split_horiz = <Primary><Shift>e
split_vert = <Primary><Shift>o
[layouts]
[[default]]
[[[child1]]]
parent = window0
type = Terminal
[[[window0]]]
parent = ""
type = Window
[plugins]
[profiles]
[[default]]
background_image = None
copy_on_selection = True
cursor_color = "#b9b9b9"
custom_command = env TERM=xterm-256color bash
font = Monospace 8.5
foreground_color = "#0077ff"
palette = "#000000:#aa0000:#00aa00:#aa5500:#0000aa:#aa00aa:#00aaaa:#aaaaaa:#555555:#ff5555:#55ff55:#ffff55:#5555ff:#ff55ff:#55ffff:#ffffff"
scrollbar_position = hidden
use_custom_command = True
use_system_font = False
Loading…
Cancel
Save