changes
Signed-off-by: Naman Sood <mail@nsood.in>
This commit is contained in:
parent
3e2028838a
commit
bd98b8a308
10 changed files with 48 additions and 14 deletions
|
@ -1,3 +1,5 @@
|
|||
#!/bin/sh
|
||||
#!/usr/bin/env bash
|
||||
source ~/bin/studentvars
|
||||
scp $1 $UW_SERVER:$2
|
||||
allargsexceptlast=${@:1:$(($#-1))}
|
||||
last=${!#}
|
||||
scp $allargsexceptlast $UW_SERVER:$last
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
#!/usr/bin/env bash
|
||||
source ~/bin/studentvars
|
||||
scp -r $UW_SERVER:$1 $2
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/zsh
|
||||
#!/usr/bin/env bash
|
||||
source ~/bin/studentvars
|
||||
ssh $UW_SERVER -t 'zsh'
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ $# -lt 1 ]; then
|
||||
echo "Usage: $0 <tex file> [other required files...]"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
source ~/bin/studentvars
|
||||
mkdir -p ~/studentenv
|
||||
sshfs $UW_SERVER: ~/studentenv
|
||||
|
|
23
fonts.conf
Normal file
23
fonts.conf
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||
<fontconfig>
|
||||
<alias>
|
||||
<family>serif</family>
|
||||
<prefer>
|
||||
<family>Twemoji</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>sans-serif</family>
|
||||
<prefer>
|
||||
<family>Twemoji</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>monospace</family>
|
||||
<prefer>
|
||||
<family>Twemoji</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
</fontconfig>
|
||||
|
|
@ -4,6 +4,7 @@ set -euo pipefail
|
|||
|
||||
DOTFILES=(
|
||||
vimrc
|
||||
zprofile
|
||||
zshrc
|
||||
plan
|
||||
)
|
||||
|
|
1
plan
Normal file
1
plan
Normal file
|
@ -0,0 +1 @@
|
|||
idk man tbh
|
7
zprofile
Normal file
7
zprofile
Normal file
|
@ -0,0 +1,7 @@
|
|||
# fix for WSL not starting ssh-agent on boot
|
||||
if [ -z "$SSH_AUTH_SOCK" ] ; then
|
||||
eval `ssh-agent -s`
|
||||
grep -slR PRIVATE ~/.ssh/ | xargs ssh-add
|
||||
fi
|
||||
|
||||
export TENDS_TO=42
|
16
zshrc
16
zshrc
|
@ -1,7 +1,6 @@
|
|||
# PATH changes are in .zshenv
|
||||
alias sudo='sudo --preserve-env=PATH env '
|
||||
alias lntexheader='ln -s ~/coursenotes/nsdheader.sty $(pwd)'
|
||||
EDITOR=vim
|
||||
|
||||
# Path to your oh-my-zsh installation.
|
||||
export ZSH="$HOME/.oh-my-zsh"
|
||||
|
@ -105,12 +104,6 @@ source $ZSH/oh-my-zsh.sh
|
|||
|
||||
[[ ! -r /home/nsood/.opam/opam-init/init.zsh ]] || source /home/nsood/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
|
||||
|
||||
# fix for WSL not starting ssh-agent on boot
|
||||
if [ -z "$SSH_AUTH_SOCK" ] ; then
|
||||
eval `ssh-agent -s`
|
||||
grep -slR PRIVATE ~/.ssh/ | xargs ssh-add
|
||||
fi
|
||||
|
||||
exp() {
|
||||
cd "$@" && ls
|
||||
}
|
||||
|
@ -119,6 +112,13 @@ cdmk() {
|
|||
mkdir -p "$@" && cd "$@"
|
||||
}
|
||||
|
||||
if which gvim &>/dev/null && ! which vim echo &>/dev/null; then
|
||||
if which gvim &>/dev/null && ! which vim &>/dev/null; then
|
||||
alias vim='gvim -v'
|
||||
export EDITOR='gvim -v'
|
||||
else
|
||||
export EDITOR=vim
|
||||
fi
|
||||
|
||||
alias ':q'=exit
|
||||
alias open=xdg-open
|
||||
alias neofetch=hyfetch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue