Skip to content

Commit

Permalink
update dotfiles, .function ++
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoramalho committed Jul 22, 2019
1 parent 5a1f494 commit 2837ca2
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .aliases
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ alias free='free -h'
alias disk='df'

# one char aliases & typos
alias v='vim'
alias v='gvim -v'
alias vim='gvim -v'
alias c='clear'
alias g='git'
alias e='exit'
Expand Down
21 changes: 21 additions & 0 deletions .functions
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ wordFind(){
grep -rnw $1 -e $2
}

wordInDoc(){
grep -lri $1
}

# Upload a file on terminal (by:Ricardo Jesus)
uploadFile () {
curl -H "Max-Days: 1" --upload-file "$1" https://transfer.sh/"`basename "$1"`" && echo
Expand All @@ -40,4 +44,21 @@ mkd() {
mkdir -p "$@" && cd "$@"
}

# SlackWare Function

# What package does a file belong to?
slackfile () {
( cd /var/log/packages; grep -l ${1#/} * )
}
#rjj-> Is a package installed?
slackpkg() {
if [ "$#" -eq 1 ]; then
ls /var/log/packages/ | grep -i "$1"
else
echo "Please, provide one argument"
fi
}

sbo-query() { # f(pkg) -> try to look for *pkg*
find /home/ramalho/repos/slackbuilds -type d -iname "*$1*"
}
2 changes: 1 addition & 1 deletion .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[core]
editor = vim
excludesfile = ~/.global_gitignore

pager = less -FXR
[color]
ui = auto

Expand Down
2 changes: 2 additions & 0 deletions .profile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ fi
# set PATH so it includes user's private bin directories
PATH="$HOME/bin:$HOME/.local/bin:$PATH"
PATH="$PATH:$HOME/eclipse/java-oxygen2/eclipse"

alias startx='exec startx'
14 changes: 12 additions & 2 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Plugin 'haya14busa/incsearch-easymotion.vim'
Plugin 'haya14busa/incsearch-fuzzy.vim'
Plugin 'haya14busa/incsearch.vim'
Plugin 'morhetz/gruvbox'
Plugin 'scrooloose/syntastic'
"Plugin 'scrooloose/syntastic'
Plugin 'tpope/vim-fugitive'
Plugin 'vim-airline/vim-airline'
"Plugin 'scrooloose/nerdtree'
Expand All @@ -24,6 +24,7 @@ Plugin 'w0rp/ale'
Plugin 'airblade/vim-gitgutter'
Plugin 'myusuf3/numbers.vim'
Plugin 'rhysd/vim-grammarous'
Plugin 'lervag/vimtex'

call vundle#end()
filetype plugin indent on
Expand Down Expand Up @@ -184,7 +185,7 @@ let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_mode_map = { 'mode': 'active',
\ 'active_filetypes': ['foo', 'bar'],
\ 'passive_filetypes': ['java'] }
\ 'passive_filetypes': ['java', 'tex'] }

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" gitgutter"
Expand All @@ -211,3 +212,12 @@ autocmd BufRead,BufNewFile *.tex setlocal spell "spell checking files

hi clear SpellBad
hi SpellBad cterm=underline

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" ale "
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:ale_linters = {
\ 'latex': ['chktex', 'lacheck', 'proselint'],
\ 'c': ['clang', 'gcc'],
\ 'cpp': ['clang', 'gcc'],
\}
4 changes: 3 additions & 1 deletion i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ font pango:monospace 8
floating_modifier $mod

# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+Return exec xfce4-terminal

# kill focused window
bindsym $mod+Shift+q kill
Expand Down Expand Up @@ -178,6 +178,7 @@ bindsym XF86AudioMute exec amixer -D pulse set Master 1+ toggle #mute

# exec networkManager
exec --no-startup-id nm-applet
exec --no-startup-id setxkbmap pt

# printscreen 3 modes
bindsym --release $mod+Shift+Print exec "scrot -s '%Y%m%d_%H%M%S.png' -e 'mv $f /tmp/'"
Expand All @@ -187,5 +188,6 @@ bindsym --release Print exec "scrot '%Y%m%d_%H%M%S.png' -e 'mv $f /tmp/'"
# assign apps to workspaces
assign [class="Slack"] $ws5
assign [class="Google-chrome"] $ws3
assign [class="Firefox"] $ws3
assign [class="Nautilus"] $ws4
for_window [class="Spotify"] move to workspace $ws10

0 comments on commit 2837ca2

Please sign in to comment.